Skip to content

Conversation

@threepointone
Copy link
Contributor

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:

  • Added Agents SDK Documentation server to the MCP servers table
  • Added detailed documentation section explaining:
    • Available tools (search-agent-docs)
    • How the server works (caching, BM25 search with stemming)
    • Usage examples
    • Rate limiting considerations

Original PR: cloudflare/agents#643

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]>
@github-actions github-actions bot added product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/s labels Nov 19, 2025
@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, @cloudflare/pcx-technical-writing

| [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` |
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
| [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` |

Comment on lines +38 to +67
## 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
## 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.

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.

5 participants