Skip to content

Add Cloudflare docs search tool - #148

Merged
mattzcarey merged 1 commit into
cloudflare:mainfrom
mattzcarey:feat/add-search-docs-to-cloudflare-mcp
Jun 8, 2026
Merged

Add Cloudflare docs search tool#148
mattzcarey merged 1 commit into
cloudflare:mainfrom
mattzcarey:feat/add-search-docs-to-cloudflare-mcp

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a new docs MCP tool for searching Cloudflare Developer Documentation
  • back the tool with the same AI Search AutoRAG index used by docs.mcp.cloudflare.com (docs-mcp-rag)
  • use the same tool description as the current mcp-server-cloudflare docs AI Search tool
  • return XML-style docs result blocks in normal text content, while exposing typed results via outputSchema / structuredContent
  • register docs in both code mode and ?codemode=false
  • add the AI binding to staging and production Worker environments
  • document the new third code-mode tool

Notes

The current docs MCP server at docs.mcp.cloudflare.com reports serverInfo.name = docs-ai-search and version = 0.4.8; this mirrors that AI Search implementation rather than the older Vectorize path.

/mcp remains OAuth/API-token protected so clients still receive the normal auth challenge and login flow.

Tests

  • npm run check
    • passes with existing lint warning for src/tests/cloudflare-test.d.ts triple-slash reference
  • staging unauthenticated /mcp smoke test returns expected OAuth 401 challenge
@mattzcarey
mattzcarey force-pushed the feat/add-search-docs-to-cloudflare-mcp branch from e6fd940 to c375773 Compare June 8, 2026 15:16
@mattzcarey mattzcarey changed the title Add Cloudflare docs search tool Jun 8, 2026
@mattzcarey
mattzcarey force-pushed the feat/add-search-docs-to-cloudflare-mcp branch from c375773 to ad6c8e3 Compare June 8, 2026 15:19
@mattzcarey mattzcarey changed the title Add public Cloudflare docs search tool Jun 8, 2026
@mattzcarey
mattzcarey force-pushed the feat/add-search-docs-to-cloudflare-mcp branch 6 times, most recently from 123c8dc to 88dc7c9 Compare June 8, 2026 17:50
@mattzcarey
mattzcarey force-pushed the feat/add-search-docs-to-cloudflare-mcp branch from 88dc7c9 to 485dd76 Compare June 8, 2026 17:52
@mattzcarey
mattzcarey merged commit 6990b52 into cloudflare:main Jun 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant