-
Notifications
You must be signed in to change notification settings - Fork 10.3k
feat: agents mcp #26617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: production
Are you sure you want to change the base?
feat: agents mcp #26617
Conversation
Adds documentation for the new Agents SDK Documentation MCP server that provides token-efficient search of Cloudflare Agents SDK documentation. Related to cloudflare/agents#643 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
|
Preview URL: https://1eca4ada.preview.developers.cloudflare.com Files with changes (up to 15) |
| | [Cloudflare One CASB server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/cloudflare-one-casb) | Quickly identify any security misconfigurations for SaaS applications to safeguard users & data | `https://casb.mcp.cloudflare.com/mcp` | | ||
| | [GraphQL server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/graphql/) | Get analytics data using Cloudflare’s GraphQL API | `https://graphql.mcp.cloudflare.com/mcp` | | ||
| | [GraphQL server](https://github.com/cloudflare/mcp-server-cloudflare/tree/main/apps/graphql/) | Get analytics data using Cloudflare's GraphQL API | `https://graphql.mcp.cloudflare.com/mcp` | | ||
| | [Agents SDK Documentation server](https://github.com/cloudflare/agents/tree/main/site/agents) | Token-efficient search of the Cloudflare Agents SDK documentation | `https://agents.mcp.cloudflare.com/mcp` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | [Agents SDK Documentation server](https://github.com/cloudflare/agents/tree/main/site/agents) | Token-efficient search of the Cloudflare Agents SDK documentation | `https://agents.mcp.cloudflare.com/mcp` | | |
| | [Agents SDK Documentation server](https://github.com/cloudflare/agents/tree/main/site/agents) | Token-efficient search of the Cloudflare Agents SDK documentation | `https://agents.cloudflare.com/mcp` | |
| ## Agents SDK Documentation server | ||
|
|
||
| The Agents SDK Documentation server provides a token-efficient search tool for the Cloudflare Agents SDK documentation. This server is particularly useful when building with the Agents SDK, allowing you to quickly find relevant documentation without consuming excessive tokens. | ||
|
|
||
| ### Available tools | ||
|
|
||
| The server exposes one tool: | ||
|
|
||
| - **search-agent-docs**: Search the Cloudflare Agents SDK documentation using natural language queries | ||
| - **query** (string): Query string to search for (for example, `agent hibernate`, `schedule tasks`) | ||
| - **k** (number, optional): Number of results to return (default: 5) | ||
|
|
||
| ### How it works | ||
|
|
||
| The server fetches documentation from GitHub, chunks it using a recursive chunker, and indexes it with Orama. The index is cached in KV for one day. Search uses BM25 with stemming enabled, which allows natural language queries like "hibernation" to match with "hibernate" for better results. | ||
|
|
||
| ### Usage example | ||
|
|
||
| Connect to the server at `https://agents.mcp.cloudflare.com/mcp` in your MCP client. You can then use queries like: | ||
|
|
||
| - `agent hibernate` - Find information about agent hibernation | ||
| - `schedule tasks` - Learn about task scheduling | ||
| - `tool calling` - Discover how to implement tool calling | ||
|
|
||
| The server returns relevant documentation chunks with their file names and full content URLs, making it easy to find the information you need while building agents. | ||
|
|
||
| ### Rate limiting | ||
|
|
||
| The server is designed to avoid GitHub rate limiting by caching documentation. If you are self-hosting this server, you can set the `GITHUB_TOKEN` environment variable to increase your rate limits. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Agents SDK Documentation server | |
| The Agents SDK Documentation server provides a token-efficient search tool for the Cloudflare Agents SDK documentation. This server is particularly useful when building with the Agents SDK, allowing you to quickly find relevant documentation without consuming excessive tokens. | |
| ### Available tools | |
| The server exposes one tool: | |
| - **search-agent-docs**: Search the Cloudflare Agents SDK documentation using natural language queries | |
| - **query** (string): Query string to search for (for example, `agent hibernate`, `schedule tasks`) | |
| - **k** (number, optional): Number of results to return (default: 5) | |
| ### How it works | |
| The server fetches documentation from GitHub, chunks it using a recursive chunker, and indexes it with Orama. The index is cached in KV for one day. Search uses BM25 with stemming enabled, which allows natural language queries like "hibernation" to match with "hibernate" for better results. | |
| ### Usage example | |
| Connect to the server at `https://agents.mcp.cloudflare.com/mcp` in your MCP client. You can then use queries like: | |
| - `agent hibernate` - Find information about agent hibernation | |
| - `schedule tasks` - Learn about task scheduling | |
| - `tool calling` - Discover how to implement tool calling | |
| The server returns relevant documentation chunks with their file names and full content URLs, making it easy to find the information you need while building agents. | |
| ### Rate limiting | |
| The server is designed to avoid GitHub rate limiting by caching documentation. If you are self-hosting this server, you can set the `GITHUB_TOKEN` environment variable to increase your rate limits. |
Synced from cloudflare/agents#643
This PR adds documentation for the new Agents SDK Documentation MCP server that provides token-efficient search of the Cloudflare Agents SDK documentation.
Changes:
Original PR: cloudflare/agents#643