CC

codebendkit/codeseek

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

761 stars 44 forks 质量 75 趋势 25MIT

codebendkit/codeseek 是从 https://github.com/codebendkit/codeseek. 导入的 MCP 服务器候选

概览

codebendkit/codeseek 是从 https://github.com/codebendkit/codeseek. 导入的 MCP 服务器候选

概述(AI 翻译)

Claude Code 的代码智能 CLI 工具。 基于 AST 的呼叫图分析 + 语义搜索——直接从您的终端操作。

快速启动

自然语言代码搜索示例

函数调用图示例

安装

NPM

npm包附带轻量化的JS包装,处理以下任务:

台阶 描述
首次运行向导 用于嵌入API令牌、模型和基础URL的交互式CLI提示
二进制下载 自动从GitHub发布中拉取适合你平台的正确Rust二进制文件
直通 所有命令(init、search、callers等)都转发到本地二进制

支持的平台:

平台 建筑
macOS arm64(苹果硅),x64(英特尔)
Linux x64

自制

来自源头

build.sh 编译 TypeScript 封装程序(dist/)和 Rust 二进制文件,然后安装到 ~/.codeseek/bin/。

命令

指挥 描述
codeseek 首次设置向导(交互式配置嵌入模型)
codeseek init 构建/更新代码索引(首次运行时完整,之后MD5增量)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

CodeSeek

Code intelligence CLI tool for Claude Code. AST-based call graph analysis + semantic search — right from your terminal.

Quick Start

# Install via npm (handles setup wizard + binary download automatically)
npm install -g codeseek

# First run — interactive setup wizard configures your embedding model
codeseek

# Index your project
codeseek init

# Search code by symbol name
codeseek search main --limit 10

# Query call graph
codeseek callers main
codeseek callees process_data

# Register with Claude Code / Codex as MCP tools
codeseek install

# Check status
codeseek status

# Auto-index on git commits
codeseek install-hooks

Natural Language Code Search example

╰─$ codeseek search 'how the code embedding work'
1. get_embedding (0.7973)
   /home/do/ssd/iohub/dev/codeseek/rust-core/src/services/embedding_service.rs:0
2. EmbeddingService (0.2855)
   /home/do/ssd/iohub/dev/codeseek/rust-core/src/services/embedding_service.rs:0
3. EmbeddingData (0.1449)
   /home/do/ssd/iohub/dev/codeseek/rust-core/src/services/embedding_service.rs:0
4. EmbeddingResponse (0.1304)
   /home/do/ssd/iohub/dev/codeseek/rust-core/src/services/embedding_service.rs:0
5. default_model (0.0450)
   /home/do/ssd/iohub/dev/codeseek/rust-core/src/config.rs:0

Function Call Graph example

╰─$ codeseek callgraph apply_rerank
Call graph for 'apply_rerank' (depth=1):

== Callers (upstream, depth=1) ==
  search (/home/do/ssd/iohub/dev/codeseek/rust-core/src/services/hybrid_search.rs:210)

== Callees (downstream, depth=1) ==
  rerank (/home/do/ssd/iohub/dev/codeseek/rust-core/src/services/reranker_service.rs:331)
  config (/home/do/ssd/iohub/dev/codeseek/rust-core/src/services/hybrid_search.rs:325)

Install

npm

npm install -g codeseek

The npm package ships a lightweight JS wrapper that handles:

Step Description
First-run wizard Interactive CLI prompts for embedding API token, model, and base URL
Binary download Automatically pulls the correct Rust binary for your platform from GitHub Releases
Pass-through All commands (init, search, callers, etc.) are forwarded to the native binary

Supported platforms:

Platform Architecture
macOS arm64 (Apple Silicon), x64 (Intel)
Linux x64

Homebrew

brew tap CodeBendKit/codeseek [email protected]:CodeBendKit/codeseek.git
brew install codeseek

From source

# install protoc
# macos: brew install protobuf
# ubuntu: sudo apt install protoc

git clone https://github.com/CodeBendKit/codeseek.git
cd codeseek
./build.sh --release

build.sh compiles both the TypeScript wrapper (dist/) and the Rust binary, then installs to ~/.codeseek/bin/.

Commands

Command Description
codeseek First-time setup wizard (configures embedding model interactively)
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →