Skip to content

Conversation

@HeatherFlux
Copy link

Add MCP client support for external tool integration

It is just a test to slap in a MCP client using the SDK it would be cooler to take this a step further and get everything going in a simple electron app to have more local focused tooling for anyone who wants to have a private way to use tools. Even adding this as a transport in Cline/Roo or getting it in the AI-SDK that a lot of folks are using would also be cool

  • Integrate MCP SDK (io.modelcontextprotocol.sdk:mcp:0.17.0)
  • McpClientManager - manages server connections and tool discovery
  • McpToolAdapter - wraps MCP tools as the existing Tool interface
  • Config: mcp.enabled, mcp.servers.config

Usage

mcp.enabled=true                                                                                                                                          
mcp.servers.config={"servers":[{"name":"fs","transport":"stdio","command":"npx","args":["-y","@modelcontextprotocol/server-filesystem","/tmp"]}]}         
                                                                                                                                                          
Tools namespaced as mcp_<server>_<tool> (e.g. mcp_fs_read_file).  

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.

1 participant