这是一个设计用于促进与AI模型和服务进行高级交互的Model Context Protocol (MCP)客户端项目。
git clone https://github.com/your-username/mcp-client.git
cd mcp-client
pnpm install
mcp_config.json.example复制到mcp_config.jsonpnpm start
当您运行客户端时,所有自己的服务器都会被注册。
您可以使用list-tools API列出特定服务器可用的所有工具。
curl --location 'http://localhost:3000/list-tools/{serverName}'
call-tool API调用特定工具。curl --location 'http://localhost:3000/call-tool' \
--header 'Content-Type: application/json' \
--data '{
"serverName": "server_name",
"toolName": "tool_name",
"args": {
// 参数必须匹配来自list-tools响应的inputSchema
// 必需字段必须包含
// 可选字段可以省略
// 基于上述模式的示例:
// "issue_key": "PROJ-123" // 必需
// "expand": "..." // 可选
}
}'
所有工具调用都将记录在.cursorrules文件中。
重要:
git checkout -b feature/AmazingFeature)git commit -m '添加一些AmazingFeature')git push origin feature/AmazingFeature)根据MIT许可证分发。更多信息见LICENSE。
您的姓名 - your.email@example.com