CodeGraph builds a semantic graph of your codebase — functions, classes, imports, call chains — and exposes it through 42 MCP tools, 38 languages, a VS Code extension, and a persistent memory layer. AI agents get structured code understanding instead of grepping through files.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add codegraph-codegraph-ai -- npx -y @astudioplus/codegraph-mcp~/.codex/config.toml
[mcp_servers.codegraph-codegraph-ai]
command = "npx"
args = ["-y", "@astudioplus/codegraph-mcp"]
# codex mcp add codegraph-codegraph-ai -- npx -y @astudioplus/codegraph-mcp~/.cursor/mcp.json
{
"mcpServers": {
"codegraph-codegraph-ai": {
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"codegraph-codegraph-ai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"codegraph-codegraph-ai": {
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"codegraph-codegraph-ai": {
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"codegraph-codegraph-ai": {
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}