ephemeral-reasoning-mcp

ephemeral-reasoning-mcp

Provides an MCP server that decomposes complex problems into ordered, isolated reasoning contexts, yielding compressed summaries before discarding intermediate steps. Enables sequential or parallel step execution with optional verification for more reliable LLM reasoning.

Category
访问服务器

README

containerized-reasoning-mcp

MCP server that gives an LLM a disposable, step-by-step reasoning workflow, without calling any model API itself. No API key required. The host model (whatever's driving the chat - Claude, GPT, or anything else connected via MCP) does all the actual reasoning. This server just tracks the plan and hands back only compressed summaries between steps, so the working context stays small as the problem grows.

How it differs from a "sub-agent" design

Some reasoning-pipeline MCP servers spin up their own internal LLM client (needing its own API key) to do planning/reasoning/verification behind the scenes. This one doesn't call any model at all - it's a pure state machine. The host model:

  1. Breaks the problem into steps itself and calls containerized_reasoning_mcp_start.
  2. Reasons through the returned step(s), using only the compressed prior summaries it's given (not full raw reasoning from earlier steps).
  3. Calls containerized_reasoning_mcp_submit_step with a compressed summary, gets the next step(s) back.
  4. Repeats until the plan is complete, then calls containerized_reasoning_mcp_finalize.

Because no model call happens inside the server, this works with any MCP-compatible client, regardless of which model or provider is behind it - no ANTHROPIC_API_KEY, no provider lock-in.

Trade-off vs. the sub-agent design

The upside is zero API key / zero extra cost / works everywhere. The trade-off: since the host model does the reasoning in its own turns rather than in a truly separate hidden context, its visible output for each step still appears in the conversation transcript (there's no hiding raw reasoning traces the way a disposable sub-agent call could). What you still get is the discipline of the pipeline (ordered/parallel steps, compressed handoff between them) and no dependency on a second model or key.

Pipeline

Problem -> (host plans steps) -> containerized_reasoning_mcp_start
   -> Step 1 (host reasons) -> containerized_reasoning_mcp_submit_step -> Step 2 ...
   -> ... -> plan complete -> containerized_reasoning_mcp_finalize -> Final Answer (+ optional verification)

Steps run in the order given. Steps sharing the same parallelGroup are handed back together as independent work the host can do in either order.

Setup

Option A: from npm (recommended once published)

npm install -g containerized-reasoning-mcp

Option B: from source

git clone https://github.com/devLlama/containerized-reasoning-mcp.git
cd containerized-reasoning-mcp
npm install

That's it - no environment variables, no API key.

Run standalone

npm start

Runs as an MCP server over stdio.

Install in an MCP client

Standard stdio MCP server - works with any client that supports MCP (Claude Desktop, Claude Code, Cursor, Windsurf, claude.ai connectors, etc). Point the client at node plus the absolute path to src/index.js. No env block needed.

Claude Desktop

Edit your claude_desktop_config.json (Settings -> Developer -> Edit Config):

{
  "mcpServers": {
    "containerized-reasoning": {
      "command": "node",
      "args": ["/absolute/path/to/containerized-reasoning-mcp/src/index.js"]
    }
  }
}

Restart Claude Desktop after saving.

Claude Code

claude mcp add containerized-reasoning -- node /absolute/path/to/containerized-reasoning-mcp/src/index.js

Or add the same block as above to your project's .mcp.json.

Cursor / Windsurf / any MCP-compatible app

Same command/args shape as above (Cursor's mcp.json uses the same schema). Consult that app's docs for where its MCP config file lives.

claude.ai web chat

claude.ai's web chat connects to remote (HTTP/SSE) MCP servers via Settings -> Connectors, not local stdio processes launched from a browser tab. To use this server from claude.ai's web chat specifically, you'd need to deploy it behind an HTTP/SSE MCP transport and register it as a remote connector - running it locally via node src/index.js only works with clients that can launch local stdio processes (Claude Desktop, Claude Code, Cursor, etc).

Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{
  "mcpServers": {
    "containerized-reasoning": {
      "command": "node",
      "args": ["/absolute/path/to/containerized-reasoning-mcp/src/index.js"]
    }
  }
}

If published to npm, you can use "command": "npx", "args": ["-y", "containerized-reasoning-mcp"] instead. Restart Cursor and check Settings -> Tools & MCP for a green status dot.

OpenAI Codex (CLI / IDE extension / desktop app)

Codex supports local stdio MCP servers directly - no separate app review needed for CLI/IDE/desktop use:

codex mcp add containerized-reasoning -- node /absolute/path/to/containerized-reasoning-mcp/src/index.js

or add the same command/args block to ~/.codex/config.toml under mcp_servers. Run /mcp inside a Codex session to confirm it's connected. (This is separate from ChatGPT's hosted "Apps" marketplace, which currently only accepts remote Streamable HTTP MCP servers - see below.)

Gemini CLI

Create a gemini-extension.json:

{
  "name": "containerized-reasoning-mcp",
  "version": "0.2.0",
  "mcpServers": {
    "containerized-reasoning": {
      "command": "node",
      "args": ["src/index.js"]
    }
  }
}

Users can then install it with gemini extensions install <your-repo-url>, or you can list it in the Gemini CLI extensions gallery once published.

ChatGPT (hosted Apps / Apps SDK)

ChatGPT's in-chat App marketplace only accepts remote Streamable HTTP MCP servers with OAuth and a domain-ownership verification step (/.well-known/openai-apps-challenge) - it does not run local stdio processes the way Claude Desktop, Cursor, Codex, or Gemini CLI do. To make this server usable inside hosted ChatGPT, you'd need to wrap it behind a remote HTTP MCP transport and go through OpenAI's Apps SDK submission process. As-is, this repo works as a local stdio server with any MCP client that supports that transport.

Tools

tool purpose
containerized_reasoning_mcp_start Submit the problem + your own step plan; get the first step(s) back
containerized_reasoning_mcp_submit_step Submit a step's compressed summary; get the next step(s) or a "plan complete" signal
containerized_reasoning_mcp_finalize Submit the final answer (+ optional self-verification); get the compiled result, closes the session
containerized_reasoning_mcp_get_state Inspect an in-progress session without submitting anything
containerized_reasoning_mcp_discard Abandon a session

Sessions are held in memory for the life of the server process (keyed by sessionId), so they don't survive a server restart.

Privacy

This server makes no network calls and stores no data outside the running process's memory. Session state (problem text, step plan, step summaries) lives only in RAM for the life of the process and is discarded on restart or when a session is finalized/discarded. Nothing is written to disk, sent to a third party, or persisted anywhere by this server itself. (Whatever MCP client and host model you connect it to may have their own logging/telemetry - that's outside this server's control.)

Contributing

Bug reports, feature requests, and pull requests are welcome - see CONTRIBUTING.md.

License

MIT - see LICENSE. Free to use, modify, and redistribute, including commercially, as long as the copyright notice is kept.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选