-
Notifications
You must be signed in to change notification settings - Fork 11
feat: Add support for MCP protocol in core SDK #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: add-mcp-v20250618
Are you sure you want to change the base?
Conversation
d838741 to
6510bbb
Compare
0c49d4f to
fb2b3e9
Compare
6510bbb to
7332a6a
Compare
ccfc3f5 to
df16239
Compare
b9a60a8 to
d439c55
Compare
c6ae916 to
2ed09b3
Compare
d439c55 to
21fda7c
Compare
2ed09b3 to
42ffc59
Compare
| func TestE2E_ContextHandling(t *testing.T) { | ||
| newClient := func(t *testing.T) *core.ToolboxClient { | ||
| client, err := core.NewToolboxClient("http://localhost:5000") | ||
| client, err := getNewToolboxClient() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a breaking change for the users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to Python, if users want to continue the usage of the native Toolbox REST protocol then yes. But we are defaulting to the latest MCP version.
Since this E2E test is for the Toolbox Protocol, we have to use the functional option to mention the protocol
21fda7c to
1cc4528
Compare
42ffc59 to
ff077ca
Compare
1cc4528 to
028b426
Compare
ff077ca to
c9e4b5c
Compare
This is PR no. 5 - Adding support for MCP protocol in core SDK
PR no.4 - #132
PR no.3 - #131
PR no.2 - #128
PR no.1 - #126
Key Changes
Protocoltype and constantsWithProtocolto allow configuring the client version, including validation to prevent duplicate assignment.NewToolboxClientto instantiate the correct underlying transport (mcp20250618, mcp20250326, mcp20241105, toolbox) based on the configuration.protocolandtransportfields toToolboxClientto store state and configuration.WithProtocol(verifying configuration and error handling).GetSupportedMcpVersions.