Token导航 LogoToken导航

MCP Server · 开发工具

Code Assistant CLI

一个通过MCP协议连接Code RAG系统的TypeScript CLI工具,提供智能代码探索和辅助功能。

stdio官方级别未说明来源级核验工具 4
代码搜索TypeScriptClaude开发工具Windsurf

快速开始

作者 / 组织
jcalmeida
提供方
jcalmeida
运行时
Python

工具数量

4

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

Code Assistant CLI 属于开发工具类 MCP Server,公开资料标注 4 个工具,通过stdio 本地进程接入,适配 Claude、Windsurf,有可以直接复制的安装命令;接入前要先准备 会话凭据。

分类

开发工具

传输方式

stdio

认证方式

会话凭据

部署方式

公开资料未说明

安装与配置

安装命令

python -m src.mcp_server

客户端配置示例

{
  "mcpServers": {
    "code-assistant-cli": {
      "command": "python",
      "args": [
        "-m",
        "src.mcp_server"
      ]
    }
  }
}

按公开安装命令拼出来的示例,字段名和参数以仓库 README 为准;带 YOUR_API_KEY 这类占位符的位置记得换成自己的值。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 4 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

代码助手CLI

🚀 一个TypeScript CLI工具,通过MCP(模型上下文协议)连接到代码RAG系统,以提供智能代码探索和帮助。

✨ 特性

  • 🔍 语义代码搜索:使用自然语言查询查找相关代码
  • 💬 交互式聊天:在人工智能的帮助下询问有关代码库的问题
  • 📊 存储库统计信息:查看索引统计信息和存储库信息
  • 🔄 库管理:触发摄取和更新
  • 🎨 美丽的输出:格式化、彩色终端输出
  • ⚡ MCP协议:直接连接到Code RAG服务器,实现低延迟

🛠 安装

# Install dependencies
npm install

# Build the project
npm run build

# Test the CLI
node dist/index.js --help

🚀 快速开始

先决条件:确保您的Code RAG MCP服务器正在运行:

cd ../windsurf-project
python -m src.mcp_server

然后使用CLI:

🔍 搜索代码

# Basic search
node dist/index.js search "authentication middleware"

# Search with filters
node dist/index.js search "database connection" --repos backend-service --languages python

# Limit results
node dist/index.js search "error handling" --top-k 3

💬 与AI聊天

# Single question
node dist/index.js chat "How does user authentication work?"

# Interactive chat mode
node dist/index.js chat --interactive

# Chat with specific context
node dist/index.js chat "Explain the API structure" --context 10

📊 存储库统计信息

# View stats
node dist/index.js stats

🔄 库管理

# Ingest specific repository
node dist/index.js ingest my-backend-repo

# Force full re-indexing
node dist/index.js ingest my-backend-repo --force

配置

创建一个 .env 文件(复制自 .env.example):

# Path to the Code RAG MCP server
MCP_SERVER_PATH=../windsurf-project

# Default model for chat
DEFAULT_MODEL=claude-sonnet-4-5

# Default number of search results
DEFAULT_TOP_K=5

# Default context chunks for chat
DEFAULT_MAX_CONTEXT=5

命令

search

使用语义相似性搜索代码。

选项:

  • -r, --repos -按存储库名称筛选
  • -l, --languages -按编程语言筛选
  • -k, --top-k -要返回的结果数(默认值:5)
  • `-s, --server-path

` -MCP服务器的路径(默认:../wundsurf项目)

chat [message]

与AI讨论你的代码库。

选项:

  • -r, --repos -按存储库名称筛选
  • -l, --languages -按编程语言筛选
  • -c, --context -最大上下文块数(默认值:5)
  • -m, --model -要使用的模型(默认:claude-sonnet-4-5)
  • -i, --interactive -启动交互式聊天模式
  • `-s, --server-path

` -MCP服务器的路径

stats

显示存储库统计信息。

选项:

  • `-s, --server-path

` -MCP服务器的路径

ingest [repo-name]

触发存储库摄取。

选项:

  • -f, --force -强制完全重新索引
  • `-s, --server-path

` -MCP服务器的路径

例子

搜索示例

# Find authentication code
code-assistant search "user login authentication"

# Find database queries in specific repo
code-assistant search "SELECT FROM users" --repos user-service

# Find Python error handling
code-assistant search "try catch exception" --languages python

聊天示例

# Ask about architecture
code-assistant chat "What is the overall architecture of this project?"

# Get help with debugging
code-assistant chat "How do I debug authentication issues?"

# Interactive exploration
code-assistant chat -i

发展

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build
npm run build

# Watch mode
npm run watch

建筑

┌─────────────────┐    MCP     ┌─────────────────┐
│  CLI Assistant  │ ◄─────────► │  Code RAG       │
│  (TypeScript)   │  Protocol  │  MCP Server     │
└─────────────────┘            └─────────────────┘
         │                              │
         ▼                              ▼
┌─────────────────┐            ┌─────────────────┐
│  Commands       │            │  Vector Store   │
│  • search       │            │  • ChromaDB     │
│  • chat         │            │  • Embeddings   │
│  • stats        │            │  • Code Chunks  │
│  • ingest       │            └─────────────────┘
└─────────────────┘

需求

  • Node.js 18+
  • TypeScript 5+
  • 运行代码RAG MCP服务器
  • 访问代码RAG系统

故障排除

连接问题

# Check if MCP server is running
cd ../windsurf-project
python -m src.mcp_server

# Verify server path
code-assistant stats --server-path /path/to/windsurf-project

构建问题

# Clean and rebuild
rm -rf dist node_modules
npm install
npm run build

许可证

MIT许可证-有关详细信息,请参阅许可证文件。

工具与能力

工具数量

4

资源数量

0

提示词数量

0

能力标签

代码搜索TypeScript本地部署AI聊天代码库管理语义分析开发工具

支持客户端

ClaudeWindsurf

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 只提供 4 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已经适配 Claude、Windsurf,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 需要自备会话凭据,没有凭据没法直接试。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 暂时拿不到会话凭据的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Code Assistant CLI

MCP World · 本页

4stdio有1 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Code Assistant CLI 怎么安装?

公开资料给出的安装命令是 python -m src.mcp_server,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Code Assistant CLI 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Code Assistant CLI 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Code Assistant CLI 需要 API Key 吗?

公开资料标注的认证方式是会话凭据,也就是要先拿到凭据才能连上;凭据只填在自己本地的配置里,不要写进公开仓库。

Code Assistant CLI 支持哪些客户端?

公开资料标注支持 Claude、Windsurf;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP