Skip to main content
Glama

免责声明

好吧,这个问题有点难。很遗憾,需要一些设置。不过,如果你能把这个问题简化一下,请给我发个 PR。

mcp-inception MCP 服务器

从您的 mcp 客户端调用另一个 mcp 客户端。委托任务,卸载上下文窗口。为您的代理提供代理!

这是一个基于 TypeScript 的 MCP 服务器,实现了一个简单的 LLM 查询系统。

  • MCP 服务器和客户端合二为一

  • 使用mcp-client-cli制作

  • 卸载上下文窗口

  • 委派任务

  • 任务的并行和 Map-Reduce 执行

特征

工具

  • execute_mcp_client - 向单独的 LLM 提出问题,忽略查询其工具时所需的所有中间步骤,并返回输出。

    • 将问题作为必需参数

    • 返回答案,忽略所有中间上下文

  • 执行_parallel_mcp_client - 获取输入列表和主提示符,并针对输入中的每个字符串并行执行提示符。例如,获取 6 个主要城市的当前时间:伦敦、巴黎、东京、里约、纽约、悉尼。

    • 接受主要提示“这个城市的时间是几点?”

    • 获取输入列表,伦敦巴黎等

    • 为每个输入并行运行提示

    • 注意:使用此功能前请等待

  • execute_map_reduce_mcp_client - 并行处理多个项目,然后按顺序将结果减少为单个输出。

    • 使用mapPrompt和{item}占位符来处理单个项目

    • 使用reducePrompt和{accumulator}以及{result}占位符来合并结果

    • 获取要处理的items清单

    • 累加器的可选initialValue

    • 并行处理项目,然后按顺序减少结果

    • 用例示例:分析多个文档,然后将所有文档中的关键见解综合成摘要

Related MCP server: Orchestration MCP

发展

依赖项:

  • 安装 mcp-client-cli

    • 还要安装配置文件,以及~/.llm/config.json中所需的 mcp 服务器

  • 在某处创建一个 bash 文件,用于激活 venv 并执行llm可执行文件

#!/bin/bash
source ./venv/bin/activate
llm --no-confirmations

安装包

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

安装

要与 Claude Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "mcp-inception": {
      "command": "node",
      "args": ["~/Documents/Cline/MCP/mcp-inception/build/index.js"], // build/index.js from this repo
      "disabled": false,
      "autoApprove": [],
      "env": {
        "MCP_INCEPTION_EXECUTABLE": "./run_llm.sh", // bash file from Development->Dependencies
        "MCP_INCEPTION_WORKING_DIR": "/mcp-client-cli working dir"
      }
    }
  }
}

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

Available Tools

3 tools
execute_map_reduce_mcp_clientC

Process multiple items in parallel then sequentially reduce the results to a single output.

Inputs: mapPrompt (required), reducePrompt (required), items (required), initialValue.

execute_mcp_clientB

Offload certain tasks to AI. Used for research purposes, do not use for code editing or anything code related. Only used to fetch data.

Inputs: command (required).

execute_parallel_mcp_clientC

Execute multiple AI tasks in parallel, with responses in JSON key-value pairs.

Inputs: prompt (required), items (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 3 tools

    Disambiguation2/5

    The three tools have overlapping purposes centered around executing MCP client tasks, with unclear boundaries. execute_map_reduce_mcp_client and execute_parallel_mcp_client both handle parallel execution, while execute_mcp_client is described more broadly for offloading tasks, leading to potential confusion about when to use each.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with a 'execute_' prefix, making them predictable and readable. The naming structure is uniform across the set, with no deviations in style or convention.

    Tool Count3/5

    With only 3 tools, the set feels thin for a server named 'MCP Inception MCP Server', which suggests a broader scope. While the tools cover parallel and sequential execution, the limited count may not fully support complex workflows or diverse use cases implied by the server name.

    Completeness2/5

    The tool set is severely incomplete for an MCP server, lacking basic operations like configuration, monitoring, or error handling. It focuses narrowly on execution variants without covering setup, management, or integration aspects, leaving significant gaps for agent-driven tasks.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A TypeScript-based server that connects MCP Clients to Dify applications, dynamically exposing Dify applications as tools that can be used directly within the MCP Client.
      5
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      A TypeScript MCP server for launching, tracking, and managing external coding-agent runs across local and remote backends like Codex and Claude Code. It allows top-level agents to orchestrate subagents through tools for spawning tasks, polling events, and handling interactive sessions.
      7
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A self-hosted MCP server that provides a single execute_code tool, enabling agents to write TypeScript to call multiple REST APIs via fetch() with transparent credential injection, reducing token usage by keeping intermediate results in the sandbox.
      11
      BSD 3-Clause
    • A
      license
      Not graded
      quality
      D
      maintenance
      A TypeScript gateway that aggregates multiple MCP servers into a single endpoint, enabling AI agents to access tools from many backends through one connection.
      2
      ISC