Documentation
¶
Index ¶
Constants ¶
View Source
const (
ProtocolVersion = "2026-07-28"
)
infer speaks one MCP revision. 2026-07-28 is stateless: there is no initialize handshake and no session, and every request carries its version in params._meta, mirrored into headers. Servers on older revisions are not supported; there is no fallback.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client speaks MCP 2026-07-28 to one server.
func NewClient ¶
NewClient returns a client for the server at url. Callers bound each call with the context's deadline.
func (*Client) CallTool ¶
func (c *Client) CallTool(ctx context.Context, name string, args map[string]any) (mcpdomain.CallResult, error)
CallTool runs a tool and flattens its content blocks to text. arguments is always sent, as {} when there are none, since some servers fail to decode a call without it.
Click to show internal directories.
Click to hide internal directories.