Whether a tool name passes the CODEGRAPH_MCP_TOOLS allowlist (if any).
(name: string)
| 907 | |
| 908 | /** Whether a tool name passes the CODEGRAPH_MCP_TOOLS allowlist (if any). */ |
| 909 | private isToolAllowed(name: string): boolean { |
| 910 | const allow = this.toolAllowlist(); |
| 911 | return !allow || allow.has(name.replace(/^codegraph_/, '')); |
| 912 | } |
| 913 | |
| 914 | /** |
| 915 | * Get tool definitions with dynamic descriptions based on project size. |
no test coverage detected