Skip to content

fontlab_echopy.tooling.mcp · declarations 001

Back to fontlab_echopy.tooling.mcp

BLOCKED module-attribute

BLOCKED

HELPER_PATCHES module-attribute

HELPER_PATCHES: dict[str, dict[str, str]]

INTEGER_NAMES module-attribute

INTEGER_NAMES

JSON_TYPES module-attribute

JSON_TYPES

MODULE_DOC module-attribute

MODULE_DOC

REFERENCE_SOURCE module-attribute

REFERENCE_SOURCE

build

build(spec: dict[str, Any], captured: set[str]) -> tuple[dict[str, Any], dict[str, Any]]

Return (patches, report) for tools defined in both sources.

captured_functions

captured_functions(generated: Path) -> set[str]

example

example(tool: dict[str, Any]) -> str

First specification example rendered as a fontpr call.

module_doc

module_doc(spec: dict[str, Any]) -> str

Module docstring: fixed calling convention plus targeting and rules.

param_type

param_type(name: str, schema: dict[str, Any]) -> str

Identifiers, counts, indices and page sizes (font_id, limit, min_contour_count) are integers even where the schema says number.

parameter_lines

parameter_lines(tool: dict[str, Any]) -> list[str]

schema_type

schema_type(schema: dict[str, Any]) -> str

Python annotation for a JSON-schema property.

signature

signature(tool: dict[str, Any]) -> str

Keyword-only parameter list; required parameters come first.

tool_doc

tool_doc(tool: dict[str, Any]) -> str

write

write(mcp_json: Path, generated: Path, output: Path) -> dict[str, Any]