Skip to content

feat(go/plugins/mcp): migrate MCP underlying SDK to modelcontextprotocol #4388

Open
hugoaguirre wants to merge 13 commits intomainfrom
haguirre/mcp
Open

feat(go/plugins/mcp): migrate MCP underlying SDK to modelcontextprotocol #4388
hugoaguirre wants to merge 13 commits intomainfrom
haguirre/mcp

Conversation

@hugoaguirre
Copy link
Contributor

@hugoaguirre hugoaguirre commented Jan 31, 2026

  • Official MCP SDK migration from mark3labs/mcp-go to modelcontextprotocol/go-sdk
  • HTTP and SSE Server Support
  • Included Media and Data parts
  • Included MCP Resource metadata information
  • Added telemetry tracing to the Server side.
  • Added context-aware function wrappers (NewClient, *WithContext())

Checklist (if applicable):

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions bot added the go label Jan 31, 2026
@github-actions github-actions bot added the docs Improvements or additions to documentation label Jan 31, 2026
@hugoaguirre
Copy link
Contributor Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is a significant and well-executed migration from mark3labs/mcp-go to the official modelcontextprotocol/go-sdk. The changes simplify the codebase, especially in areas like pagination and transport creation, and align it with the new SDK's idioms. The addition of comprehensive integration tests (http_test.go) is a great improvement and increases confidence in the new implementation. I've made a few suggestions to improve context handling and error management. Overall, this is a high-quality contribution.

@hugoaguirre
Copy link
Contributor Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is a significant and well-executed migration of the MCP plugin to a new underlying SDK. The changes are extensive, resulting in cleaner code, better use of context.Context, and the addition of valuable new features like HTTP/SSE server support and telemetry tracing. The inclusion of comprehensive new tests is also a great improvement. I've identified a couple of minor areas for improvement: a potential feature regression regarding server management in MCPHost and an ignored error in a deprecated function that could be logged for better diagnostics. Overall, this is a high-quality contribution.

@hugoaguirre hugoaguirre marked this pull request as ready for review February 3, 2026 23:55
@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation go

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

[Go] Wrap MCP Server with Genkit telemetry [Go] Add full HTTP support for transport layer

2 participants