Whether a tool name passes the CODEGRAPH_MCP_TOOLS allowlist (if any).
(name: string)
| 937 | |
| 938 | /** Whether a tool name passes the CODEGRAPH_MCP_TOOLS allowlist (if any). */ |
| 939 | private isToolAllowed(name: string): boolean { |
| 940 | const allow = this.toolAllowlist(); |
| 941 | return !allow || allow.has(name.replace(/^codegraph_/, '')); |
| 942 | } |
| 943 | |
| 944 | /** |
| 945 | * Get tool definitions with dynamic descriptions based on project size. |
no test coverage detected