mcp
v1.8.0MCP server for Type Crafter - generate types from YAML specifications
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get-writing-guide
Get the Type Crafter YAML specification writing guide. CALL THIS FIRST before writing any YAML specs. Returns a sessionId that should be passed to other tools. The guide includes common mistakes to avoid, quick reference, and links to detailed sections.
get-rules-section
Get detailed rules for a specific topic. Available sections: structure, types, nullable, references, composition, patterns. Pass the sessionId from get-writing-guide for best experience.
| Parameter | Type | Description |
|---|---|---|
section * | string | The section to retrieve detailed rules for |
sessionId | string | Session ID from get-writing-guide. Recommended but not required. |
validate-spec
Validate a YAML specification file for correctness. Checks structure AND common mistakes (nullable, optional, paths, etc.). If validation fails with common mistakes, you likely need to read get-writing-guide first. Pass sessionId from get-writing-guide for best experience.
| Parameter | Type | Description |
|---|---|---|
specFilePath * | string | Path to the YAML specification file to validate |
sessionId | string | Session ID from get-writing-guide. Recommended but not required. |
get-spec-info
Get information about a YAML specification file including version, title, and all types defined in the spec.
| Parameter | Type | Description |
|---|---|---|
specFilePath * | string | Path to the YAML specification file |
list-languages
List all supported target languages for type generation with the type-crafter CLI.
get-version
Returns the current version of the Type Crafter MCP server.