mcp-inception

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.

26
1

Disclaimer

This project requires some initial setup. Contributions to simplify the setup process are welcome.

mcp-inception MCP Server

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.

Features

Tools

  • 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.

Development

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.

Installation

To use with Claude Desktop, add the server configuration to the claude_desktop_config.json file.

Debugging

Use the MCP Inspector for debugging with npm run inspector.

Repository

TA
tanevanwifferen

tanevanwifferen/mcp-inception

Created

January 25, 2025

Updated

March 28, 2025

Language

JavaScript

Category

AI