Skip to main content
Glama
cloudflare

mcp-server-cloudflare

Official
by cloudflare

migrate_pages_to_workers_guide

Learn how to migrate Cloudflare Pages projects to Workers using this essential guide. Ensure compatibility and optimize performance with step-by-step instructions.

Instructions

ALWAYS read this guide before migrating Pages projects to Workers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'migrate_pages_to_workers_guide' tool, including its inline handler that fetches the migration guide text from Cloudflare Developers site and returns it as content. Input schema is empty.
    server.tool( 'migrate_pages_to_workers_guide', `ALWAYS read this guide before migrating Pages projects to Workers.`, {}, { title: 'Get Pages migration guide', annotations: { readOnlyHint: true, }, }, async () => { const res = await fetch( 'https://developers.cloudflare.com/workers/prompts/pages-to-workers.txt', { cf: { cacheEverything: true, cacheTtl: 3600 }, } ) if (!res.ok) { return { content: [{ type: 'text', text: 'Error: Failed to fetch guide. Please try again.' }], } } return { content: [ { type: 'text', text: await res.text(), }, ], } } )
  • Registration of the 'migrate_pages_to_workers_guide' tool, including its inline handler that fetches the migration guide text from Cloudflare Developers site and returns it as content. Input schema is empty. Identical to the one in docs-ai-search.tools.ts.
    server.tool( 'migrate_pages_to_workers_guide', `ALWAYS read this guide before migrating Pages projects to Workers.`, {}, { title: 'Get Pages migration guide', annotations: { readOnlyHint: true, }, }, async () => { const res = await fetch( 'https://developers.cloudflare.com/workers/prompts/pages-to-workers.txt', { cf: { cacheEverything: true, cacheTtl: 3600 }, } ) if (!res.ok) { return { content: [{ type: 'text', text: 'Error: Failed to fetch guide. Please try again.' }], } } return { content: [ { type: 'text', text: await res.text(), }, ], } } )

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cloudflare/mcp-server-cloudflare'

If you have feedback or need assistance with the MCP directory API, please join our Discord server