docs(MCP): Rewrite MCP server page and generate the tool catalogue#7668
docs(MCP): Rewrite MCP server page and generate the tool catalogue#7668khvn26 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
Vercel preview of the rewritten page: https://docs-qxrxqbi67-flagsmith.vercel.app/integrating-with-flagsmith/mcp-server |
Docker builds report
|
Rewrite the user-facing MCP server page for the self-built server, replacing the Gram-hosted page: - Cloud (`https://mcp.flagsmith.com`) and self-hosted (`https://<host>/mcp/`) URLs - OAuth (auto-discovered) and `Authorization: Api-Key` authentication - Per-client install tabs: Claude Code, Cursor, Claude Desktop, Codex CLI, Windsurf, Gemini CLI, VS Code, and a generic fallback - Gram deprecation / migration callout, example prompts Generate the tool catalogue from the OpenAPI schema rather than hand-maintaining it, so descriptions stay in sync with the tools: - `manage.py generate_mcp_tool_catalogue` renders an aligned Markdown table of the MCP-tagged operations (verbatim `operationId` + `description`); `--exclude` omits tools already listed in another catalogue. - `make generate-docs` writes the core catalogue (`_mcp-tool-catalogue.md`); `api-tests-with-private-packages` derives the enterprise-only catalogue (`_mcp-tool-catalogue-enterprise.md`) against it. The page composes both via MDX imports (hence the `.md` -> `.mdx` rename). Contributes to Flagsmith/flagsmith-private#144. beep boop
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7668 +/- ##
=======================================
Coverage 98.52% 98.53%
=======================================
Files 1444 1446 +2
Lines 55083 55142 +59
=======================================
+ Hits 54273 54332 +59
Misses 810 810 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (oss - depot-ubuntu-latest-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
|
Visual Regression19 screenshots compared. See report for details. |
5fb9cdd to
6295a4b
Compare
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Contributes to Flagsmith/flagsmith-private#144.
Preview: https://docs-git-docs-rewrite-mcp-server-flagsmith.vercel.app/integrating-with-flagsmith/mcp-server
Rewrites the user-facing MCP server page for the self-built server, replacing the Gram-hosted page:
https://mcp.flagsmith.com) and self-hosted (https://<your-flagsmith-host>/mcp/) URLs.Authorization: Api-Keyauthentication.Generates the tool catalogue from the OpenAPI schema instead of hand-maintaining it, so the descriptions stay in sync with the tools:
manage.py generate_mcp_tool_cataloguerenders an aligned Markdown table of the MCP-tagged operations (verbatimoperationId+description).--excludeomits tools already present in another catalogue.make generate-docswrites the core catalogue (_mcp-tool-catalogue.md, gated by the existing diff-check).api-tests-with-private-packagesderives the enterprise-only catalogue (_mcp-tool-catalogue-enterprise.md) from it (the enterprise tools only exist with private packages installed). The page composes both via MDX imports — hence the.md→.mdxrename.Note: the page documents URLs/clients ahead of the server going live (doc-led). The install snippets and the Gram deprecation date (currently 30 June 2026) should be confirmed against the live server before/at release.
How did you test this code?
make -C api generate-docsreproduces_mcp-tool-catalogue.md(36 core tools) byte-identically;make -C api typecheckand ruff pass; docs Prettier passes on the rewritten page and both partials.flagsmith-privateinstalled (--excludethe core one) → the 7 enterprise tools; verified both partials are Prettier-stable.tests/unit/api/test_generate_mcp_tool_catalogue.py): default rendering,--exclude, and pipe-escaping — all pass.