fix: route Exa and CodeGraph through shared mcp adapter

This commit is contained in:
云服务部-叶林立
2026-08-19 12:10:24 +08:00
parent a0a4ae44d4
commit 6293ef1c63
9 changed files with 104 additions and 65 deletions
-23
View File
@@ -1,23 +0,0 @@
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,
},
},
},
});