This TypeScript-based MCP server allows delegating tasks and offloading context windows by calling other MCP clients, enabling parallel and map-reduce execution of tasks, and acting as an agent for your agent.
This project requires some initial setup. Contributions to simplify the setup process are welcome.
The mcp-inception server allows an MCP client to call another MCP client, enabling task delegation and context window offloading. It's a TypeScript-based MCP server for LLM queries, leveraging mcp-client-cli.
execute_mcp_client
: Queries a separate LLM and returns the final answer, skipping intermediate steps.execute_parallel_mcp_client
: Executes a prompt in parallel for each input in a list. For example, it can retrieve the time for multiple cities simultaneously.execute_map_reduce_mcp_client
: Processes multiple items in parallel and then sequentially reduces the results to a single output. It takes mapPrompt
, reducePrompt
, and a list of items
. An example use case is analyzing multiple documents and synthesizing a summary.Requires mcp-client-cli
and a bash script to activate the virtual environment and execute the llm
executable. Install dependencies with npm install
, build with npm run build
, and use npm run watch
for auto-rebuild during development.
To use with Claude Desktop, add the server configuration to the claude_desktop_config.json
file.
Use the MCP Inspector for debugging with npm run inspector
.
tanevanwifferen/mcp-inception
January 25, 2025
March 28, 2025
JavaScript