mcp

v1.8.0
@type-crafter/mcp Checked 1 day ago Published 7 days ago

MCP 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.

ParameterTypeDescription
section *stringThe section to retrieve detailed rules for
sessionIdstringSession 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.

ParameterTypeDescription
specFilePath *stringPath to the YAML specification file to validate
sessionIdstringSession 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.

ParameterTypeDescription
specFilePath *stringPath 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.