Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Updates the yardstick project to use the Model Context Protocol (MCP) go-sdk version 1.0.0, ensuring compliance with the latest MCP specification.
Changes
Dependencies
github.com/modelcontextprotocol/go-sdkfrom v0.1.0 to v1.0.0github.com/google/jsonschema-gov0.3.0 for JSON schema validationgithub.com/stretchr/testifyto v1.11.1 (merged from main)Server Implementation (
cmd/yardstick-server/main.go)github.com/google/jsonschema-go/jsonschemainstead of the removed internal jsonschema packagemcp.Implementationstruct patternCallToolParamsFor/CallToolResultForto the new simpler APImcp.AddTool()with explicit schema definitionClient Implementation (
cmd/yardstick-client/main.go)mcp.ImplementationstructConnect()method call to include the required third parameter (options)CommandTransportfor stdio connectionsSSEClientTransportfor SSE connectionsStreamableClientTransportfor HTTP connectionsTest Updates
Claude Integration
claude.mddocumentation file for future Claude interactions with the repositoryTesting
go test ./...)go test -v -race ./...)Breaking Changes
The API has changed significantly from v0.1.0 to v1.0.0. Any code using the yardstick server or client will need to be updated to match the new interfaces.
MCP 1.0.0 Compliance
This update ensures full compliance with the official MCP specification v1.0.0, including:
mcp.AddTool🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com