package
Version:
v0.1.8
Opens a new window with list of versions in this module.
Published: Jul 18, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type MCPError struct {
Code string `json:"code"`
Message string `json:"message"`
}
type Request struct {
JSONRPC string `json:"jsonrpc,omitempty"`
ID int `json:"id,omitempty"`
Method string `json:"method"`
Params map[string]any `json:"params,omitempty"`
}
type Resource struct {
URI string `json:"uri"`
Name string `json:"name"`
Description string `json:"description,omitempty"`
}
type Response struct {
JSONRPC string `json:"jsonrpc,omitempty"`
ID int `json:"id,omitempty"`
Tools []Tool `json:"tools,omitempty"`
Resources []Resource `json:"resources,omitempty"`
Result map[string]any `json:"result,omitempty"`
Error *MCPError `json:"error,omitempty"`
}
type Tool struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema map[string]any `json:"input_schema,omitempty"`
Readonly bool `json:"readonly,omitempty"`
BodyExposure string `json:"body_exposure,omitempty"`
CostClass string `json:"cost_class,omitempty"`
Scope string `json:"scope,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.