dhur-gham/laravel-mcp-api-docs
Laravel package for documenting MCP servers: generates browsable API docs for your tools, resources, and prompts, with routing and auth that fit your existing Laravel app so docs stay close to the code they describe.
openapi.json produces a reviewed, CI-generated entry labelled 🔴 breaking / 🟡 deprecation / 🟢 non-breaking, and a new get_changelog(since?) MCP tool plus a changes list on get_endpoint expose it to agents. This is a deprecation-communication feature, not a docs feature — it lets you make "agents must not use deprecated fields" an enforceable, versioned statement rather than a Slack announcement.openapi.json current (manual export discipline, or Scramble generation), the changelog feature is dead weight and should be scoped out of the pilot.laravel/mcp ^0.7–^1.0. That makes this a forcing function on your Laravel 12 migration timeline; it should be sequenced after, not in parallel with, the framework upgrade.Consider adoption when:
laravel/mcp ^0.7+.openapi.json (Scramble mode removes the manual export step and makes the changelog self-maintaining).Look elsewhere or defer when:
openapi.url while a stale openapi.file is also configured: v2.0.0 flips precedence so the file wins, which can silently change what agents see after upgrade. Audit config before rolling out.For executives: This is a small, low-cost capability that makes our API legible to AI coding agents — both ours and our customers'. The 2.0 release adds an automatically generated, per-pull-request API changelog with breaking changes flagged in code review, which converts "we told people about the deprecation" into "it is recorded, versioned, and queryable by the tools agents actually use." Cost is one artisan command and a CI workflow; the main constraint is that it requires Laravel 12.
For engineering: Upgrade path is composer require dhur-gham/laravel-mcp-api-docs:^2.0, but treat it as a real major: Laravel 12 only, laravel/mcp ^0.7+, and openapi.file now takes precedence over openapi.url — check config before deploying. Changelog is opt-in via php artisan mcp-api-docs:install-changelog plus MCP_API_DOCS_CHANGELOG_FILE; it pins actions to SHAs, verifies the oasdiff download by SHA-256, skips fork PRs, and baselines the first spec so we don't get a fake "everything added" entry. Also new: openapi.json is cached between tool calls (60s default, failures not cached), which removes a per-call fetch cost.
Ask: approve a one-sprint pilot on an internal API after the Laravel 12 upgrade, with success measured by (a) agents answering endpoint questions without hallucinated routes, and (b) at least one breaking change caught in review by the changelog bot before merge.
How can I help you explore Laravel packages today?