技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
rafim-dev/mcp-context-condenser

rafim-dev/mcp-context-condenser

MCP Context Condenser Token-slimming AST code outliner, surgical symbol extractor, and log compressor cutting AI agent context usage and API bills by up to 85%.** Designed for **Cursor**, **Claude Desktop**, **Cline**, and **Antigravity**.
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add mcp-context-condenser -- npx -y mcp-context-condenser
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
0 ★ · rafim-dev/mcp-context-condenser · 取自 GitHub 搜索 API · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 rafim-dev/mcp-context-condenser;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

MCP Context Condenser ⚡

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

> **Token-slimming AST code outliner, surgical symbol extractor, and log compressor cutting AI agent context usage and API bills by up to 85%.**
Designed for **Cursor**, **Claude Desktop**, **Cline**, and **Antigravity**. Works seamlessly as an **MCP stdio server** or standalone **terminal CLI**.
---
🛑 The Problem: LLM Context Saturation & Financial Bleed
Feeding entire 1,000–3,000 line source files into Claude 3.7 Sonnet or GPT-4o context windows causes two critical issues:
1. **Financial Bleed**: Massive prompt token burns ($15–$50+/day on active pair-programming sessions).
2. **"Lost in the Middle" Degradation**: Drowning models in boilerplate internal implementations increases hallucination rates and degrades adherence to subtle architectural rules.
Most agent interactions only need **exported interfaces, type signatures, or one specific helper function**.
---
✨ Superpowers
| Tool / Command | Description | Token Reduction |
| :--- | :--- | :--- |
| condense_source / outline | Generates type-safe AST code skeletons preserving imports, interfaces, types, and method signatures while condensing function bodies. | **Up to 85%** |
| extract_symbol / symbol | Surgically extracts only the requested class, interface, or function with relevant file-level imports. | **Up to 95%** |
| compress_log / log | Strips noisy terminal passes and boilerplate, pinpointing failing assertions, compiler errors, and app stack frames. | **Up to 90%** |
| token_budget / budget | Calculates token weight (~3.8 chars/token) and provides context-window safety warnings before ingesting huge files. | Proactive Guardrail |
---
📊 Live Benchmark
Ingesting a 450-line TypeScript payment gateway service (PaymentGatewayService.ts):
---
🚀 Quickstart Installation
Option 1: Claude Desktop
Add to your claude_desktop_config.json:
Option 2: Cursor
Add to your .cursor/mcp.json:
Option 3: Terminal CLI (Zero Configuration)
Run directly from your terminal:
---
🛠️ MCP Tool Reference
1. condense_source
* **Inputs**:
* sourceCode *(string)*: Raw code to outline.
* preserveDocstrings *(boolean, optional)*: Whether to preserve JSDoc / TSDoc comments.
* **Returns**: Condensed outline, line count diff, token reduction percentage.
2. extract_symbol
* **Inputs**:
* sourceCode *(string)*: Full source code.
* symbolName *(string)*: Name of function, class, interface, or type.
* **Returns**: Extracted symbol with file imports and line numbers.
3. compress_log
* **Inputs**:
* rawLog *(string)*: Raw test, compiler, or build output.
* **Returns**: Isolated failures, root-cause assertion messages, and source code line pointers.
来源
awesome · https://github.com/rafim-dev/mcp-context-condenser
按领域浏览
MCP 服务
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引