MCPcopy Create free account
hub / github.com/coder/aibridge / hasInjectableTools

Method hasInjectableTools

intercept/messages/base.go:434–436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432}
433
434func (i *interceptionBase) hasInjectableTools() bool {
435 return i.mcpProxy != nil && len(i.mcpProxy.ListTools()) > 0
436}
437
438// accumulateUsage accumulates usage statistics from source into dest.
439// It handles both [anthropic.Usage] and [anthropic.MessageDeltaUsage] types through [any].

Callers 1

injectToolsMethod · 0.95

Calls 1

ListToolsMethod · 0.65

Tested by

no test coverage detected