Package types defines the core data structures used throughout the echo-mcp library.
This includes MCP protocol types, tool definitions, schema representations,
and utility functions for JSON schema generation from Go types.
type MCPMessage struct {
Params any `json:"params,omitempty"`
Result any `json:"result,omitempty"`
Error *MCPError `json:"error,omitempty"`
Jsonrpc string `json:"jsonrpc"`
Method string `json:"method,omitempty"`
ID json.RawMessage `json:"id,omitempty"`
}