Skip to content

server

server

MCP server definition for FXHoudini-MCP.

The SDK class is imported from _sdk rather than from mcp directly: mcp 2.0 renamed it and moved it, and that shim is the single place that knows.

Functions:

Name Description
compact_json

A tool result as the model reads it: no indentation, trimmed floats.

current_bridge

The process's HoudiniBridge, for callers with no request context.

lifespan

Manage the Houdini bridge connection lifecycle.

Classes

Functions:

compact_json

compact_json(result: dict) -> str

A tool result as the model reads it: no indentation, trimmed floats.

The SDK serialises a dict with indent=2, which on a verify_network or a node card is about a third whitespace, paid on every call.

current_bridge

current_bridge() -> HoudiniBridge

The process's HoudiniBridge, for callers with no request context.

lifespan async

lifespan(server: Server)

Manage the Houdini bridge connection lifecycle.