[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108220":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":15,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":18,"hasPages":18,"topics":20,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":12,"starSnapshotCount":12,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},108220,"apidrifter","apidrifter\u002Fapidrifter","Breaking-change detection and monitoring for the APIs you depend on. One engine for OpenAPI documents and MCP servers.","https:\u002F\u002Fapidrifter.com",null,"TypeScript",24,0,78,3,9,40.9,"Apache License 2.0",false,"main",[21,22,23,24,25],"open-source","openapi","openapi-spec","openapi-specification","openapi3","2026-11-23 19:18:29","2026-11-20 03:37:15","# API Drifter\n\n[![npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fapidrifter)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fapidrifter)\n[![CI](https:\u002F\u002Fgithub.com\u002Fapidrifter\u002Fapidrifter\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fapidrifter\u002Fapidrifter\u002Factions\u002Fworkflows\u002Fci.yml)\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-Apache--2.0-blue)](LICENSE)\n\nFinds where your API drifted from its spec. An open-source CLI and MCP server that runs an OpenAPI document against a live implementation and reports every mismatch with two fixes: one if the spec is the source of truth, one if the implementation is. The same engine diffs spec versions and MCP servers.\n\nWebsite and research: https:\u002F\u002Fapidrifter.com\n\n## Try it in a minute\n\n```sh\n# Verify a running API against its spec. Values come from the spec's examples.\nnpx apidrifter run openapi.yaml --base-url http:\u002F\u002Flocalhost:3000\n\n# See what the engine wants to send, fill the gaps, run again\nnpx apidrifter plan openapi.yaml --out plan.json\nnpx apidrifter run openapi.yaml --base-url http:\u002F\u002Flocalhost:3000 --plan filled.json\n\n# Fail CI on breaking changes between two spec versions\nnpx apidrifter breaking old.yaml new.yaml\n\n# Snapshot and diff an MCP server, including tool description changes\nnpx apidrifter mcp snapshot https:\u002F\u002Fmcp.example.com\u002Fmcp --out before.json\nnpx apidrifter mcp diff before.json https:\u002F\u002Fmcp.example.com\u002Fmcp\n```\n\nExit code 1 means findings at or above the threshold (`--fail-on breaking` by default). Output is JSON when piped, text in a terminal, Markdown with `--format markdown`.\n\n## Use it from an agent\n\n`apidrifter serve` exposes the same capabilities as an MCP server over stdio: `plan_requests`, `run_requests`, `verify_observations`, `diff_specs`, `breaking_changes`, `changelog`, `mcp_snapshot`, `mcp_diff`, `list_rules`.\n\nClaude Code:\n\n```sh\nclaude mcp add apidrifter -- npx -y apidrifter serve\n```\n\nCursor, Windsurf, or any client that takes a JSON config:\n\n```json\n{\n  \"mcpServers\": {\n    \"apidrifter\": { \"command\": \"npx\", \"args\": [\"-y\", \"apidrifter\", \"serve\"] }\n  }\n}\n```\n\nThen ask the agent to plan requests for a spec, fill the values it cannot infer, run them against your dev server, and fix whichever side is wrong.\n\n## Use it from your agent\n\nThe Claude Code plugin adds the MCP server and a skill that runs the check whenever the agent adds or changes an endpoint or edits an OpenAPI document: `\u002Fplugin marketplace add apidrifter\u002Fapidrifter`, then `\u002Fplugin install apidrifter@apidrifter`. For Cursor rules, a paragraph to paste into `CLAUDE.md` or `AGENTS.md`, Codex and other MCP clients, and what each MCP tool does, see [docs\u002Fagents.md](docs\u002Fagents.md).\n\nMarkdown reports end with a `Found with apidrifter` line so a report pasted into a pull request says how it was produced; `--no-footer` or `\"footer\": false` in the config file turns it off.\n\n## What it checks\n\n- **Verification**: undocumented statuses and media types, missing required fields, wrong types, forbidden or undocumented fields, disallowed nulls, enum and constraint violations, requests the spec allows but the server rejects, and requests the spec forbids but the server accepts. 26 finding rules.\n- **Spec diff**: 357 change rules, polarity-aware. A property becoming required is breaking in a request and harmless in a response; the engine knows which side it is looking at.\n- **MCP**: tools, resources, prompts and server instructions, with description changes tracked because descriptions are what agents act on, and a heuristic flag for descriptions that look aimed at the agent rather than the user.\n\nFull lists: [rules reference](https:\u002F\u002Fapidrifter.com\u002Fdocs\u002Frules\u002F).\n\n## Research\n\nWe checked 13 public APIs against their own OpenAPI documents, read-only. 9 of 13 returned successful responses a generated client would break on; 171 distinct schema locations. Every request and finding is reproducible: [the write-up](https:\u002F\u002Fapidrifter.com\u002Fresearch\u002Fpublic-api-spec-drift-2026-11\u002F), [the data](tools\u002Fsurvey\u002Fresults), [the runner](tools\u002Fsurvey).\n\n## Packages\n\n| Package                             | What                                                           |\n| ----------------------------------- | -------------------------------------------------------------- |\n| [`apidrifter`](packages\u002Fcli)        | The CLI and MCP server. `npx apidrifter`.                      |\n| [`@apidrifter\u002Fcore`](packages\u002Fcore) | The engine: pure, deterministic, no I\u002FO. Use it as a library.  |\n| [`action`](packages\u002Faction)         | A composite GitHub Action wrapping `breaking` and `changelog`. |\n\n## Design and contributing\n\nHow it is built and why, including the security model: [docs\u002FDESIGN.md](docs\u002FDESIGN.md). Contributions: [CONTRIBUTING.md](CONTRIBUTING.md). Security reports: [SECURITY.md](SECURITY.md).\n\n## License\n\nApache-2.0. See [LICENSE](LICENSE). The name and logo are trademarks; see [TRADEMARK.md](TRADEMARK.md).\n","API Drifter 是一个开源的 API 契约一致性检测与演进监控工具，用于识别运行时 API 实现与 OpenAPI 规范之间的偏差，以及不同规范版本间的破坏性变更。它支持双模式校验：既可将 OpenAPI 文档作为权威源反向验证服务行为，也可将线上服务作为事实源校验文档准确性；同时原生支持 MCP（Model Context Protocol）服务器的快照、比对与变更分析。核心能力包括自动化请求规划、结构化差异报告（JSON\u002FMarkdown\u002F文本）、CI 可集成的退出码语义，以及通过 MCP 协议供 AI 代理调用的标准化接口。适用于微服务契约治理、API 持续交付流水线、OpenAPI 文档生命周期管理及 MCP 工具链集成等场景。",2,"2026-11-24 04:33:54","CREATED_QUERY"]