zoom-cockpit
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ZoomCockpit · 面向 AI 编程代理的 100% 本地离线混合神经符号变焦驾驶舱
简体中文 | English | DSH + DeepSeek 带 Agent 实测手册 | Agent 评测执行提示词 | 产品与架构设计 | 本地评测与交接手册 | 基准原始材料
ZoomCockpit 是一个 100% 本地离线运行、零外部云端 API、默认零重模型毫秒级响应 的跨宿主代码图谱与影响面驾驶舱。专为无独显核显机与日常开发机设计,支持 DeepSeek Harness (DSH) 原生插件、Claude Code、OpenAI Codex CLI、Google Antigravity 及 常驻热内存 stdio MCP / 独立 CLI 接入。
核心定位与本次最终优化要点
围绕四大核心追求(① 改前防炸/改后审计/精准跑测 > ② 压缩续接/事前省 Token > ③ 核显机极速稳定零折腾 > ④ 多语言 Monorepo & 多文件协同定位)与四家主流 Harness 源码级协议对齐:
默认零模型极速档(核显机友好):默认彻底关闭重型本地 ONNX 模型(消除 3.4×–18.8× CPU/核显延迟暴涨),仅在显式传
--rerank或设COCKPIT_ENABLE_ONNX=1时按需启用;修复相对COCKPIT_CBM_CACHE_DIR静默降级并新增沙箱可写缓存回退链与显式degraded/degradedReason诊断。改前防炸 +
impact --diff改后残留审计:基于扩展多边图谱(CALLS/IMPORTS/INHERITS/IMPLEMENTS/OVERRIDES/USAGE/TESTS/FILE_CHANGES_WITH)与git diff自动检出悬空已删导出(dangling_removed_symbol)与签名变更残留调用方(signature_changed_callers),附[hub:escalate-tests]高扇入升级预警与头尾锚定输出。压缩续接
brief --focus auto& 多文件骨架zoom --skeleton --compact:锚定磁盘客观git status/git diff一步重建未提交工作集、PPR 邻域与未验证影响面;支持单/多文件紧凑 AST 骨架一次性省 Token 阅读。TS/JS Monorepo 深度解析 + Git Commit 历史通道:支持
tsconfig.jsonextends继承、package.jsonworkspaces/pnpm-workspace.yaml、exports子路径与通配符映射,以及零模型 Git 提交说明词法通道。四家 Harness 协议级合规:MCP
inputSchema严格遵守 DSH 8 关键字子集、补齐四件套annotations与initialize.instructions、英文首行 ≤160 字符描述、零outputSchema/structuredContent兼容陷阱。
Related MCP server: openkrak-mcp
核心四把工具:精度优先、按需变焦
工具 / 命令 | 适用场景 | 核心能力 | 典型开销 |
| 改前防炸、改后审计与精准跑测(最高优先级) | • | 预算可控,头尾锚定 |
| 上下文压缩后快速续接或初入陌生仓库 | • |
|
| 先看多文件高压缩骨架,锁定后再按精确行段直读 | • | 省 |
| 按任务描述、报错栈、改动文件定位跨文件协作者 | • SQLite FTS5 + AST Symbol IDF + 堆栈信号 + Git Commit 历史通道 + TS Monorepo workspaces/exports 解析 + 符号级 PPR 无参 |
|
3 分钟安装与必做自检(极其重要)
前置要求
Node.js
>= 22.5.0(依赖内置node:sqlite)可选安装
ripgrep(rg)与git
第一步:克隆并安装本地推理运行时依赖
注意:v3.0 生产运行需要安装
@huggingface/transformers与onnxruntime-node两个跨平台本地离线推理包,必须执行npm install!
git clone https://github.com/Zegel-None/ZoomCockpit.git
cd ZoomCockpit
npm install第二步:一键安装纯 C 图谱引擎(默认零模型极速模式)
默认运行完全不需要下载 ONNX 权重,几十秒即可装好 codebase-memory-mcp 单静态二进制:
# 推荐:零模型极速安装(仅安装 CBM 图谱引擎,核显机毫秒级响应)
node bin/zoom-cockpit.mjs setup --skip-models
# 可选:如需按需启用 ONNX 跨编码器精排(仅在显式传 --rerank 或 COCKPIT_ENABLE_ONNX=1 时激活)
node bin/zoom-cockpit.mjs setup --mirror https://hf-mirror.com第三步:核验环境与缓存目录就绪
node bin/zoom-cockpit.mjs setup --check --json确认输出 JSON 满足 "installed": true、"cacheDirWritable": true、"localModelsEnabledByDefault": false 即可开始使用或运行带 Agent 的 A/B 实测。
五种接入方式
方式一:常驻 stdio MCP(Claude Code / Cursor / Windsurf 推荐)
常驻进程模式下,ONNX 模型与仓库索引热驻留内存,零冷启动开销:
{
"mcpServers": {
"zoom-cockpit": {
"command": "node",
"args": ["/absolute/path/to/ZoomCockpit/bin/zoom-cockpit.mjs", "mcp", "--require-root"]
}
}
}方式二:Google Antigravity 原生插件
node bin/zoom-cockpit.mjs setup --antigravity
node bin/zoom-cockpit.mjs setup --antigravity --check方式三:OpenAI Codex 桌面端 / CLI 原生插件
node bin/zoom-cockpit.mjs setup --codex方式四:DeepSeek Harness (DSH) 原生宿主插件
在 DSH 中通过 Plugins → Add plugin 指向本地克隆目录,自动装载 cockpit_brief / cockpit_locate / cockpit_zoom / cockpit_impact 与配套 Skill。
方式五:CLI 直接调用(常用速查)
# 1. 全局架构地图 / 上下文压缩后恢复任务焦点
node bin/zoom-cockpit.mjs brief --root /path/to/repo
node bin/zoom-cockpit.mjs brief --focus "订单优惠券扣减与税费计算" --budget 1200 --root /path/to/repo
# 2. 中英混合定位 + 一次性输出精度优先 AST 上下文包(--context-pack)
node bin/zoom-cockpit.mjs locate "删除缓存后并发请求击穿处理逻辑" --with-symbols --context-pack --root /path/to/repo
# 3. 消融或极速场景:仅禁用重排(--no-rerank)或强制零模型纯词法图谱档(--zero-model)
node bin/zoom-cockpit.mjs locate "pyproject.toml optional dependencies" --zero-model --root /path/to/repo
# 4. 改代码后查波及调用链与必跑单测
node bin/zoom-cockpit.mjs impact src/auth/retry.ts --compact --root /path/to/repo
# 5. 先读压缩骨架(省 85% Token),再按精确行段直读源码
node bin/zoom-cockpit.mjs zoom src/auth/retry.ts --skeleton --root /path/to/repo
node bin/zoom-cockpit.mjs zoom src/auth/retry.ts:40-88 --source --compact --root /path/to/repo公开基准实测(4,347 题跨 7 大公开基准)
透明口径说明:下表展示
v2.0.0基线与v3.0.0零模型档(0-Model Mode) 在仓库内公开脚本上的真实自跑对比(共 4,347 题)。完整双 ONNX 神经符号档(--mode full --require-models)复测命令详见evidence/HANDOFF-v3.0-LOCAL-TEST-BENCH.md。
公开基准(题量 / 语言) | 核心指标 | v2.0.0 基线 | v3.0.0(零模型档实测) | 提升幅度 / 同场对照 |
SWE-bench Lite 定位(274 题,Python) | File@1 / Any@5 / Func@10 | 34.7% / 68.3% / 26.6% | 61.3% / 86.1% / 57.3% | File@1 +26.6pp(大幅超越加强版 BM25 37.6%) |
LocBench(560 题,Python) | File@1 / Any@5 / Func@10 | 23.9% / 52.2% / 13.0% | 59.5% / 84.1% / 55.9% | File@1 +35.6pp,Func@10 4.3× |
SWE-PolyBench(500 题,Py/Go/Java/TS) | File@1 / Any@5 / Recall@5 | — | 43.9% / 75.2% / 64.9% | 远超原生 CBM-FTS(12.0% / 30.9%)3.6× |
Multi-SWE-bench 派生定位(450 题,9 语言) | File@1 / Any@5 / Recall@10 | 24.2% / 47.7% / 61.6% | 42.1% / 71.0% / 67.3% | File@1 +17.9pp(Go Any@5 达 92.0%) |
SWE-bench Multilingual(300 题,9 语言) | File@1 / Any@5 / Recall@5 | — | 48.8% / 76.6% / 67.1% | 跨 Rust/C/C++/Java/PHP/Ruby 稳健泛化 |
RepoQA(600 题,60 真实仓 6 语言) | Needle R@1 / R@5 / R@10 | 37.5% / — / 77.7% | 58.3% / 85.2% / 91.5% | R@1 +20.8pp,R@10 突破 91.5% |
MulLocBench(1,663 题,全类型真实 Issue) | Code Issue Any@5 / 全集 Any@5 | — | 69.4% / 56.1% | v3.0 现已新增意图门控 Manifest/Config/Doc 支持与双模型语义对齐 |
本地开发、测试与带 Agent 实测指南
DeepSeek Harness (
dsh) + DeepSeek 带 Agent 配对 A/B 实测与 Go/No-Go 淘汰手册:请直接阅读docs/AGENT-EVAL-DSH.md给另一台机器或本地接手 Agent 的环境与排坑清单:请直接阅读
REMOTE-DEV.md历史公开基准复测脚本说明:请参考
evidence/HANDOFF-v3.0-LOCAL-TEST-BENCH.md
npm run lint # 语法、离线依赖白名单、版本号同步与宿主解耦契约检查
npm test # 运行全量 Vitest 单元与契约测试技术渊源与开源致谢
底层引擎与推理底座:DeusData/codebase-memory-mcp(MIT,多语言 Tree-sitter AST 与持久化图谱)、MinishLab Model2Vec / Potion(MIT,极速多语言静态蒸馏向量)、Jina Reranker v2 Multilingual(跨语言交叉注意力精排)、Transformers.js & ONNX Runtime(Apache-2.0 / MIT,本地跨平台量化推理)、BurntSushi/ripgrep。
学术与开源算法融合:BLUiR(Saha et al., ASE 2013 结构化四域检索)、BLIZZARD(Rahman & Roy, ESEC/FSE 2018 堆栈/噪音自适应重加权)、BM25+(Lv & Zhai, CIKM 2011 长文件下界补偿)、RM3 伪相关反馈、Cormack RRF(SIGIR 2009 无参倒数秩融合)、Locus / AmaLgam(Git 演化共变耦合边)、Aider RepoMap(动态焦点 PPR 地图)与 Agentless(层次化 AST 骨架收敛)。
公开评测集致谢:感谢 SWE-bench、LocAgent / LocBench、SWE-PolyBench、Multi-SWE-bench、MulLocBench、RepoQA、Agent Retrieval Bench (ARB) 与 SERBench 团队开源的高质量评测基准。
本项目孵化自 DoneGate,基于 MIT License 开源发布。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Code-map tools for AI agents: see a repo's structure first, then edit only what matters.
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to query and analyze code across multiple repositories through a unified knowledge graph, with tools for symbol search, impact analysis, and graph algorithms.MIT
- FlicenseNot gradedqualityDmaintenanceEnables coding agents to pre-compute repository structure and access structured intelligence briefs, including dependency graphs, hotspots, and blast radius, reducing token usage and improving code understanding.1-
- AlicenseBqualityBmaintenanceEnables AI coding agents to build and query local repository memory, returning ranked files, context packs, relationship maps, semantic recall, and feedback-tuned search without uploading code.9137 PyPI1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to understand unfamiliar codebases through project summaries, file explanations, feature tracing, change planning, test discovery, guided walkthroughs, and token-efficient repository digests.1Apache 2.0