Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
作者提供的说明(英文原文)
Reduces log files for AI consumption — 50-90% token reduction via 18 deterministic transforms.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"log-reducer": {
"command": "npx",
"args": [
"-y",
"logreducer"
]
}
}
}在终端中运行这条命令
claude mcp add log-reducer -- npx -y logreducer粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"log-reducer": {
"command": "npx",
"args": [
"-y",
"logreducer"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"log-reducer": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"logreducer"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
发布者(imankha)不是仓库所有者(launch-it-labs);可能是其他人代为上架的
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 0 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.1)于8个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Spec Driven Development, Remote Desktop Commander, zanadir
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Find what a repository's CI is missing, and which security checks cannot fail the build.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Your AI coding agent is spending thousands of tokens reading raw logs — DEBUG spam, health checks, duplicate lines, framework stack frames, UUIDs. Those tokens are gone for the rest of the session. The agent has less room to think, generates worse code, and hits its context limit faster.
Log Reducer sits between the log and the AI. It reduces the file down to just the signal — errors, warnings, state changes, unique events — typically cutting 70-90% of tokens. The raw log never enters the AI's context.
It runs as an MCP server (the AI calls reduce_log with a file path) or as a CLI (pipe any log through it). No API keys, no network calls — deterministic text transforms that run instantly.
You're running your FastAPI dev server. You click around, hit a 500 error, and copy the terminal output into a file. It's 218 lines — mostly a wall of framework stack traces:
218 lines, 1185 tokens → 51 lines, 310 tokens (74% reduction)
Here's what the tool does to the stack trace. This is a real Python exception group with uvicorn, starlette, and FastAPI frames:
Before — 95 lines of stack trace, full C:\Users\...\.venv\Lib\site-packages\ paths:
| File "C:\Users\imank\projects\video-editor\src\backend\.venv\Lib\site-packages\
uvicorn\protocols\http\httptools_impl.py", line 426, in run_asgi | result = await app( # type: ignore[func-returns-value] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "C:\Users\imank\projects\video-editor\src\backend\.venv\Lib\site-packages\ uvicorn\middleware\proxy_headers.py", line 84, in call | return await self.app(scope, receive, send) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 85 more framework lines ... | File "C:\Users\imank\projects\video-editor\src\backend\app\routers\exports.py", line 745, in list_unacknowledged_exports
After — your code preserved, framework collapsed, duplicate traceback gone:
| [... 10 framework frames (uvicorn, fastapi, starlette, contextlib) omitted ...]
| File "app/middleware/db_sync.py", line 107, in dispatch | response = await call_next(request) | [... 6 framework frames (starlette, contextlib) omitted ...] | File "app/main.py", line 97, in dispatch | response = await call_next(request) | [... 16 framework frames (starlette, fastapi) omitted ...] | File "app/routers/exports.py", line 745, in list_unacknowledged_exports | exports=[ | File "app/routers/exports.py", line 746, in | ExportJobResponse( | pydantic_core._pydantic_core.ValidationError: 1 validation error for ExportJobResponse | project_id | Input should be a valid integer [type=int_type, input_value=None, input_type=NoneType]
Traceback (most recent call last): [... duplicate traceback omitted ...]
The bug is clear: exports.py:745 passes project_id=None to a Pydantic model that expects an int. Three framework frames, not 95. No C:\Users\...\.venv\ paths.
(Full before/after | How the funnel pattern works for larger logs)
npm install -g logreducer
Run this in your project root:
claude mcp add logreducer -s project -- npx -y logreducer --mcp
This writes the config to .mcp.json (the file Claude Code reads). Or add it manually:
{
"mcpServers": { "logreducer": { "command": "npx", "args": ["-y", "logreducer", "--mcp"] } } }
Tell Claude Code: *"Follow the integration guide at https://github.com/launch-it-labs/log-reducer/blob/master/docs/agent-integration.md"* — it will add the right instructions to your CLAUDE.md and set up the /logdump slash command.
Verify it worked: *"What MCP tools do you have?"* — it should list reduce_log.
That's it. Your AI agent now reduces logs automatically instead of reading them raw.
Once set up, you don't need to learn any commands or parameters — the AI handles everything automatically. There are just two things to know:
Copy a log to your clipboard, then type `/logdump` in the chat. The raw log is saved to a temp file and reduced automatically — it never enters the AI's context. This is the recommended way to share logs.
You can also point the AI at a file: *"check the errors in /var/log/app.log"* — it will call reduce_log on it instead of reading it raw.
You can also use it directly from the command line, outside of an AI session:
logreducer < app.log > reduced.log
kubectl logs my-pod | logreducer logreducer --level error --context 10 < app.log
Everything below is for the curious — you don't need any of this to use Log Reducer.
Biggest impact first:
level filter)[... N framework frames omitted ...]timestamp - module - LEVEL → 1 header + indented messages$1, $2, ...2024-01-15T14:32:01.123Z → 14:32:0119 transforms, applied in sequence. Rule-based, deterministic, no API calls required. One dependency (@modelcontextprotocol/sdk). Optional query param uses Claude for targeted extraction (requires ANTHROPIC_API_KEY).
Stack trace folding in detail
This is where most of the reduction comes from on error logs:
[... 10 framework frames (uvicorn, fastapi, starlette) omitted ...]C:\Users\me\project\.venv\Lib\site-packages\starlette\routing.py → starlette/routing.py^^^^^^)[... duplicate traceback omitted ...]| prefixed traces)Deduplication in detail
When consecutive lines share the same structure but differ in specific values, the output shows a template with the varying values:
[x7] [CacheWarming] Warmed tail of large video ({N}MB) | N = 2574, 3139, 2897, 3063, 2490, 2996, 3043
The tool isn't just a one-shot reducer. It supports a funnel pattern that lets the AI investigate a large log file in multiple targeted passes — spending ~1,000 tokens total instead of 5,000+ from a blind dump. The AI does this automatically, but here's what's happening under the hood:
Step 1: SURVEY → reduce_log({ file, tail: 2000 }) ~50 tokens
If the reduced output exceeds the threshold (default: 1000 tokens), the tool automatically returns an enhanced summary instead of the full output: unique errors/warnings with counts, time span, and components.
Step 2: SCAN → level: "error", limit: 3 ~200 tokens See first 3 errors with context. Note timestamps.
Step 3: ZOOM → time_range: "13:02:28-13:02:35", before: 50 ~500 tokens 50 lines leading up to the first error — the causal chain.
Step 4: TRACE → grep: "pool|conn", time_range: "13:00-13:05", ~300 tokens limit: 15, context: 0 Follow the connection pool thread.
Total: ~1,050 tokens. The agent found the root cause (connection pool exhaustion from a batch job) without ever loading the full log.
See docs/agent-integration.md for the full parameter reference and filter details.
@modelcontextprotocol/sdk).The easiest way to contribute is to paste a log file. Open this project in Claude Code, paste a log into the chat, and the AI will analyze it, identify patterns the pipeline misses, implement high-generality fixes, and create a PR. No code knowledge required — your log becomes a test fixture that makes the tool better for everyone.
You can also submit a log via GitHub issue if you don't use Claude Code.
For code contributions, see CONTRIBUTING.md.
MIT