Skip to main content
Glama
YamadaYoukai

Code Search MCP

by YamadaYoukai

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ZOEKT_URLNoZoekt Web Server URLhttp://localhost:6070

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_codeA

在 Zoekt 已索引的仓库中定位源码文本及其文件位置。

当用户询问符号定义或引用、错误信息来源、配置项用法、接口实现或精确 代码模式时使用。结果包含仓库、仓库内相对路径、从 1 开始的行号和命中 行片段;需要理解周围实现时,再用该结果调用 get_file_context。

query 默认按 Zoekt 查询语法解释。搜索包含空格、连字符或查询运算符的 完整错误信息、服务名或包名时设置 literal=true。已知仓库、语言或路径 范围时应使用对应过滤器,以减少无关结果。该工具只做文本/正则检索, 不执行语义分析,也不保证命中就是定义。

get_file_contextA

读取一次代码搜索命中位置周围带行号的源码上下文。

应在 search_code 返回候选命中后调用,并原样传入该命中的 repo、path 和 line。适合确认命中属于定义、调用还是配置,以及在回答用户前理解附近 的控制流。返回内容以 > 标出目标行,并包含实际起止行、文件总行数 和是否截断。不要用它搜索未知文件,也不要传入绝对路径或 .. 路径。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YamadaYoukai/CodeNavigator'

If you have feedback or need assistance with the MCP directory API, please join our Discord server