Whether a tool name passes the CODEGRAPH_MCP_TOOLS allowlist (if any).
(name: string)
| 948 | |
| 949 | /** Whether a tool name passes the CODEGRAPH_MCP_TOOLS allowlist (if any). */ |
| 950 | private isToolAllowed(name: string): boolean { |
| 951 | const allow = this.toolAllowlist(); |
| 952 | return !allow || allow.has(name.replace(/^codegraph_/, '')); |
| 953 | } |
| 954 | |
| 955 | /** |
| 956 | * Get tool definitions with dynamic descriptions based on project size. |
no test coverage detected