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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- packages/mcp-common/src/tools/docs-ai-search.tools.ts:84-117 (registration)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(), }, ], } } )
- packages/mcp-common/src/tools/docs-vectorize.tools.ts:60-93 (registration)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(), }, ], } } )