Token导航 LogoToken导航TokenDH.com
MCP Zoekt logo
开发工具未说明官方级别未说明来源级核验

MCP Zoekt

MCP Server

一个基于Zoekt的代码搜索服务,使AI编码助手能够跨索引仓库搜索代码。

工具数

7

提示词数

0

GitHub Stars

3

资源数

0
代码搜索代码索引TypeScriptClaude开发工具Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

jahales

提供方

jahales

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

mcp 搜索

![License](https://opensource.org/licenses/Apache-2.0) ![Integration Tests](https://github.com/jahales/mcp-zoekt/actions/workflows/integration-tests.yml)

MCP(模型上下文协议)服务器,使AI编码助手能够使用 正在搜索.

概述

此存储库提供:

  • zoekt-mcp/ -将AI助手(GitHub Copilot、Claude等)连接到Zoekt的TypeScript MCP服务器
  • docker/ -Docker Compose用于自托管Zoekt的基础设施,具有工作树索引和GitHub组织镜像(包括多组织)
  • zoekt/ -Git子模块引用 sourcegraph/搜索

快速开始

1. 开始寻找基础设施

cd docker

# Create a .env from the template and choose a mode via COMPOSE_PROFILES
cp .env.example .env

# For GitHub mode only: create config directory and add your GitHub token
# mkdir -p config
# echo "ghp_your_token_here" > config/github-token.txt

# Start services
docker compose up -d

2.配置您的AI助手

VS代码与GitHub Copilot -添加到 .vscode/settings.json:

{
  "github.copilot.chat.experimental.mcpServers": {
    "zoekt": {
      "command": "npx",
      "args": ["mcp-zoekt", "--url", "http://localhost:6070"]
    }
  }
}

克劳德桌面 -添加到您的配置文件中:

{
  "mcpServers": {
    "zoekt": {
      "command": "npx",
      "args": ["mcp-zoekt", "--url", "http://localhost:6070"]
    }
  }
}

3.搜索您的代码

让你的AI助手在你的索引存储库中搜索:

“在我的代码库中搜索身份验证中间件” “查找UserService类的所有用法” “演示如何实现错误处理”

MCP工具

工具说明
search使用Zoekt查询语法(正则表达式、文件过滤器、语言过滤器)的搜索代码
search_symbols使用可选的类型过滤查找符号定义(函数、类、方法)
search_files按文件名模式搜索文件
find_references在存储库中查找符号的所有定义和用法
list_repos列出所有具有可选筛选功能的索引存储库
file_content从索引存储库中检索完整文件内容
get_health检查MCP服务器和Zoekt后端的运行状况

文档

  • MCP服务器文档 -详细的MCP服务器使用和配置
  • -基础设施设置和配置选项

发展

# Install dependencies
cd zoekt-mcp
npm install

# Run tests
npm test              # Unit tests
npm run test:all      # All tests (requires Docker infrastructure)

# Build
npm run build

许可证

Apache许可证2.0-请参阅 许可证 了解详情。

此项目使用 正在搜索 它也由Sourcegraph在Apache 2.0下授权。

目录标签

目录标签

代码搜索代码索引TypeScriptClaude开发工具本地部署AI辅助编程

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

7

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP