reaatech/structured-output-repair
These packages provide a pipeline to automatically fix malformed LLM outputs, such as invalid JSON, markdown fences, or type mismatches, to ensure they conform to your defined schemas. You would adopt them to prevent agent system crashes caused by unreliable model responses. The system uses a graduated, multi-strategy repair engine that can be integrated directly into your TypeScript code via `@reaatech/structured-repair-core` or exposed as an MCP server for use in tools like Claude Desktop.
Packages
2 packages
@reaatech/structured-repair-core
Fixes malformed LLM JSON output by applying a configurable pipeline of repair strategies to ensure compatibility with a provided Zod schema. It exports utility functions that return validated, type-inferred data or detailed metadata about the repair process.
- status
- awaiting publish
@reaatech/structured-repair-mcp
Exposes tools for repairing malformed LLM outputs against JSON schemas via the Model Context Protocol. It provides an MCP server that can be run as a standalone process or integrated programmatically to analyze and fix JSON syntax, type mismatches, and formatting errors.
- status
- awaiting publish
Comments
Sign in with GitHub to comment and vote.
Loading comments…
