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

Interface ToolCaller

mcp/tool.go:28–30  ·  view source on GitHub ↗

ToolCaller is the narrowest interface which describes the behavior required from [mcp.Client], which will normally be passed into [Tool] for interaction with an MCP server. TODO: don't expose github.com/mark3labs/mcp-go outside this package.

Source from the content-addressed store, hash-verified

26// which will normally be passed into [Tool] for interaction with an MCP server.
27// TODO: don't expose github.com/mark3labs/mcp-go outside this package.
28type ToolCaller interface {
29 CallTool(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error)
30}
31
32type Tool struct {
33 Client ToolCaller

Callers 3

CallToolMethod · 0.65
CallMethod · 0.65
CallToolMethod · 0.65

Implementers 5

mockServerProxierintercept/messages/base_test.go
ServerProxyManagermcp/server_proxy_manager.go
StreamableHTTPServerProxymcp/proxy_streamable_http.go
MockServerProxiermcpmock/mcpmock.go

Calls

no outgoing calls

Tested by

no test coverage detected