feat: add context-mode CodeGraph MCP integration

This commit is contained in:
云服务部-叶林立
2026-08-18 15:33:11 +08:00
parent 0637139a16
commit 3984e37aa3
5 changed files with 2385 additions and 25 deletions
+23
View File
@@ -0,0 +1,23 @@
import { createMcpAdapter } from "pi-mcp-adapter";
/** Connect Pi to the CodeGraph MCP server provided by the host machine. */
export default createMcpAdapter({
config: {
settings: {
disableProxyTool: true,
scriptMode: false,
},
mcpServers: {
codegraph: {
command: "codegraph",
args: ["serve", "--mcp"],
lifecycle: "keep-alive",
directTools: ["codegraph_explore"],
includeTools: ["codegraph_explore"],
toolPrefix: "none",
approveTools: false,
exposeResources: false,
},
},
},
});