MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getStaticTools

Function getStaticTools

src/mcp/tools.ts:2031–2038  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2029 * note in a description only adds once `cg` is loaded; the schemas are static).
2030 */
2031export function getStaticTools(): ToolDefinition[] {
2032 const raw = process.env.CODEGRAPH_MCP_TOOLS;
2033 if (!raw || !raw.trim()) {
2034 return tools.filter(t => DEFAULT_MCP_TOOLS.has(t.name.replace(/^codegraph_/, '')));
2035 }
2036 const allow = new Set(raw.split(',').map(s => s.trim().replace(/^codegraph_/, '')).filter(Boolean));
2037 return allow.size ? tools.filter(t => allow.has(t.name.replace(/^codegraph_/, ''))) : tools;
2038}
2039
2040/**
2041 * The MCP tools served by DEFAULT (short names). Pared to ONLY `codegraph_explore`

Callers 4

runLocalHandshakeProxyFunction · 0.90
fakeEngineFunction · 0.90

Calls 2

hasMethod · 0.80
mapMethod · 0.80

Tested by 1

fakeEngineFunction · 0.72