validate
对 AI 生成产物进行确定性验证:JSON Schema、OpenAPI 响应、SQL。带有修复提示的类型化判定。提供计量 API + MCP。
Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL. Typed verdicts with fix hints. Metered API + MCP.
怎么安装
npx -y @machinegrade/validate 简介
machinegrade validate Validate AI-generated artifacts against a contract before you act on them: **json_schema** — validate artifact against a JSON Schema (all errors collected). **openapi_response** — validate a response body against the response schema for a given path + method + status in an OpenAPI spec. **sql** — check a SQL string for syntax errors in a given dialect. Every check returns a **verdict**, not an error: {valid, errors, latency_ms}, HTTP 200 whether the artifact is valid or not. Only genuinely wrong requests (bad key, unsupported type, malformed body, over your limit) get typ…
推荐参考
信息
- 协议
- MIT
- 语言
- TypeScript
- GitHub 星标
- 1
- 月下载
- 156
- 最近更新
- 2026-07-26
- 创建于
- 2026-07-12
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:punkpeye/awesome-mcp-servers
- 主题标签
- ai-agents, json-schema, mcp, mcp-server, openapi, sql, validation