INNER CODE UNIT · Python

_JsonRpcError

stevesolun/ctx · src/ctx/mcp_server/server.py:456

class _JsonRpcError(Exception):
    """Raised inside a handler to emit an RPC-level error response."""

    def __init__(self, code: int, message: str, data: Any = None) -> None:
        super().__init__(message)
        self.code = code
        self.message = message
        self.data = data


# ── Server I/O loop ───────────────────────────────────────────────────────


def run_server(
    stdin: BinaryIO | None = None,
    stdout: BinaryIO | None = None,
    *,
    allowed_tool_names: Iterable[str] | None = None,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…