MCPcopy Index your code
hub / github.com/coder/coder / hasInjectableTools

Method hasInjectableTools

aibridge/intercept/messages/base.go:519–521  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

517}
518
519func (i *interceptionBase) hasInjectableTools() bool {
520 return i.mcpProxy != nil && len(i.mcpProxy.ListTools()) > 0
521}
522
523// accumulateUsage accumulates usage statistics from source into dest.
524// 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