MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / hasTool

Method hasTool

src/mcp/manager.ts:247–249  ·  view source on GitHub ↗

True if `toolName` is an MCP tool managed by this manager.

(toolName: string)

Source from the content-addressed store, hash-verified

245
246 /** True if `toolName` is an MCP tool managed by this manager. */
247 hasTool(toolName: string): boolean {
248 return /^mcp__[^_]+__/.test(toolName)
249 }
250
251 /** Current snapshot for the TUI / status display. */
252 snapshot(): McpSnapshot {

Callers 1

executeToolFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected