Skip to main content
Glama
huawang1258

semantic-code-mcp

by huawang1258

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SCM_TOP_KNo向量召回候选数50
SCM_TOP_NNo最终返回结果数10
SCM_WATCHNo文件监控:`1` 启用(默认),`0` 禁用1
SCM_DB_DIRNo索引数据库存放目录~/.semantic-code-mcp
HTTPS_PROXYNoCohere API 代理(国内需配)
COHERE_API_KEYNo可选 rerank 后备后端;默认用 Voyage rerank-2.5,无需此 key
VOYAGE_API_KEYYesVoyage embedding + rerank(同一个 key 双用)
SCM_EMBED_DTYPENo向量精度:`float`(最高精度)/ `int8`(省 71% 存储)float
SCM_EMBED_MODELNoEmbedding 模型voyage-code-3
SCM_RERANK_MODELNo按后端默认:voyage → `rerank-2.5`,cohere → `rerank-v3.5`
SCM_EMBED_BACKENDNoEmbedding 后端:voyage(默认)或 localvoyage
SCM_MAX_WORKSPACESNo最大同时管理的工作区数(LRU 淘汰)8
SCM_RERANK_BACKENDNorerank 后端:`auto`(有 VOYAGE key 用 Voyage,其次 Cohere)/ `voyage` / `cohere` / `off`auto
SCM_EMBED_CHAR_BUDGETNo单批最大字符数(未绑卡时可调小)200000
SCM_EMBED_CONCURRENCYNo索引时 embedding 并发请求数(实测 3 路≈提速 3 倍)3
SCM_EMBED_MAX_RETRIESNoAPI 限流/错误时自动重试次数4
SCM_EMBED_MIN_INTERVALNo请求最小间隔秒数(未绑卡 3 RPM 限制时设 `21`)0

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
codebase_searchA

语义检索代码库,返回最相关的代码片段。

Args: information_request: 自然语言查询,例如"用户登录鉴权逻辑在哪里" directory_path: 要检索的代码库绝对路径 top_n: 可选,返回结果数(0 = 用默认值 SCM_TOP_N,默认 10) path_filter: 可选,文件路径过滤;含通配符按 glob 匹配(如 "*.java"、"/service/"), 否则按路径子串匹配(如 "controller") include_related: 可选,是否附带 call graph 关联块(调用者/被调用者),默认 True

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/huawang1258/semantic-code-mcp'

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