HARSHNEXX/TokenMS
本地运行的 MCP 服务,用 AST 符号图按需检索代码,压缩 AI 编码上下文。
解决什么问题
没有它,AI 编码代理会把大量 token 花在反复读取整文件和 grep 探索上,而不是真正的任务。
- 多语言 AST 符号解析
- 混合多模态检索
- 受 token 预算约束的上下文装配
适用客户端
- claude-desktop
- cursor
- vscode
- cli
安装命令
pip install -e . 一键配置
{
"mcpServers": {
"tms": {
"command": "python",
"args": [
"-m",
"tms.app",
"serve"
],
"cwd": "${workspaceFolder}"
}
}
} {
"mcpServers": {
"tms": {
"command": "python",
"args": [
"-m",
"tms.app",
"serve"
],
"cwd": "/path/to/your/project"
}
}
} 安全标记
- 需要 API Key: 未标注
- 本地运行: 是
- 访问网络: 是
- 需要 root: 否
维护状态
| 最近提交 | 2026-12-04(1d) |
|---|---|
| Star | 11 |
| 待处理 issue | 0 |
| 协议 | — |
| 已归档 | 否 |
| 数据抓取于 | 2026-12-06 |
原文摘录
以下为仓库 README 原文,未做改写,用于核对上面的摘要。
Local-First Code Intelligence and Context Management for AI Coding Agents