Skip to content

Add Code Mode MCP server to docs#28480

Closed
ask-bonk[bot] wants to merge 2 commits intoproductionfrom
opencode/issue28477-20260220141616
Closed

Add Code Mode MCP server to docs#28480
ask-bonk[bot] wants to merge 2 commits intoproductionfrom
opencode/issue28477-20260220141616

Conversation

@ask-bonk
Copy link
Contributor

@ask-bonk ask-bonk bot commented Feb 20, 2026

Here is a summary of the changes made to src/content/docs/agents/model-context-protocol/mcp-servers-for-cloudflare.mdx:

Changes

  1. Added a new prominent "Cloudflare API MCP server" section as the first content section on the page, before the existing table of product-specific servers. This section:

    • Links to the new cloudflare/mcp repository
    • Explains that 2 tools (search() and execute()) cover the entire Cloudflare API (2,500+ endpoints)
    • Describes Code Mode technically — the model writes JavaScript against the OpenAPI spec and API client, executed in a sandboxed Dynamic Worker isolate
    • Includes a token comparison table showing the savings: ~1,000 tokens for Code Mode vs ~1,170,000 for native MCP with full schemas (a 99.9% reduction)
    • Provides the MCP client JSON configuration snippet with the mcp.cloudflare.com/mcp URL
    • Documents both OAuth (default) and API token auth options
  2. Reorganized the existing server table under a new "Product-specific MCP servers" heading to clearly distinguish between the unified API server and the individual product servers.

  3. Minor fixes: corrected the typo streamble-http to streamable-http, and changed "MCP Servers" to "MCP servers" for consistency.

Closes #28477

github run

@github-actions github-actions bot added product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/s labels Feb 20, 2026
@github-actions
Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/agents/ @irvinebroque, @rita3ko, @elithrar, @thomasgauvin, @threepointone, @whoiskatrin, @cloudflare/pcx-technical-writing, @cloudflare/ai-agents, @cloudflare/dev-plat-leads

For CI/CD or automation, you can create a [Cloudflare API token](https://dash.cloudflare.com/profile/api-tokens) with the permissions you need and pass it as a bearer token in the `Authorization` header. Both user tokens and account tokens are supported.

For more details and configuration options, refer to the [Cloudflare MCP repository](https://github.com/cloudflare/mcp).

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/bonk Add a new ### Installing via Agent and IDE plugins section here that captures the Installing section of https://github.com/cloudflare/skills?tab=readme-ov-file#installing

@cloudflare cloudflare deleted a comment from wsnchristopher Feb 20, 2026
@cloudflare cloudflare deleted a comment from wsnchristopher Feb 20, 2026
Co-authored-by: elithrar <elithrar@users.noreply.github.com>
@ask-bonk
Copy link
Contributor Author

ask-bonk bot commented Feb 20, 2026

The new section is correctly placed at line 50 as an ### Installing via agent and IDE plugins subsection under the ## Cloudflare API MCP server heading, right before the ## Product-specific MCP servers section.

The section captures all the installation methods from the cloudflare/skills README:

  • Claude Code - plugin marketplace command
  • Cursor - Marketplace or manual settings path
  • npx skills - CLI install command
  • Clone or copy - table of agent skill directories with links to docs

Style guide adherence: used bold for UI elements (**Settings** > **Rules** > **Add Rule** > **Remote Rule (Github)**), used txt for the slash command code block (not a shell command), sh for the npx command, no $ prefixes, descriptive link text, and active voice throughout.

github run

github-actions bot pushed a commit that referenced this pull request Feb 20, 2026
Remove the draft Code Mode page (code-mode.mdx) which is superseded by
the codemode doc that @threepointone landed on production. Restore
codemode.mdx from production and update worker-loader.mdx cross-refs to
point to /agents/api-reference/codemode/.

Addressing feedback from #28480.
@elithrar
Copy link
Collaborator

see #28343

@elithrar elithrar closed this Feb 20, 2026
github-actions bot pushed a commit that referenced this pull request Feb 20, 2026
Co-authored-by: elithrar <elithrar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add new code mode MCP server to docs

6 participants