TM

thirdstrandstudio/mcp-tool-chainer

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

57 stars 10 forks 품질 66 트렌드 13MIT

MCP (Model Context Protocol) 서버는 다른 MCP 도구로 호출하여 토큰 사용을 줄여 결과 전달을 통해 순차적 도구 실행을 허용합니다. 해결 https://github.

개요

MCP (Model Context Protocol) 서버는 다른 MCP 도구로 호출하여 토큰 사용을 줄여 결과 전달을 통해 순차적 도구 실행을 허용합니다. 해결 https://github.com/modelcontextprotocol/specification/issues/215 - Chain Multiple MCP tools together in sequence - Pass results from one tool as input to another tool using CHAIN RESULT placeholder - 입력Path 및 outputPath 매개 변수를 사용하여 JsonPath를 사용하여 특정 데이터를 필터 및 추출 - 구성 된 MCP 서버에서 자동 도구 발견 - 개별 도구 호출과 비교되는 최소 토큰 사용 이 서버는 다음과 같은 MCP 도구를 구현합니다. 1. mcp chain - 여러 MCP 서버를 함께 체인 2. chainable tools - 모든 MCP 서버에서 도구를 발견하므로 mcp chain 도구는 사용할 수 있습니다. 3. discover tools - 모든 MCP 서버에서 Rediscover 도구 그것을 실행하기 위해 마지막 MCP가입니다. claude desktop config.json 또는 mcp에 다음을 추가하십시오.

개요(AI 번역)

MCP (Model Context Protocol) 서버는 다른 MCP 도구로 호출하여 토큰 사용을 줄여 결과 전달을 통해 순차적 도구 실행을 허용합니다. 해결 https://github.com/modelcontextprotocol/specification/issues/215

JSON 경로와 같은 단계 기능:

특징

  • 시퀀스에서 여러 MCP 도구
  • CHAIN_RESULT placeholder를 사용하여 다른 도구로 한 도구에서 결과를 전달
  • JsonPath를 사용하여 필터 및 추출 inputPath 및 outputPath] 매개 변수
  • MCP 서버 구성의 자동 도구 발견
  • Minimal 토큰 사용은 개별 툴 호출에 비해

도구

이 서버는 다음과 같은 MCP 도구를 구현합니다.

  1. mcp_chain - 여러 MCP 서버를 함께 체인
  2. chainable_tools - 모든 MCP 서버에서 도구를 발견하므로 mcp chain 도구는 사용할 수 있습니다.
  3. discover_tools - 모든 MCP 서버에서 Rediscover 도구

설치

# 필수품

  • Node.js (v16 이상)
  • 오후

npm에서 설치

소스에서 설치

Claude Desktop, Cursor 등 사용

그것을 실행하기 위해 마지막 MCP가입니다.

`claude desktop config에 다음을 추가합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Tool Chainer

An MCP (Model Context Protocol) server that chains calls to other MCP tools, reducing token usage by allowing sequential tool execution with result passing. Designed to solve https://github.com/modelcontextprotocol/specification/issues/215

Step function like JSON paths:

Features

  • Chain multiple MCP tools together in sequence
  • Pass results from one tool as input to another tool using CHAIN_RESULT placeholder
  • Filter and extract specific data using JsonPath with inputPath and outputPath parameters
  • Automatic tool discovery from configured MCP servers
  • Minimal token usage compared to individual tool calls

Tools

This server implements the following MCP tools:

  1. mcp_chain - Chain together multiple MCP servers
  2. chainable_tools - Discover tools from all MCP servers so the mcp_chain tool can be used
  3. discover_tools - Rediscover tools from all MCP servers

Installation

Prerequisites

  • Node.js (v16 or later)
  • npm

Installing from npm

# Install
npm install @thirdstrandstudio/mcp-tool-chainer

# Or use with npx directly
npx -y @thirdstrandstudio/mcp-tool-chainer

Installing from source

# Clone the repository
git clone https://github.com/thirdstrandstudio/mcp-tool-chainer.git
cd mcp-tool-chainer

# Install dependencies
npm install

# Build the package
npm run build

Usage with Claude Desktop, Cursor etc

ENSURE IT IS THE LAST MCP TO RUN OTHERWISE IT WILL HAVE TO RUN DISCOVERY AGAIN

Add the following to your claude_desktop_config.json or mcp.json:

If installed from npm globally

{
  "mcpServers": {
    "mcp_tool_chainer": {
      "command": "npx",
      "args": ["-y", "@thirdstrandstudio/mcp-tool-chainer", "`claude_desktop_config.json` or `mcp.json`"],
      "env": {}
    }
  }
}

If installed from source

{
  "mcpServers": {
    "mcp_tool_chainer": {
      "command": "node",
      "args": ["/path/to/mcp-tool-chainer/dist/index.js", "`claude_desktop_config.json` or `mcp.json`"],
      "env": {}
    }
  }
}

Replace /path/to/mcp-tool-chainer with the actual path to your repository.

Examples

Chain Browser and XPath Tools

// Fetch a webpage and then extract specific content with XPath
const result = await callTool("mcp_chain", { 
  "mcpPath": [
    {
      "toolName": "mcp_browser_mcp_fetch_url",
      "toolArgs": "{\"url\": \"https://example.com\"}"
    },
    {
      "toolName": "mcp_xpath_xpath",
GitHub에서 전체 README 보기

설치

npx -y @thirdstrandstudio/mcp-tool-chainer `claude_desktop_config.json` or `mcp.json`
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "mcp_tool_chainer": { "command": "npx", "args": ["-y", "@thirdstrandstudio/mcp-tool-chainer", "`claude_desktop_config.json` or `mcp.json`"], "env": {} } } }