Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
async/await for LLM agents: spawn and await sub-agents scheduled on your own GPUs
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
Runtime__Model, DataPlane__Url, LUFTPAUSE_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"luftpause": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"Runtime__Model",
"-e",
"DataPlane__Url",
"-e",
"LUFTPAUSE_TOKEN",
"ghcr.io/luftpause/runtime:v0.1.4"
],
"env": {
"Runtime__Model": "your-value",
"DataPlane__Url": "your-value",
"LUFTPAUSE_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add luftpause --env Runtime__Model=your-value --env DataPlane__Url=your-value --env LUFTPAUSE_TOKEN=your-value -- docker run -i --rm -e Runtime__Model -e DataPlane__Url -e LUFTPAUSE_TOKEN ghcr.io/luftpause/runtime:v0.1.4运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"luftpause": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"Runtime__Model",
"-e",
"DataPlane__Url",
"-e",
"LUFTPAUSE_TOKEN",
"ghcr.io/luftpause/runtime:v0.1.4"
],
"env": {
"Runtime__Model": "your-value",
"DataPlane__Url": "your-value",
"LUFTPAUSE_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"luftpause": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"Runtime__Model",
"-e",
"DataPlane__Url",
"-e",
"LUFTPAUSE_TOKEN",
"ghcr.io/luftpause/runtime:v0.1.4"
],
"env": {
"Runtime__Model": "your-value",
"DataPlane__Url": "your-value",
"LUFTPAUSE_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
DataPlane__Url env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
发布者(vmedvedovskiy)不是仓库所有者(luftpause);可能是其他人代为上架的
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 0 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:Runtime__Model, LUFTPAUSE_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.4)于14天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
The runtime layer under your agent harness. Every tool call is an `await`; the engine forgets the run, luftpause keeps it.
Tool calls split an agent into turns. To an inference engine each turn is a new request from nobody: when the tool returns, the continuation queues behind every batch request that arrived while it waited, and its KV cache may be gone. luftpause sits between the harness and the engines and keeps the run:
base_url at it (OpenAI-compatible, your own loop), or connect over MCP and get spawn / await sub-agents that survive a restart.Measured on one 8 GB laptop GPU, engines saturated (48 batch runs flooding, 4 interactive runs beside them):
| Throughput | Latency | What it costs | |
|---|---|---|---|
| Agents with their own loop, through luftpause vs straight to the SGLang router | 2.0× interactive (12.7 vs 6.4 runs/min) | interactive p50 19 s instead of 36 s | batch −9 % |
| Sub-agents over MCP, luftpause vs the runtime straight to the router | 2.7× interactive (8.0 vs 3.0 runs/min) | interactive p50 27 s instead of 58 s | batch unchanged |
| Fan-out, 16 sub-agents, vs one at a time | 5.3× (all 16 in 23 s instead of 120 s) | per sub-agent p50 15–22 s, the same as through the router | nothing: the router alone takes 21.5 s |
| Claude Code as the client, six Wikipedia look-ups | 2.9× (12.5 s instead of 36 s back to back, unprompted) | 70B sub-agents: all six in one round, 9.3 s | 0 failed tool calls, 0 re-spawns |
docker compose up -d # fake engines, no GPU needed
claude mcp add --transport http --scope local luftpause http://localhost:7000/mcp
docker compose up -d pulls the published images; add --build to build them from source instead (first build takes a few minutes). It pulls latest; pin a release with LUFTPAUSE_VERSION=v0.1.4 docker compose up -d. The runtime is also listed in the official MCP Registry as io.github.vmedvedovskiy/luftpause.
Claude Code now has spawn, await, run, status, cancel, approve, tools and decide. The fake engines answer with filler, and the sub-agents' only tools are fake-mcp's lookup and deep_search, which wait a random second or so and return filler too — enough to see the fan-out. For real answers from an Ollama already on your machine, with Wikipedia as the sub-agents' tool instead of the fake ones:
docker compose -f compose.yaml -f compose.ollama.yaml up -d scheduler dataplane runtime
Wikipedia's API rate-limits anonymous callers, so a tool call can take tens of seconds while wikipedia-mcp retries. Llama 3.2 1B sometimes passes a tool's schema instead of its arguments; the runtime rejects the call and the sub-agent may answer without it, so ask again or pull a larger model.
Ollama needs the model pulled (ollama pull llama3.2:1b, or set OLLAMA_MODEL) and must listen beyond loopback (OLLAMA_HOST=0.0.0.0) unless Docker Desktop already reaches it (it does on Windows and macOS with the default loopback binding). Ollama serves one request at a time unless OLLAMA_NUM_PARALLEL is raised, so sub-agents queue behind each other there; luftpause sees no queue metric from it and does not cap it. SGLang on your GPU (compose.testbed.yaml) or any OpenAI-compatible endpoint (compose.runpod.yaml shows a hosted vLLM pod) work the same way.
Routers place requests on a GPU pool; MCP servers delegate a sub-task to a local model. Neither knows what a run is. luftpause does: it sees every turn and every tool call of every run, through either door, and schedules them on one shared pool with three facts an engine never has: that a paused run will come back, what class of work it is, and who is asking.
The gains come from admission, not from routing. Routing alone ties SGLang's cache-aware router (below); with the engines idle, every arm ties. The difference appears when the engines are saturated, which is when it matters.
base_url at luftpause. It sends x-luftpause-run-id per run and, optionally, x-luftpause-class and x-luftpause-caller; every tool call in its loop is then a scheduled await.spawn / await. luftpause runs each sub-agent's loop through the same proxy: LLM turns on the pool, tool calls to upstream MCP servers, the MCP session as the caller, and a journal so the runs outlive the process.examples/ has three own-loop agents that set all three headers: the openai package, the OpenAI Agents SDK and LangGraph.
A harness that cannot set a header per run still works through the proxy: the run is recognised by the tool_call_ids it echoes back, and a fixed x-luftpause-caller is enough for fairness.
| Tool | MCP door | Proxy door |
|---|---|---|
| Claude Code | claude mcp add --transport http luftpause http://localhost:7000/mcp | n/a: speaks the Anthropic Messages API, not Chat Completions |
| Codex CLI | ~/.codex/config.toml: [mcp_servers.luftpause] url = "http://localhost:7000/mcp" | n/a: wire_api accepts only responses; the proxy serves Chat Completions |
| Gemini CLI | gemini mcp add --transport http luftpause http://localhost:7000/mcp, or .gemini/settings.json: {"mcpServers": {"luftpause": {"httpUrl": "http://localhost:7000/mcp"}}} | n/a: speaks the Gemini API (unverified) |
| Goose | goose session --with-streamable-http-extension "http://localhost:7000/mcp", or goose configure → Add Extension → Remote Extension (Streamable HTTP) | GOOSE_PROVIDER=openai OPENAI_HOST=http://localhost:8080 OPENAI_API_KEY=x OPENAI_CUSTOM_HEADERS="x-luftpause-caller=goose" |
| Cursor | ~/.cursor/mcp.json: {"mcpServers": {"luftpause": {"url": "http://localhost:7000/mcp"}}} | n/a: "Override OpenAI Base URL" is called from Cursor's servers, which cannot reach localhost (unverified) |
| Zed | settings.json: "context_servers": {"luftpause": {"url": "http://localhost:7000/mcp"}} | settings.json: "language_models": {"openai_compatible": {"luftpause": {"api_url": "http://localhost:8080/v1", "available_models": [{"name": " ", "max_tokens": 128000}], "custom_headers": {"x-luftpause-caller": "zed"}}}} |
| OpenHands | Settings → MCP Servers → add http://localhost:7000/mcp | Settings → LLM → Advanced: Custom Model openai/ , Base URL http://localhost:8080/v1, any API key; no header setting |
| Cline / Roo Code | Cline cline_mcp_settings.json: {"mcpServers": {"luftpause": {"type": "streamableHttp", "url": "http://localhost:7000/mcp"}}}; Roo .roo/mcp.json: same with "type": "streamable-http" | Provider "OpenAI Compatible", Base URL http://localhost:8080/v1, any API key; x-luftpause-caller under Custom Headers (unverified) |
%%{init: {"themeVariables": {"fontFamily": "-apple-system, Segoe UI, Helvetica, Arial, sans-serif"}, "flowchart": {"wrappingWidth": 260}}}%%
flowchart LR mcp["Claude Code or any MCP client"] own["Agents with their own loop"]
subgraph lp["luftpause"] runtime[" runtime · .NET spawn · await · journal sub-agent loops"] dp[" dataplane · Rust OpenAI-compatible proxy"] sched[" scheduler · .NET decide(state, event)"] end
tools[("MCP tool servers")]
subgraph pool["Engine pool"] direction TB engines["SGLang · vLLM"] router["SGLang router"] hosted["Hosted OpenAI- compatible APIs"] end
mcp -- MCP --> runtime own -- "HTTP / SSE" --> dp runtime -- "tool calls" --> tools runtime -- "LLM turns" --> dp dp -- "turns" --> pool sched <-- "Admit · Report · run ended" --> dp sched -. "health · load" .-> pool
runtime/) — MCP server. Each spawned run is a .NET Task running the agent loop; tool calls go to the configured MCP servers. Every run is journaled to runs.jsonl and resumed on restart; a finished run is reported to the dataplane (DELETE /v1/runs/{id}) so the scheduler forgets it at once.dataplane/crates/dataplane) — tokio/axum proxy. Resolves the run (header or tool-call ids), reads the class and caller headers, asks the scheduler where the turn goes, streams the engine's response through unchanged and reports first token, usage and finish reason.scheduler/) — the decision core is pure functions over immutable state (Luftpause.Scheduling); the gRPC host executes the actions.fake-engine (OpenAI + /classify with simulated latency), fake-mcp (a lookup and a slow deep_search tool), tools/loadgen (agents, sub-agent fan-out over MCP, closed-loop throughput runs).| Capability | How | |
|---|---|---|
spawn / await over MCP | spawn(task, model?, serviceClass?, system?, maxToolCalls?, tools?, maxTokens?, parallelToolCalls?, parent?, budgetTokens?, budgetToolCalls?, budgetSeconds?, approveTools?) returns a handle at once; `await(handles, all\ | any, timeout) collects results with toolCalls / failedToolCalls; also tools, status, cancel, and decide(input, labels?, model?): without labels the single-pass model's labels, with 2 to 20 labels one max_tokens: 1 turn on the generative model scored by first-token logprobs, returning label, probabilities and unscored` |
| Durable runs | every run is journaled (runs.jsonl under Runtime:StateDir): spawned, each tool round's messages, finished; on restart the runtime replays the journal, answers await for finished runs and resumes unfinished ones from their last complete tool round | |
| Run tree | spawn(parent) makes a run a child; status lists parent and children; cancel of a parent cancels its running descendants; the runtime's GET /status returns the tree with each run's own work and its subtree's totals (turns, tool calls, failed tool calls, prompt and completion tokens, turn and tool seconds) | |
| Budgets | spawn(budgetTokens?, budgetToolCalls?, budgetSeconds?) caps a run's whole subtree (it and every run spawned under it, later ones included) on prompt plus completion tokens, tool calls and wall-clock seconds; checked on every turn and tool round anywhere below a budgeted run, and by a timer for seconds so an idle subtree still trips; past a limit the subtree is cancelled with budget exceeded: / , and status / await show budget with limits, used and exceeded |
| Tool approval | a sub-agent's tool call waits for the harness user when its server marks the tool destructiveHint: true (and not readOnlyHint: true) or spawn(approveTools) names it; the run shows status AwaitingApproval with pendingApproval {tool, arguments}. A client that advertises elicitation is asked while its await or run covers the run, with a one-field form (allow): on a session as an elicitation request, on a sessionless 2026-07-28 request as an input-required result. Other clients answer with approve(handle, allow). A declined call reaches the sub-agent as Error: the user declined this tool call. Decisions are journaled: one answered just before a restart is not asked again, an unanswered one is. Clients: Claude Code 2.1.218 in a terminal shows the prompt during await
只显示了开头部分;其余内容请在仓库中阅读