Skip to main content
Glama
request.go531 B
package jsonrpc import "encoding/json" // Request represents a JSON-RPC request object type Request struct { Version string `json:"jsonrpc"` Method string `json:"method"` Params json.RawMessage `json:"params,omitempty"` ID ID `json:"id"` } // NewRequest creates a new Request object func NewRequest(method string, params json.RawMessage, id interface{}) Request { reqID, _ := NewID(id) return Request{ Version: Version, Method: method, Params: params, ID: reqID, } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mattt/emcee'

If you have feedback or need assistance with the MCP directory API, please join our Discord server