
resync mcp client
一个用 TypeScript 编写的多 MCP 服务器客户端,支持智能路由和工具前缀。
Repository Info
About This Server
一个用 TypeScript 编写的多 MCP 服务器客户端,支持智能路由和工具前缀。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP Client
A TypeScript client for interacting with multiple Model Context Protocol (MCP) servers defined in an mcp.json configuration file.
Features
- Support for multiple MCP servers
- Automatic tool prefixing with server names
- Intelligent LLM-powered query routing to appropriate tools/servers
- Interactive chat interface
Setup
-
Install dependencies:
npm install -
Create a
.envfile with your Anthropic API key:ANTHROPIC_API_KEY=your_anthropic_api_key_here -
Build the project:
npm run build
Usage
Configuration
Create an mcp.json file in the project root with configurations for each MCP server:
{
"mcpServers": {
"github": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_token"
}
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/files"]
}
// Add more MCP servers as needed
}
}
Running the Client
npm start
Or with a custom config path:
npm start -- /path/to/custom/mcp.json
How It Works
- The client connects to all servers defined in the mcp.json file
- Each tool from each server is prefixed with the server name (e.g., "github_searchRepo")
- When you enter a query, the LLM decides which tool(s) to call based on your request
- The client routes the tool call to the appropriate server and returns the results
Development
- Edit
index.tsto modify the client - Run
npm run buildto compile TypeScript to JavaScript - Run
npm startto start the client
Quick Start
Clone the repository
git clone https://github.com/jparksecurity/resync-mcp-clientInstall dependencies
cd resync-mcp-client
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.