PixelWeaver v0.5.0 /server.src.pixelweaver.mcp_manifest_tools
On this page

Manifest MCP tools to create and edit the constraint manifest and its palette classes, and to transform class ramps that rewrite painted role planes.

#server.src.pixelweaver.mcp_manifest_tools

#server.src.pixelweaver.mcp_manifest_tools

Manifest MCP tools -- create and edit the constraint manifest and its palette classes, and transform class ramps (rewriting painted role planes).

All mutating handlers follow the frame-tools sequence: validate -> mutate server state -> dispatch the frontend command -> broadcast full state. Failures are structured dicts with an error_code.

The frontend command vocabulary stays minimal: granular class edits are an MCP convenience that dispatch the frontend set_manifest with the FULL new manifest; the document-transform arm dispatches apply_manifest_transform.

#_role_layer_refs

python
def _role_layer_refs(project: Any) -> list[tuple[Any, dict[str, Any], str]]

Every (canvas, layer_dict, class_id) with kind == 'role'.

#_referential_guard

python
def _referential_guard(project: Any, next_manifest: dict[str, Any] | None) -> dict[str, Any] | None

Mirror of the frontend set_manifest guard (ยง1.2), server-side.

#register_manifest_tools

python
def register_manifest_tools(registry: MCPCommandRegistry) -> None

Register manifest read/edit MCP tools.

Search