INNER CODE UNIT · Python

__init__

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

    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,
    allowed_entity_types: Iterable[str] | None = None,
) -> int:
    """Read JSON-RPC frames from ``stdin`` until EOF, write to ``stdout``.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…