一个 MCP(模型上下文协议)服务器,通过按顺序链接调用其他 MCP 工具来减少代币使用量。该工具链器旨在解决 https://github.com/modelcontextprotocol/specification/issues/215 中提出的问题。
CHAIN_RESULT 占位符将一个工具的结果传递给另一个工具作为输入。inputPath 和 outputPath 参数使用 JsonPath 过滤和提取特定数据。# 安装
npm install
# 启动服务器
node dist/index.js config.json
# 列出可用工具
node dist/index.js config.json discover_tools
# 安装依赖项
npm install
# 启动服务器
node dist/index.js config.json
# 列出可用工具
node dist/index.js config.json discover_tools
# 安装依赖项
npm install
# 启动服务器
node dist/index.js config.json
# 列出可用工具
node dist/index.js config.json discover_tools
此服务器实现了以下 MCP 工具:
mcp_chain - 将多个 MCP 服务器按顺序链接在一起。chainable_tools - 从所有 MCP 服务器中发现工具,以便 mcp_chain 工具可以使用。discover_tools - 重新发现所有 MCP 服务器中的工具。MCP 工具链器现在支持 AWS Step Functions 式的 InputPath 和 OutputPath 功能:
这些功能仅在输入/输出为有效 JSON 时才起作用。如果 JsonPath 提取失败,则使用原始输入/输出。
有关 JsonPath 语法参考,请参见 JsonPath Syntax。
此 MCP 服务器根据 MIT 许可证发布。
由 Third Strand Studio 创建