mendapi
com.mendapi由 mendapi.com 發布v0.5.6更新於 Oct 24, 2026
Detect API breaking changes, scan your codebase for impact, and draft the fix. Runs locally.
概覽
本機 MCP 伺服器,掃描程式碼庫中上游 API 的破壞性變更並起草遷移差異。
- 可以做什麼
- 掃描程式碼庫中上游 API 的破壞性變更,提供檔案、行號、符號與信心分數,並列出專案依賴的 API 供應商與 SDK。依掃描報告起草可審閱的遷移差異,並複核既有發現。讀取本機同步的上游 API 變更資料,涵蓋多家主要供應商。
- 適用情境
- 適合依賴經常變動的第三方 SDK 或 API 的專案,希望助理找出破壞性變更並起草遷移差異,同時不讓原始碼離開本機。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node.js 22.13 或更新版本。需先用 sync 指令取得變更資料,這是唯一連網的步驟;之後掃描、修復與 MCP 工具都離線使用本機 SQLite 資料庫。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 mendapi,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mendapi
Dependabot, but for every API you depend on. We watch your upstream API providers for breaking changes, scan your codebase for impact, and open the fix PR before your integration breaks.
30 seconds to your first result
sync pulls the upstream API change feed into a local SQLite database. It is the only command that touches the network, and you run it once (then whenever you want fresher data).
scan reports every upstream breaking change that actually hits your code — file, line, and symbol — scored for confidence. fix drafts the migration as a reviewable diff, without touching a single file until you pass --apply. Neither reads or writes anything outside your machine.
Using an AI coding agent? One line plugs mendapi into Claude Code as an MCP server (Cursor and every other MCP client work too — details below):
Requires Node.js 22.13 or newer. Everything runs locally: the scanner, fixer, and review CLIs contain no network code at all.
Security model (read this first)
This tool is designed for teams that cannot let source code leave their machines. The security model is the product, not a FAQ entry:
- Your code never leaves your machine. The scanner runs locally or in your CI. Nothing is uploaded by default — there is no network code in the scanner, fixer, or review CLIs at all (mechanically enforced by our test suite, which fails the build if any network primitive appears in those files).
- Metadata-only reporting, opt-in only. If you ever choose to report results to a hosted dashboard, the payload builder (
payload.js) is whitelist-constructed: provider names, SDK versions, file basenames, line numbers, and symbol names only. Code snippets are structurally impossible to include — the field does not exist in the payload schema. Reporting requires an explicit--report-toflag; it is never on by default. - Secrets are redacted in depth. Fifteen secret patterns (OpenAI, Stripe, AWS, GitHub, Slack, JWT, bearer tokens, generic key assignments, and more) are scrubbed from every field of any outbound payload, and a pre-transmission assertion throws if a forbidden key or unredacted secret survives.
- Auditable by design. The CLI is open source so your security team can verify, line by line, exactly what is read and what (if anything) is sent.
- Minimal GitHub permissions. Fix PRs use a GitHub App scoped to
contents:read+pull_requests:writeon repos you choose. Never admin. - Self-hosting available. Enterprise plans run the entire stack — change feed included — inside your firewall.
What it does
Three components form a closed loop:
Quickstart
Requires Node.js 22.13 or newer (uses built-in node:sqlite). Zero npm dependencies.
Running from a checkout? node app/cli.js <command> works identically.
What a fix looks like
This is real output — the exact diff our test suite pins, byte for byte, for the openai-node v3 → v4 migration pack. Note the two lines that mention the legacy calls inside a string and a template literal: the codemod leaves both untouched, because rules anchor on call positions in the syntax tree, not on text patterns.
Every migration pack ships with a pinned diff like this one; the build fails if a pack's output drifts from its gold evidence. Six more, embedded with the same byte-match guarantee, are on the provider guides: OpenAI, AWS, Cloudflare, PayPal, Vercel, Stripe, Shopify.
Use it from your AI coding agent (MCP)
mendapi mcp starts a Model Context Protocol server on stdio — offline-first, zero network: every tool call runs the local CLIs against the local SQLite database only, and the server ships with zero npm dependencies. It speaks the current MCP revision (2026-07-28, per-request _meta version negotiation + server/discover) and keeps full backward compatibility with older clients that use the initialize handshake (2025-06-18 / 2025-03-26) — a dual-era server, because a tool that repairs breaking changes should not ship one.
Claude Code (one line):
Cursor (or any JSON-configured MCP client) — add to .cursor/mcp.json:
Tools exposed: scan, deps, fix, revalidate, changes — the same schema_version-stamped JSON as the CLI --json flags. See the For AI agents docs page for the full tool catalog and an autonomous-maintenance recipe.
Why precision matters
Alert fatigue kills tools like this. Our scanner gates every finding through:
- Source-aware evidence rules — an SDK release only affects repos that import that SDK; a changelog entry about an API endpoint affects anyone calling that host.
- Sub-API filtering for monorepo providers (Google, AWS) — a
youtuberelease does not page the team that only uses S3. - Identifier-boundary symbol matching —
getRnever matchesgetRelatedArticles. - Context-aware env-var detection —
process.env.STRIPE_KEYcounts; a regex constant namedMETA_REdoes not.
Dogfooding across three production repos: the current pipeline reports zero false positives where an earlier naive version produced 27.
Measured in public
We benchmark the change database against real provider spec corpora and publish the full accounting — every headline number is recomputed from archived evidence by the site's build gates, so the reports cannot drift from the data:
- What 47 Stripe API versions taught us about breaking-change detection — 47 consecutive spec pairs, head-to-head with oasdiff, zero unexplained gaps.
- Three more providers, 49 spec pairs, zero unexplained gaps — the same audit across Twilio, PayPal, and Vercel.
- 20 Twilio spec pairs: 358 findings from one engine, 142 from ours, and every disagreement named — why two engines disagree by 2.5x, with every divergence accounted for.
- 11 Vercel spec pairs: a real 12-endpoint removal, and the release notes that cried breaking — the changelog got it wrong in both directions; the wire did not.
- 136 raw removals, 17 real ones: what a spec diff over-reports — the curation rules that keep alert fatigue out of the feed.
- 821 OpenAI spec changes, 3 that can break a client: the honest negative — the value of a tool that tells you when you are fine.
Status
Published on npm as mendapi (v0.5.6). Early release — the change database and migration pack registry grow daily; interfaces may still shift before 1.0.
License
AGPL-3.0-only for the CLI (see LICENSE). Chosen so security teams can audit every line that reads code or builds a payload, and so hosted forks must share their changes.
來源:README.md,提交 2452f3c
工具
0版本歷史
1- v0.5.6最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分