Skip to content

JSONRPCRequest

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  20357515["mcp.JSONRPCRequest"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 20357515
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

A JSON-RPC request that expects a response.

Source code in src/clawd_code_sdk/models/mcp.py
class JSONRPCRequest(TypedDict):
    """A JSON-RPC request that expects a response."""

    jsonrpc: str
    id: RequestId
    method: str
    params: NotRequired[dict[str, Any]]

:fa-brands-github: Show source on GitHub