fontlab_remopy.mcp.compat
compat
The few MCP SDK differences between v1 (camelCase, RootModel) and v2 (snake_case).
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
field |
function | (model: Any, snake: str, camel: str) -> Any |
Read a protocol field: v2 models use snake_case, v1 models camelCase. |
is_error |
function | (result: Any) -> bool |
|
next_cursor |
function | (page: Any) -> str | None |
|
refuse_unknown |
function | (name: str, schema: Any, arguments: dict[str, Any]) -> None |
Raise <code>ValueError</code> naming the unknown and the allowed arguments. |
tool_schema |
function | (tool: Any) -> Any |
A Tool's input schema (v2 <code>input_schema</code><code>, v1 </code><code>inputSchema</code>). |
unknown_arguments |
function | (schema: Any, arguments: dict[str, Any]) -> list[str] |
Argument names a strict schema does not declare; [] when anything goes. |
unwrap |
function | (message: Any) -> Any |
The JSON-RPC message inside a SessionMessage (v1 wraps it in a RootModel). |
wire |
function | (model: Any) -> dict[str, Any] |
Wire-format (camelCase) dump on both SDK lines. |