MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / JSONRPCNotification

Struct JSONRPCNotification

mcp/protocol.go:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40type JSONRPCNotification struct {
41 JSONRPC string `json:"jsonrpc"`
42 Method string `json:"method"`
43 Params map[string]any `json:"params,omitempty"`
44}
45
46func SerializeMessage(msg any) string {
47 pairs := []jsonPair{{Key: "jsonrpc", Value: "2.0"}}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected