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

Method GetTool

aibridge/mcp/proxy_streamable_http.go:110–120  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

108}
109
110func (p *StreamableHTTPServerProxy) GetTool(name string) *Tool {
111 if p.tools == nil {
112 return nil
113 }
114
115 t, ok := p.tools[name]
116 if !ok {
117 return nil
118 }
119 return t
120}
121
122func (p *StreamableHTTPServerProxy) CallTool(ctx context.Context, name string, input any) (*mcp.CallToolResult, error) {
123 tool := p.GetTool(name)

Callers 1

CallToolMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected