Skip to content

feat(sandbox): Update mcp dependency and server implementation - #38

Closed
gerard-samuel wants to merge 1 commit into
plaid:mainfrom
originaltrini0:mcp2.0
Closed

feat(sandbox): Update mcp dependency and server implementation#38
gerard-samuel wants to merge 1 commit into
plaid:mainfrom
originaltrini0:mcp2.0

Conversation

@gerard-samuel

@gerard-samuel gerard-samuel commented Aug 10, 2026

Copy link
Copy Markdown

The pyproject.toml file has been updated to specify a minimum version of mcp>=1.0.0.

The sandbox/src/mcp_server_plaid/server.py file has been refactored to support both MCP 1.x (decorator API) and MCP 2.x (callback API) through robust feature detection. This change ensures compatibility with different MCP versions by checking for the presence of the Server.list_tools decorator. If the decorator is not found, the server falls back to using the on_list_tools and on_call_tool callbacks, which are part of the MCP 2.x specification. The client creation logic has also been consolidated into a helper function _make_clients for better code organization.

This should close issue #37

The `pyproject.toml` file has been updated to specify a minimum version of `mcp>=1.0.0`.

The `sandbox/src/mcp_server_plaid/server.py` file has been refactored to support both MCP 1.x (decorator API) and MCP 2.x (callback API) through robust feature detection. This change ensures compatibility with different MCP versions by checking for the presence of the `Server.list_tools` decorator. If the decorator is not found, the server falls back to using the `on_list_tools` and `on_call_tool` callbacks, which are part of the MCP 2.x specification. The client creation logic has also been consolidated into a helper function `_make_clients` for better code organization.
@phoenixy1

Copy link
Copy Markdown
Contributor

Thank you for this PR! I don't want us to merge this one it as it has some blocking issues and a broader-than-needed scope but I have opened #39 to resolve this issue instead and intend to merge that instead.

@phoenixy1 phoenixy1 closed this Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants