Skip to content
Cloudflare Docs
Search
Docs Directory
APIs
SDKs
Help
Log in
Select theme
Dark
Light
Auto
Agents
No results found. Try a different search term, or use our
global search
.
Overview
Getting started
Quick start
Add to existing project
Testing your Agents
Build a Chat Agent
Prompt an AI model ↗
Concepts
What are agents?
Workflows
Tools
Agent class internals
Human in the Loop
Calling LLMs
Patterns
Guides
Implement Effective Agent Patterns ↗
Human-in-the-loop patterns
Webhooks
Build a Slack Agent
Build an Interactive ChatGPT App
Build a Remote MCP server
Test a Remote MCP Server
Securing MCP servers
Connect to an MCP server
Build a Remote MCP Client ↗
Handle OAuth with MCP servers
Cross-domain authentication
API Reference
Agents API
Routing
Configuration
Client SDK
Callable methods
Store and sync state
Readonly connections
WebSockets
HTTP and Server-Sent Events
Schedule tasks
Queue tasks
Run Workflows
Using AI Models
Retrieval Augmented Generation
Browse the web
Email routing
getCurrentAgent()
Observability
Model Context Protocol (MCP)
Overview
Tools
Authorization
Transport
McpAgent — API Reference
createMcpHandler — API Reference
Connecting to MCP servers
Cloudflare's own MCP servers
MCP server portals ↗
Platform
Limits
Prompt Engineering ↗
prompt.txt ↗
x402
LLM resources
llms.txt
prompt.txt
Agents llms-full.txt
Developer Platform llms-full.txt
GitHub
X.com
YouTube
Select theme
Dark
Light
Auto
Directory
…
Agents
API Reference
Copy page
API Reference
Learn more about what Agents can do, the
Agent
class, and the APIs that Agents expose:
Agents API
Routing
Configuration
Client SDK
Callable methods
Store and sync state
Readonly connections
WebSockets
HTTP and Server-Sent Events
Schedule tasks
Queue tasks
Run Workflows
Using AI Models
Retrieval Augmented Generation
Browse the web
Email routing
getCurrentAgent()
Observability