[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openai-building-mcp-server-on-cloudflare":3,"mdc-7sctdl-key":39,"related-org-openai-building-mcp-server-on-cloudflare":3579,"related-repo-openai-building-mcp-server-on-cloudflare":3779},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":28,"repoUrl":29,"updatedAt":30,"license":31,"forks":32,"topics":33,"repo":34,"sourceUrl":37,"mdContent":38},"building-mcp-server-on-cloudflare","build MCP servers on Cloudflare","Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers\nwith tools, OAuth authentication, and production deployment. Generates\nserver code, configures auth providers, and deploys to Workers.\n\nUse when: user wants to \"build MCP server\", \"create MCP tools\", \"remote\nMCP\", \"deploy MCP\", add \"OAuth to MCP\", or mentions Model Context Protocol\non Cloudflare. Also triggers on \"MCP authentication\" or \"MCP deployment\".\nBiases towards retrieval from Cloudflare docs over pre-trained knowledge.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"openai","OpenAI","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenai.png",[12,16,19,22,25],{"name":13,"slug":14,"type":15},"Cloudflare Workers","cloudflare-workers","tag",{"name":17,"slug":18,"type":15},"MCP","mcp",{"name":20,"slug":21,"type":15},"Deployment","deployment",{"name":23,"slug":24,"type":15},"Serverless","serverless",{"name":26,"slug":27,"type":15},"OAuth","oauth",3992,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins","2026-04-06T18:39:49.237572",null,465,[],{"repoUrl":29,"stars":28,"forks":32,"topics":35,"description":36},[],"OpenAI Plugins","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins\u002Ftree\u002FHEAD\u002Fplugins\u002Fcloudflare\u002Fskills\u002Fbuilding-mcp-server-on-cloudflare","---\nname: building-mcp-server-on-cloudflare\ndescription: |\n  Builds remote MCP (Model Context Protocol) servers on Cloudflare Workers\n  with tools, OAuth authentication, and production deployment. Generates\n  server code, configures auth providers, and deploys to Workers.\n\n  Use when: user wants to \"build MCP server\", \"create MCP tools\", \"remote\n  MCP\", \"deploy MCP\", add \"OAuth to MCP\", or mentions Model Context Protocol\n  on Cloudflare. Also triggers on \"MCP authentication\" or \"MCP deployment\".\n  Biases towards retrieval from Cloudflare docs over pre-trained knowledge.\n---\n\n# Building MCP Servers on Cloudflare\n\nYour knowledge of the MCP SDK and Cloudflare Workers integration may be outdated. **Prefer retrieval over pre-training** for any MCP server task.\n\n## Retrieval Sources\n\n| Source | How to retrieve | Use for |\n|--------|----------------|---------|\n| MCP docs | `https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fmcp\u002F` | Server setup, auth, deployment |\n| MCP spec | `https:\u002F\u002Fmodelcontextprotocol.io\u002F` | Protocol spec, tool\u002Fresource definitions |\n| Workers docs | Search tool or `https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002F` | Runtime APIs, bindings, config |\n\n## When to Use\n\n- User wants to build a remote MCP server\n- User needs to expose tools via MCP\n- User asks about MCP authentication or OAuth\n- User wants to deploy MCP to Cloudflare Workers\n\n## Prerequisites\n\n- Cloudflare account with Workers enabled\n- Node.js 18+ and npm\u002Fpnpm\u002Fyarn\n- Wrangler CLI (`npm install -g wrangler`)\n\n## Quick Start\n\n### Option 1: Public Server (No Auth)\n\n```bash\nnpm create cloudflare@latest -- my-mcp-server \\\n  --template=cloudflare\u002Fai\u002Fdemos\u002Fremote-mcp-authless\ncd my-mcp-server\nnpm start\n```\n\nServer runs at `http:\u002F\u002Flocalhost:8788\u002Fmcp`\n\n### Option 2: Authenticated Server (OAuth)\n\n```bash\nnpm create cloudflare@latest -- my-mcp-server \\\n  --template=cloudflare\u002Fai\u002Fdemos\u002Fremote-mcp-github-oauth\ncd my-mcp-server\n```\n\nRequires OAuth app setup. See [references\u002Foauth-setup.md](references\u002Foauth-setup.md).\n\n## Core Workflow\n\n### Step 1: Define Tools\n\nTools are functions MCP clients can call. Define them using `server.tool()`:\n\n```typescript\nimport { McpAgent } from \"agents\u002Fmcp\";\nimport { z } from \"zod\";\n\nexport class MyMCP extends McpAgent {\n  server = new Server({ name: \"my-mcp\", version: \"1.0.0\" });\n\n  async init() {\n    \u002F\u002F Simple tool with parameters\n    this.server.tool(\n      \"add\",\n      { a: z.number(), b: z.number() },\n      async ({ a, b }) => ({\n        content: [{ type: \"text\", text: String(a + b) }],\n      })\n    );\n\n    \u002F\u002F Tool that calls external API\n    this.server.tool(\n      \"get_weather\",\n      { city: z.string() },\n      async ({ city }) => {\n        const response = await fetch(`https:\u002F\u002Fapi.weather.com\u002F${city}`);\n        const data = await response.json();\n        return {\n          content: [{ type: \"text\", text: JSON.stringify(data) }],\n        };\n      }\n    );\n  }\n}\n```\n\n### Step 2: Configure Entry Point\n\n**Public server** (`src\u002Findex.ts`):\n\n```typescript\nimport { MyMCP } from \".\u002Fmcp\";\n\nexport default {\n  fetch(request: Request, env: Env, ctx: ExecutionContext) {\n    const url = new URL(request.url);\n    if (url.pathname === \"\u002Fmcp\") {\n      return MyMCP.serveSSE(\"\u002Fmcp\").fetch(request, env, ctx);\n    }\n    return new Response(\"MCP Server\", { status: 200 });\n  },\n};\n\nexport { MyMCP };\n```\n\n**Authenticated server** — See [references\u002Foauth-setup.md](references\u002Foauth-setup.md).\n\n### Step 3: Test Locally\n\n```bash\n# Start server\nnpm start\n\n# In another terminal, test with MCP Inspector\nnpx @modelcontextprotocol\u002Finspector@latest\n# Open http:\u002F\u002Flocalhost:5173, enter http:\u002F\u002Flocalhost:8788\u002Fmcp\n```\n\n### Step 4: Deploy\n\n```bash\nnpx wrangler deploy\n```\n\nServer accessible at `https:\u002F\u002F[worker-name].[account].workers.dev\u002Fmcp`\n\n### Step 5: Connect Clients\n\n**Codex MCP client setup:**\n\n```bash\ncodex mcp add my-server -- npx mcp-remote https:\u002F\u002Fmy-mcp.workers.dev\u002Fmcp\n```\n\nRestart Codex after updating the MCP configuration.\n\n## Tool Patterns\n\n### Return Types\n\n```typescript\n\u002F\u002F Text response\nreturn { content: [{ type: \"text\", text: \"result\" }] };\n\n\u002F\u002F Multiple content items\nreturn {\n  content: [\n    { type: \"text\", text: \"Here's the data:\" },\n    { type: \"text\", text: JSON.stringify(data, null, 2) },\n  ],\n};\n```\n\n### Input Validation with Zod\n\n```typescript\nthis.server.tool(\n  \"create_user\",\n  {\n    email: z.string().email(),\n    name: z.string().min(1).max(100),\n    role: z.enum([\"admin\", \"user\", \"guest\"]),\n    age: z.number().int().min(0).optional(),\n  },\n  async (params) => {\n    \u002F\u002F params are fully typed and validated\n  }\n);\n```\n\n### Accessing Environment\u002FBindings\n\n```typescript\nexport class MyMCP extends McpAgent\u003CEnv> {\n  async init() {\n    this.server.tool(\"query_db\", { sql: z.string() }, async ({ sql }) => {\n      \u002F\u002F Access D1 binding\n      const result = await this.env.DB.prepare(sql).all();\n      return { content: [{ type: \"text\", text: JSON.stringify(result) }] };\n    });\n  }\n}\n```\n\n## Authentication\n\nFor OAuth-protected servers, see [references\u002Foauth-setup.md](references\u002Foauth-setup.md).\n\nSupported providers:\n- GitHub\n- Google\n- Auth0\n- Stytch\n- WorkOS\n- Any OAuth 2.0 compliant provider\n\n## Wrangler Configuration\n\nMinimal `wrangler.toml`:\n\n```toml\nname = \"my-mcp-server\"\nmain = \"src\u002Findex.ts\"\ncompatibility_date = \"2024-12-01\"\n\n[durable_objects]\nbindings = [{ name = \"MCP\", class_name = \"MyMCP\" }]\n\n[[migrations]]\ntag = \"v1\"\nnew_classes = [\"MyMCP\"]\n```\n\nWith bindings (D1, KV, etc.):\n\n```toml\n[[d1_databases]]\nbinding = \"DB\"\ndatabase_name = \"my-db\"\ndatabase_id = \"xxx\"\n\n[[kv_namespaces]]\nbinding = \"KV\"\nid = \"xxx\"\n```\n\n## Common Issues\n\n### \"Tool not found\" in Client\n\n1. Verify tool name matches exactly (case-sensitive)\n2. Ensure `init()` registers tools before connections\n3. Check server logs: `wrangler tail`\n\n### Connection Fails\n\n1. Confirm endpoint path is `\u002Fmcp`\n2. Check CORS if browser-based client\n3. Verify Worker is deployed: `wrangler deployments list`\n\n### OAuth Redirect Errors\n\n1. Callback URL must match OAuth app config exactly\n2. Check `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` are set\n3. For local dev, use `http:\u002F\u002Flocalhost:8788\u002Fcallback`\n\n## References\n\n- [references\u002Fexamples.md](references\u002Fexamples.md) — Official templates and production examples\n- [references\u002Foauth-setup.md](references\u002Foauth-setup.md) — OAuth provider configuration\n- [references\u002Ftroubleshooting.md](references\u002Ftroubleshooting.md) — Error codes and fixes\n",{"data":40,"body":41},{"name":4,"description":6},{"type":42,"children":43},"root",[44,53,67,74,176,182,207,213,239,245,252,339,350,356,409,422,428,434,447,1406,1412,1429,1873,1888,1894,1956,1962,1986,1997,2003,2011,2060,2065,2071,2077,2377,2383,2790,2796,3175,3181,3191,3196,3229,3235,3247,3334,3339,3409,3415,3421,3454,3460,3489,3495,3535,3541,3573],{"type":45,"tag":46,"props":47,"children":49},"element","h1",{"id":48},"building-mcp-servers-on-cloudflare",[50],{"type":51,"value":52},"text","Building MCP Servers on Cloudflare",{"type":45,"tag":54,"props":55,"children":56},"p",{},[57,59,65],{"type":51,"value":58},"Your knowledge of the MCP SDK and Cloudflare Workers integration may be outdated. ",{"type":45,"tag":60,"props":61,"children":62},"strong",{},[63],{"type":51,"value":64},"Prefer retrieval over pre-training",{"type":51,"value":66}," for any MCP server task.",{"type":45,"tag":68,"props":69,"children":71},"h2",{"id":70},"retrieval-sources",[72],{"type":51,"value":73},"Retrieval Sources",{"type":45,"tag":75,"props":76,"children":77},"table",{},[78,102],{"type":45,"tag":79,"props":80,"children":81},"thead",{},[82],{"type":45,"tag":83,"props":84,"children":85},"tr",{},[86,92,97],{"type":45,"tag":87,"props":88,"children":89},"th",{},[90],{"type":51,"value":91},"Source",{"type":45,"tag":87,"props":93,"children":94},{},[95],{"type":51,"value":96},"How to retrieve",{"type":45,"tag":87,"props":98,"children":99},{},[100],{"type":51,"value":101},"Use for",{"type":45,"tag":103,"props":104,"children":105},"tbody",{},[106,130,152],{"type":45,"tag":83,"props":107,"children":108},{},[109,115,125],{"type":45,"tag":110,"props":111,"children":112},"td",{},[113],{"type":51,"value":114},"MCP docs",{"type":45,"tag":110,"props":116,"children":117},{},[118],{"type":45,"tag":119,"props":120,"children":122},"code",{"className":121},[],[123],{"type":51,"value":124},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fagents\u002Fmcp\u002F",{"type":45,"tag":110,"props":126,"children":127},{},[128],{"type":51,"value":129},"Server setup, auth, deployment",{"type":45,"tag":83,"props":131,"children":132},{},[133,138,147],{"type":45,"tag":110,"props":134,"children":135},{},[136],{"type":51,"value":137},"MCP spec",{"type":45,"tag":110,"props":139,"children":140},{},[141],{"type":45,"tag":119,"props":142,"children":144},{"className":143},[],[145],{"type":51,"value":146},"https:\u002F\u002Fmodelcontextprotocol.io\u002F",{"type":45,"tag":110,"props":148,"children":149},{},[150],{"type":51,"value":151},"Protocol spec, tool\u002Fresource definitions",{"type":45,"tag":83,"props":153,"children":154},{},[155,160,171],{"type":45,"tag":110,"props":156,"children":157},{},[158],{"type":51,"value":159},"Workers docs",{"type":45,"tag":110,"props":161,"children":162},{},[163,165],{"type":51,"value":164},"Search tool or ",{"type":45,"tag":119,"props":166,"children":168},{"className":167},[],[169],{"type":51,"value":170},"https:\u002F\u002Fdevelopers.cloudflare.com\u002Fworkers\u002F",{"type":45,"tag":110,"props":172,"children":173},{},[174],{"type":51,"value":175},"Runtime APIs, bindings, config",{"type":45,"tag":68,"props":177,"children":179},{"id":178},"when-to-use",[180],{"type":51,"value":181},"When to Use",{"type":45,"tag":183,"props":184,"children":185},"ul",{},[186,192,197,202],{"type":45,"tag":187,"props":188,"children":189},"li",{},[190],{"type":51,"value":191},"User wants to build a remote MCP server",{"type":45,"tag":187,"props":193,"children":194},{},[195],{"type":51,"value":196},"User needs to expose tools via MCP",{"type":45,"tag":187,"props":198,"children":199},{},[200],{"type":51,"value":201},"User asks about MCP authentication or OAuth",{"type":45,"tag":187,"props":203,"children":204},{},[205],{"type":51,"value":206},"User wants to deploy MCP to Cloudflare Workers",{"type":45,"tag":68,"props":208,"children":210},{"id":209},"prerequisites",[211],{"type":51,"value":212},"Prerequisites",{"type":45,"tag":183,"props":214,"children":215},{},[216,221,226],{"type":45,"tag":187,"props":217,"children":218},{},[219],{"type":51,"value":220},"Cloudflare account with Workers enabled",{"type":45,"tag":187,"props":222,"children":223},{},[224],{"type":51,"value":225},"Node.js 18+ and npm\u002Fpnpm\u002Fyarn",{"type":45,"tag":187,"props":227,"children":228},{},[229,231,237],{"type":51,"value":230},"Wrangler CLI (",{"type":45,"tag":119,"props":232,"children":234},{"className":233},[],[235],{"type":51,"value":236},"npm install -g wrangler",{"type":51,"value":238},")",{"type":45,"tag":68,"props":240,"children":242},{"id":241},"quick-start",[243],{"type":51,"value":244},"Quick Start",{"type":45,"tag":246,"props":247,"children":249},"h3",{"id":248},"option-1-public-server-no-auth",[250],{"type":51,"value":251},"Option 1: Public Server (No Auth)",{"type":45,"tag":253,"props":254,"children":259},"pre",{"className":255,"code":256,"language":257,"meta":258,"style":258},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm create cloudflare@latest -- my-mcp-server \\\n  --template=cloudflare\u002Fai\u002Fdemos\u002Fremote-mcp-authless\ncd my-mcp-server\nnpm start\n","bash","",[260],{"type":45,"tag":119,"props":261,"children":262},{"__ignoreMap":258},[263,302,311,326],{"type":45,"tag":264,"props":265,"children":268},"span",{"class":266,"line":267},"line",1,[269,275,281,286,291,296],{"type":45,"tag":264,"props":270,"children":272},{"style":271},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[273],{"type":51,"value":274},"npm",{"type":45,"tag":264,"props":276,"children":278},{"style":277},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[279],{"type":51,"value":280}," create",{"type":45,"tag":264,"props":282,"children":283},{"style":277},[284],{"type":51,"value":285}," cloudflare@latest",{"type":45,"tag":264,"props":287,"children":288},{"style":277},[289],{"type":51,"value":290}," --",{"type":45,"tag":264,"props":292,"children":293},{"style":277},[294],{"type":51,"value":295}," my-mcp-server",{"type":45,"tag":264,"props":297,"children":299},{"style":298},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[300],{"type":51,"value":301}," \\\n",{"type":45,"tag":264,"props":303,"children":305},{"class":266,"line":304},2,[306],{"type":45,"tag":264,"props":307,"children":308},{"style":277},[309],{"type":51,"value":310},"  --template=cloudflare\u002Fai\u002Fdemos\u002Fremote-mcp-authless\n",{"type":45,"tag":264,"props":312,"children":314},{"class":266,"line":313},3,[315,321],{"type":45,"tag":264,"props":316,"children":318},{"style":317},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[319],{"type":51,"value":320},"cd",{"type":45,"tag":264,"props":322,"children":323},{"style":277},[324],{"type":51,"value":325}," my-mcp-server\n",{"type":45,"tag":264,"props":327,"children":329},{"class":266,"line":328},4,[330,334],{"type":45,"tag":264,"props":331,"children":332},{"style":271},[333],{"type":51,"value":274},{"type":45,"tag":264,"props":335,"children":336},{"style":277},[337],{"type":51,"value":338}," start\n",{"type":45,"tag":54,"props":340,"children":341},{},[342,344],{"type":51,"value":343},"Server runs at ",{"type":45,"tag":119,"props":345,"children":347},{"className":346},[],[348],{"type":51,"value":349},"http:\u002F\u002Flocalhost:8788\u002Fmcp",{"type":45,"tag":246,"props":351,"children":353},{"id":352},"option-2-authenticated-server-oauth",[354],{"type":51,"value":355},"Option 2: Authenticated Server (OAuth)",{"type":45,"tag":253,"props":357,"children":359},{"className":255,"code":358,"language":257,"meta":258,"style":258},"npm create cloudflare@latest -- my-mcp-server \\\n  --template=cloudflare\u002Fai\u002Fdemos\u002Fremote-mcp-github-oauth\ncd my-mcp-server\n",[360],{"type":45,"tag":119,"props":361,"children":362},{"__ignoreMap":258},[363,390,398],{"type":45,"tag":264,"props":364,"children":365},{"class":266,"line":267},[366,370,374,378,382,386],{"type":45,"tag":264,"props":367,"children":368},{"style":271},[369],{"type":51,"value":274},{"type":45,"tag":264,"props":371,"children":372},{"style":277},[373],{"type":51,"value":280},{"type":45,"tag":264,"props":375,"children":376},{"style":277},[377],{"type":51,"value":285},{"type":45,"tag":264,"props":379,"children":380},{"style":277},[381],{"type":51,"value":290},{"type":45,"tag":264,"props":383,"children":384},{"style":277},[385],{"type":51,"value":295},{"type":45,"tag":264,"props":387,"children":388},{"style":298},[389],{"type":51,"value":301},{"type":45,"tag":264,"props":391,"children":392},{"class":266,"line":304},[393],{"type":45,"tag":264,"props":394,"children":395},{"style":277},[396],{"type":51,"value":397},"  --template=cloudflare\u002Fai\u002Fdemos\u002Fremote-mcp-github-oauth\n",{"type":45,"tag":264,"props":399,"children":400},{"class":266,"line":313},[401,405],{"type":45,"tag":264,"props":402,"children":403},{"style":317},[404],{"type":51,"value":320},{"type":45,"tag":264,"props":406,"children":407},{"style":277},[408],{"type":51,"value":325},{"type":45,"tag":54,"props":410,"children":411},{},[412,414,420],{"type":51,"value":413},"Requires OAuth app setup. See ",{"type":45,"tag":415,"props":416,"children":418},"a",{"href":417},"references\u002Foauth-setup.md",[419],{"type":51,"value":417},{"type":51,"value":421},".",{"type":45,"tag":68,"props":423,"children":425},{"id":424},"core-workflow",[426],{"type":51,"value":427},"Core Workflow",{"type":45,"tag":246,"props":429,"children":431},{"id":430},"step-1-define-tools",[432],{"type":51,"value":433},"Step 1: Define Tools",{"type":45,"tag":54,"props":435,"children":436},{},[437,439,445],{"type":51,"value":438},"Tools are functions MCP clients can call. Define them using ",{"type":45,"tag":119,"props":440,"children":442},{"className":441},[],[443],{"type":51,"value":444},"server.tool()",{"type":51,"value":446},":",{"type":45,"tag":253,"props":448,"children":452},{"className":449,"code":450,"language":451,"meta":258,"style":258},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { McpAgent } from \"agents\u002Fmcp\";\nimport { z } from \"zod\";\n\nexport class MyMCP extends McpAgent {\n  server = new Server({ name: \"my-mcp\", version: \"1.0.0\" });\n\n  async init() {\n    \u002F\u002F Simple tool with parameters\n    this.server.tool(\n      \"add\",\n      { a: z.number(), b: z.number() },\n      async ({ a, b }) => ({\n        content: [{ type: \"text\", text: String(a + b) }],\n      })\n    );\n\n    \u002F\u002F Tool that calls external API\n    this.server.tool(\n      \"get_weather\",\n      { city: z.string() },\n      async ({ city }) => {\n        const response = await fetch(`https:\u002F\u002Fapi.weather.com\u002F${city}`);\n        const data = await response.json();\n        return {\n          content: [{ type: \"text\", text: JSON.stringify(data) }],\n        };\n      }\n    );\n  }\n}\n","typescript",[453],{"type":45,"tag":119,"props":454,"children":455},{"__ignoreMap":258},[456,506,547,556,589,685,693,716,726,754,777,847,894,991,1005,1018,1026,1035,1059,1080,1118,1146,1211,1253,1266,1358,1367,1376,1388,1397],{"type":45,"tag":264,"props":457,"children":458},{"class":266,"line":267},[459,465,471,476,481,486,491,496,501],{"type":45,"tag":264,"props":460,"children":462},{"style":461},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[463],{"type":51,"value":464},"import",{"type":45,"tag":264,"props":466,"children":468},{"style":467},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[469],{"type":51,"value":470}," {",{"type":45,"tag":264,"props":472,"children":473},{"style":298},[474],{"type":51,"value":475}," McpAgent",{"type":45,"tag":264,"props":477,"children":478},{"style":467},[479],{"type":51,"value":480}," }",{"type":45,"tag":264,"props":482,"children":483},{"style":461},[484],{"type":51,"value":485}," from",{"type":45,"tag":264,"props":487,"children":488},{"style":467},[489],{"type":51,"value":490}," \"",{"type":45,"tag":264,"props":492,"children":493},{"style":277},[494],{"type":51,"value":495},"agents\u002Fmcp",{"type":45,"tag":264,"props":497,"children":498},{"style":467},[499],{"type":51,"value":500},"\"",{"type":45,"tag":264,"props":502,"children":503},{"style":467},[504],{"type":51,"value":505},";\n",{"type":45,"tag":264,"props":507,"children":508},{"class":266,"line":304},[509,513,517,522,526,530,534,539,543],{"type":45,"tag":264,"props":510,"children":511},{"style":461},[512],{"type":51,"value":464},{"type":45,"tag":264,"props":514,"children":515},{"style":467},[516],{"type":51,"value":470},{"type":45,"tag":264,"props":518,"children":519},{"style":298},[520],{"type":51,"value":521}," z",{"type":45,"tag":264,"props":523,"children":524},{"style":467},[525],{"type":51,"value":480},{"type":45,"tag":264,"props":527,"children":528},{"style":461},[529],{"type":51,"value":485},{"type":45,"tag":264,"props":531,"children":532},{"style":467},[533],{"type":51,"value":490},{"type":45,"tag":264,"props":535,"children":536},{"style":277},[537],{"type":51,"value":538},"zod",{"type":45,"tag":264,"props":540,"children":541},{"style":467},[542],{"type":51,"value":500},{"type":45,"tag":264,"props":544,"children":545},{"style":467},[546],{"type":51,"value":505},{"type":45,"tag":264,"props":548,"children":549},{"class":266,"line":313},[550],{"type":45,"tag":264,"props":551,"children":553},{"emptyLinePlaceholder":552},true,[554],{"type":51,"value":555},"\n",{"type":45,"tag":264,"props":557,"children":558},{"class":266,"line":328},[559,564,570,575,580,584],{"type":45,"tag":264,"props":560,"children":561},{"style":461},[562],{"type":51,"value":563},"export",{"type":45,"tag":264,"props":565,"children":567},{"style":566},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[568],{"type":51,"value":569}," class",{"type":45,"tag":264,"props":571,"children":572},{"style":271},[573],{"type":51,"value":574}," MyMCP",{"type":45,"tag":264,"props":576,"children":577},{"style":566},[578],{"type":51,"value":579}," extends",{"type":45,"tag":264,"props":581,"children":582},{"style":271},[583],{"type":51,"value":475},{"type":45,"tag":264,"props":585,"children":586},{"style":467},[587],{"type":51,"value":588}," {\n",{"type":45,"tag":264,"props":590,"children":592},{"class":266,"line":591},5,[593,599,604,609,614,619,624,629,633,637,642,646,651,656,660,664,669,673,677,681],{"type":45,"tag":264,"props":594,"children":596},{"style":595},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[597],{"type":51,"value":598},"  server",{"type":45,"tag":264,"props":600,"children":601},{"style":467},[602],{"type":51,"value":603}," =",{"type":45,"tag":264,"props":605,"children":606},{"style":467},[607],{"type":51,"value":608}," new",{"type":45,"tag":264,"props":610,"children":611},{"style":595},[612],{"type":51,"value":613}," Server",{"type":45,"tag":264,"props":615,"children":616},{"style":298},[617],{"type":51,"value":618},"(",{"type":45,"tag":264,"props":620,"children":621},{"style":467},[622],{"type":51,"value":623},"{",{"type":45,"tag":264,"props":625,"children":626},{"style":595},[627],{"type":51,"value":628}," name",{"type":45,"tag":264,"props":630,"children":631},{"style":467},[632],{"type":51,"value":446},{"type":45,"tag":264,"props":634,"children":635},{"style":467},[636],{"type":51,"value":490},{"type":45,"tag":264,"props":638,"children":639},{"style":277},[640],{"type":51,"value":641},"my-mcp",{"type":45,"tag":264,"props":643,"children":644},{"style":467},[645],{"type":51,"value":500},{"type":45,"tag":264,"props":647,"children":648},{"style":467},[649],{"type":51,"value":650},",",{"type":45,"tag":264,"props":652,"children":653},{"style":595},[654],{"type":51,"value":655}," version",{"type":45,"tag":264,"props":657,"children":658},{"style":467},[659],{"type":51,"value":446},{"type":45,"tag":264,"props":661,"children":662},{"style":467},[663],{"type":51,"value":490},{"type":45,"tag":264,"props":665,"children":666},{"style":277},[667],{"type":51,"value":668},"1.0.0",{"type":45,"tag":264,"props":670,"children":671},{"style":467},[672],{"type":51,"value":500},{"type":45,"tag":264,"props":674,"children":675},{"style":467},[676],{"type":51,"value":480},{"type":45,"tag":264,"props":678,"children":679},{"style":298},[680],{"type":51,"value":238},{"type":45,"tag":264,"props":682,"children":683},{"style":467},[684],{"type":51,"value":505},{"type":45,"tag":264,"props":686,"children":688},{"class":266,"line":687},6,[689],{"type":45,"tag":264,"props":690,"children":691},{"emptyLinePlaceholder":552},[692],{"type":51,"value":555},{"type":45,"tag":264,"props":694,"children":696},{"class":266,"line":695},7,[697,702,707,712],{"type":45,"tag":264,"props":698,"children":699},{"style":566},[700],{"type":51,"value":701},"  async",{"type":45,"tag":264,"props":703,"children":704},{"style":595},[705],{"type":51,"value":706}," init",{"type":45,"tag":264,"props":708,"children":709},{"style":467},[710],{"type":51,"value":711},"()",{"type":45,"tag":264,"props":713,"children":714},{"style":467},[715],{"type":51,"value":588},{"type":45,"tag":264,"props":717,"children":719},{"class":266,"line":718},8,[720],{"type":45,"tag":264,"props":721,"children":723},{"style":722},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[724],{"type":51,"value":725},"    \u002F\u002F Simple tool with parameters\n",{"type":45,"tag":264,"props":727,"children":729},{"class":266,"line":728},9,[730,735,740,744,749],{"type":45,"tag":264,"props":731,"children":732},{"style":467},[733],{"type":51,"value":734},"    this.",{"type":45,"tag":264,"props":736,"children":737},{"style":298},[738],{"type":51,"value":739},"server",{"type":45,"tag":264,"props":741,"children":742},{"style":467},[743],{"type":51,"value":421},{"type":45,"tag":264,"props":745,"children":746},{"style":317},[747],{"type":51,"value":748},"tool",{"type":45,"tag":264,"props":750,"children":751},{"style":595},[752],{"type":51,"value":753},"(\n",{"type":45,"tag":264,"props":755,"children":757},{"class":266,"line":756},10,[758,763,768,772],{"type":45,"tag":264,"props":759,"children":760},{"style":467},[761],{"type":51,"value":762},"      \"",{"type":45,"tag":264,"props":764,"children":765},{"style":277},[766],{"type":51,"value":767},"add",{"type":45,"tag":264,"props":769,"children":770},{"style":467},[771],{"type":51,"value":500},{"type":45,"tag":264,"props":773,"children":774},{"style":467},[775],{"type":51,"value":776},",\n",{"type":45,"tag":264,"props":778,"children":780},{"class":266,"line":779},11,[781,786,791,795,799,803,808,812,816,821,825,829,833,837,842],{"type":45,"tag":264,"props":782,"children":783},{"style":467},[784],{"type":51,"value":785},"      {",{"type":45,"tag":264,"props":787,"children":788},{"style":595},[789],{"type":51,"value":790}," a",{"type":45,"tag":264,"props":792,"children":793},{"style":467},[794],{"type":51,"value":446},{"type":45,"tag":264,"props":796,"children":797},{"style":298},[798],{"type":51,"value":521},{"type":45,"tag":264,"props":800,"children":801},{"style":467},[802],{"type":51,"value":421},{"type":45,"tag":264,"props":804,"children":805},{"style":317},[806],{"type":51,"value":807},"number",{"type":45,"tag":264,"props":809,"children":810},{"style":595},[811],{"type":51,"value":711},{"type":45,"tag":264,"props":813,"children":814},{"style":467},[815],{"type":51,"value":650},{"type":45,"tag":264,"props":817,"children":818},{"style":595},[819],{"type":51,"value":820}," b",{"type":45,"tag":264,"props":822,"children":823},{"style":467},[824],{"type":51,"value":446},{"type":45,"tag":264,"props":826,"children":827},{"style":298},[828],{"type":51,"value":521},{"type":45,"tag":264,"props":830,"children":831},{"style":467},[832],{"type":51,"value":421},{"type":45,"tag":264,"props":834,"children":835},{"style":317},[836],{"type":51,"value":807},{"type":45,"tag":264,"props":838,"children":839},{"style":595},[840],{"type":51,"value":841},"() ",{"type":45,"tag":264,"props":843,"children":844},{"style":467},[845],{"type":51,"value":846},"},\n",{"type":45,"tag":264,"props":848,"children":850},{"class":266,"line":849},12,[851,856,861,866,870,874,879,884,889],{"type":45,"tag":264,"props":852,"children":853},{"style":566},[854],{"type":51,"value":855},"      async",{"type":45,"tag":264,"props":857,"children":858},{"style":467},[859],{"type":51,"value":860}," ({",{"type":45,"tag":264,"props":862,"children":864},{"style":863},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[865],{"type":51,"value":790},{"type":45,"tag":264,"props":867,"children":868},{"style":467},[869],{"type":51,"value":650},{"type":45,"tag":264,"props":871,"children":872},{"style":863},[873],{"type":51,"value":820},{"type":45,"tag":264,"props":875,"children":876},{"style":467},[877],{"type":51,"value":878}," })",{"type":45,"tag":264,"props":880,"children":881},{"style":566},[882],{"type":51,"value":883}," =>",{"type":45,"tag":264,"props":885,"children":886},{"style":595},[887],{"type":51,"value":888}," (",{"type":45,"tag":264,"props":890,"children":891},{"style":467},[892],{"type":51,"value":893},"{\n",{"type":45,"tag":264,"props":895,"children":897},{"class":266,"line":896},13,[898,903,907,912,916,921,925,929,933,937,941,946,950,955,959,963,968,972,977,982,987],{"type":45,"tag":264,"props":899,"children":900},{"style":595},[901],{"type":51,"value":902},"        content",{"type":45,"tag":264,"props":904,"children":905},{"style":467},[906],{"type":51,"value":446},{"type":45,"tag":264,"props":908,"children":909},{"style":595},[910],{"type":51,"value":911}," [",{"type":45,"tag":264,"props":913,"children":914},{"style":467},[915],{"type":51,"value":623},{"type":45,"tag":264,"props":917,"children":918},{"style":595},[919],{"type":51,"value":920}," type",{"type":45,"tag":264,"props":922,"children":923},{"style":467},[924],{"type":51,"value":446},{"type":45,"tag":264,"props":926,"children":927},{"style":467},[928],{"type":51,"value":490},{"type":45,"tag":264,"props":930,"children":931},{"style":277},[932],{"type":51,"value":51},{"type":45,"tag":264,"props":934,"children":935},{"style":467},[936],{"type":51,"value":500},{"type":45,"tag":264,"props":938,"children":939},{"style":467},[940],{"type":51,"value":650},{"type":45,"tag":264,"props":942,"children":943},{"style":595},[944],{"type":51,"value":945}," text",{"type":45,"tag":264,"props":947,"children":948},{"style":467},[949],{"type":51,"value":446},{"type":45,"tag":264,"props":951,"children":952},{"style":317},[953],{"type":51,"value":954}," String",{"type":45,"tag":264,"props":956,"children":957},{"style":595},[958],{"type":51,"value":618},{"type":45,"tag":264,"props":960,"children":961},{"style":298},[962],{"type":51,"value":415},{"type":45,"tag":264,"props":964,"children":965},{"style":467},[966],{"type":51,"value":967}," +",{"type":45,"tag":264,"props":969,"children":970},{"style":298},[971],{"type":51,"value":820},{"type":45,"tag":264,"props":973,"children":974},{"style":595},[975],{"type":51,"value":976},") ",{"type":45,"tag":264,"props":978,"children":979},{"style":467},[980],{"type":51,"value":981},"}",{"type":45,"tag":264,"props":983,"children":984},{"style":595},[985],{"type":51,"value":986},"]",{"type":45,"tag":264,"props":988,"children":989},{"style":467},[990],{"type":51,"value":776},{"type":45,"tag":264,"props":992,"children":994},{"class":266,"line":993},14,[995,1000],{"type":45,"tag":264,"props":996,"children":997},{"style":467},[998],{"type":51,"value":999},"      }",{"type":45,"tag":264,"props":1001,"children":1002},{"style":595},[1003],{"type":51,"value":1004},")\n",{"type":45,"tag":264,"props":1006,"children":1008},{"class":266,"line":1007},15,[1009,1014],{"type":45,"tag":264,"props":1010,"children":1011},{"style":595},[1012],{"type":51,"value":1013},"    )",{"type":45,"tag":264,"props":1015,"children":1016},{"style":467},[1017],{"type":51,"value":505},{"type":45,"tag":264,"props":1019,"children":1021},{"class":266,"line":1020},16,[1022],{"type":45,"tag":264,"props":1023,"children":1024},{"emptyLinePlaceholder":552},[1025],{"type":51,"value":555},{"type":45,"tag":264,"props":1027,"children":1029},{"class":266,"line":1028},17,[1030],{"type":45,"tag":264,"props":1031,"children":1032},{"style":722},[1033],{"type":51,"value":1034},"    \u002F\u002F Tool that calls external API\n",{"type":45,"tag":264,"props":1036,"children":1038},{"class":266,"line":1037},18,[1039,1043,1047,1051,1055],{"type":45,"tag":264,"props":1040,"children":1041},{"style":467},[1042],{"type":51,"value":734},{"type":45,"tag":264,"props":1044,"children":1045},{"style":298},[1046],{"type":51,"value":739},{"type":45,"tag":264,"props":1048,"children":1049},{"style":467},[1050],{"type":51,"value":421},{"type":45,"tag":264,"props":1052,"children":1053},{"style":317},[1054],{"type":51,"value":748},{"type":45,"tag":264,"props":1056,"children":1057},{"style":595},[1058],{"type":51,"value":753},{"type":45,"tag":264,"props":1060,"children":1062},{"class":266,"line":1061},19,[1063,1067,1072,1076],{"type":45,"tag":264,"props":1064,"children":1065},{"style":467},[1066],{"type":51,"value":762},{"type":45,"tag":264,"props":1068,"children":1069},{"style":277},[1070],{"type":51,"value":1071},"get_weather",{"type":45,"tag":264,"props":1073,"children":1074},{"style":467},[1075],{"type":51,"value":500},{"type":45,"tag":264,"props":1077,"children":1078},{"style":467},[1079],{"type":51,"value":776},{"type":45,"tag":264,"props":1081,"children":1083},{"class":266,"line":1082},20,[1084,1088,1093,1097,1101,1105,1110,1114],{"type":45,"tag":264,"props":1085,"children":1086},{"style":467},[1087],{"type":51,"value":785},{"type":45,"tag":264,"props":1089,"children":1090},{"style":595},[1091],{"type":51,"value":1092}," city",{"type":45,"tag":264,"props":1094,"children":1095},{"style":467},[1096],{"type":51,"value":446},{"type":45,"tag":264,"props":1098,"children":1099},{"style":298},[1100],{"type":51,"value":521},{"type":45,"tag":264,"props":1102,"children":1103},{"style":467},[1104],{"type":51,"value":421},{"type":45,"tag":264,"props":1106,"children":1107},{"style":317},[1108],{"type":51,"value":1109},"string",{"type":45,"tag":264,"props":1111,"children":1112},{"style":595},[1113],{"type":51,"value":841},{"type":45,"tag":264,"props":1115,"children":1116},{"style":467},[1117],{"type":51,"value":846},{"type":45,"tag":264,"props":1119,"children":1121},{"class":266,"line":1120},21,[1122,1126,1130,1134,1138,1142],{"type":45,"tag":264,"props":1123,"children":1124},{"style":566},[1125],{"type":51,"value":855},{"type":45,"tag":264,"props":1127,"children":1128},{"style":467},[1129],{"type":51,"value":860},{"type":45,"tag":264,"props":1131,"children":1132},{"style":863},[1133],{"type":51,"value":1092},{"type":45,"tag":264,"props":1135,"children":1136},{"style":467},[1137],{"type":51,"value":878},{"type":45,"tag":264,"props":1139,"children":1140},{"style":566},[1141],{"type":51,"value":883},{"type":45,"tag":264,"props":1143,"children":1144},{"style":467},[1145],{"type":51,"value":588},{"type":45,"tag":264,"props":1147,"children":1149},{"class":266,"line":1148},22,[1150,1155,1160,1164,1169,1174,1178,1183,1188,1193,1198,1203,1207],{"type":45,"tag":264,"props":1151,"children":1152},{"style":566},[1153],{"type":51,"value":1154},"        const",{"type":45,"tag":264,"props":1156,"children":1157},{"style":298},[1158],{"type":51,"value":1159}," response",{"type":45,"tag":264,"props":1161,"children":1162},{"style":467},[1163],{"type":51,"value":603},{"type":45,"tag":264,"props":1165,"children":1166},{"style":461},[1167],{"type":51,"value":1168}," await",{"type":45,"tag":264,"props":1170,"children":1171},{"style":317},[1172],{"type":51,"value":1173}," fetch",{"type":45,"tag":264,"props":1175,"children":1176},{"style":595},[1177],{"type":51,"value":618},{"type":45,"tag":264,"props":1179,"children":1180},{"style":467},[1181],{"type":51,"value":1182},"`",{"type":45,"tag":264,"props":1184,"children":1185},{"style":277},[1186],{"type":51,"value":1187},"https:\u002F\u002Fapi.weather.com\u002F",{"type":45,"tag":264,"props":1189,"children":1190},{"style":467},[1191],{"type":51,"value":1192},"${",{"type":45,"tag":264,"props":1194,"children":1195},{"style":298},[1196],{"type":51,"value":1197},"city",{"type":45,"tag":264,"props":1199,"children":1200},{"style":467},[1201],{"type":51,"value":1202},"}`",{"type":45,"tag":264,"props":1204,"children":1205},{"style":595},[1206],{"type":51,"value":238},{"type":45,"tag":264,"props":1208,"children":1209},{"style":467},[1210],{"type":51,"value":505},{"type":45,"tag":264,"props":1212,"children":1214},{"class":266,"line":1213},23,[1215,1219,1224,1228,1232,1236,1240,1245,1249],{"type":45,"tag":264,"props":1216,"children":1217},{"style":566},[1218],{"type":51,"value":1154},{"type":45,"tag":264,"props":1220,"children":1221},{"style":298},[1222],{"type":51,"value":1223}," data",{"type":45,"tag":264,"props":1225,"children":1226},{"style":467},[1227],{"type":51,"value":603},{"type":45,"tag":264,"props":1229,"children":1230},{"style":461},[1231],{"type":51,"value":1168},{"type":45,"tag":264,"props":1233,"children":1234},{"style":298},[1235],{"type":51,"value":1159},{"type":45,"tag":264,"props":1237,"children":1238},{"style":467},[1239],{"type":51,"value":421},{"type":45,"tag":264,"props":1241,"children":1242},{"style":317},[1243],{"type":51,"value":1244},"json",{"type":45,"tag":264,"props":1246,"children":1247},{"style":595},[1248],{"type":51,"value":711},{"type":45,"tag":264,"props":1250,"children":1251},{"style":467},[1252],{"type":51,"value":505},{"type":45,"tag":264,"props":1254,"children":1256},{"class":266,"line":1255},24,[1257,1262],{"type":45,"tag":264,"props":1258,"children":1259},{"style":461},[1260],{"type":51,"value":1261},"        return",{"type":45,"tag":264,"props":1263,"children":1264},{"style":467},[1265],{"type":51,"value":588},{"type":45,"tag":264,"props":1267,"children":1269},{"class":266,"line":1268},25,[1270,1275,1279,1283,1287,1291,1295,1299,1303,1307,1311,1315,1319,1324,1328,1333,1337,1342,1346,1350,1354],{"type":45,"tag":264,"props":1271,"children":1272},{"style":595},[1273],{"type":51,"value":1274},"          content",{"type":45,"tag":264,"props":1276,"children":1277},{"style":467},[1278],{"type":51,"value":446},{"type":45,"tag":264,"props":1280,"children":1281},{"style":595},[1282],{"type":51,"value":911},{"type":45,"tag":264,"props":1284,"children":1285},{"style":467},[1286],{"type":51,"value":623},{"type":45,"tag":264,"props":1288,"children":1289},{"style":595},[1290],{"type":51,"value":920},{"type":45,"tag":264,"props":1292,"children":1293},{"style":467},[1294],{"type":51,"value":446},{"type":45,"tag":264,"props":1296,"children":1297},{"style":467},[1298],{"type":51,"value":490},{"type":45,"tag":264,"props":1300,"children":1301},{"style":277},[1302],{"type":51,"value":51},{"type":45,"tag":264,"props":1304,"children":1305},{"style":467},[1306],{"type":51,"value":500},{"type":45,"tag":264,"props":1308,"children":1309},{"style":467},[1310],{"type":51,"value":650},{"type":45,"tag":264,"props":1312,"children":1313},{"style":595},[1314],{"type":51,"value":945},{"type":45,"tag":264,"props":1316,"children":1317},{"style":467},[1318],{"type":51,"value":446},{"type":45,"tag":264,"props":1320,"children":1321},{"style":298},[1322],{"type":51,"value":1323}," JSON",{"type":45,"tag":264,"props":1325,"children":1326},{"style":467},[1327],{"type":51,"value":421},{"type":45,"tag":264,"props":1329,"children":1330},{"style":317},[1331],{"type":51,"value":1332},"stringify",{"type":45,"tag":264,"props":1334,"children":1335},{"style":595},[1336],{"type":51,"value":618},{"type":45,"tag":264,"props":1338,"children":1339},{"style":298},[1340],{"type":51,"value":1341},"data",{"type":45,"tag":264,"props":1343,"children":1344},{"style":595},[1345],{"type":51,"value":976},{"type":45,"tag":264,"props":1347,"children":1348},{"style":467},[1349],{"type":51,"value":981},{"type":45,"tag":264,"props":1351,"children":1352},{"style":595},[1353],{"type":51,"value":986},{"type":45,"tag":264,"props":1355,"children":1356},{"style":467},[1357],{"type":51,"value":776},{"type":45,"tag":264,"props":1359,"children":1361},{"class":266,"line":1360},26,[1362],{"type":45,"tag":264,"props":1363,"children":1364},{"style":467},[1365],{"type":51,"value":1366},"        };\n",{"type":45,"tag":264,"props":1368,"children":1370},{"class":266,"line":1369},27,[1371],{"type":45,"tag":264,"props":1372,"children":1373},{"style":467},[1374],{"type":51,"value":1375},"      }\n",{"type":45,"tag":264,"props":1377,"children":1379},{"class":266,"line":1378},28,[1380,1384],{"type":45,"tag":264,"props":1381,"children":1382},{"style":595},[1383],{"type":51,"value":1013},{"type":45,"tag":264,"props":1385,"children":1386},{"style":467},[1387],{"type":51,"value":505},{"type":45,"tag":264,"props":1389,"children":1391},{"class":266,"line":1390},29,[1392],{"type":45,"tag":264,"props":1393,"children":1394},{"style":467},[1395],{"type":51,"value":1396},"  }\n",{"type":45,"tag":264,"props":1398,"children":1400},{"class":266,"line":1399},30,[1401],{"type":45,"tag":264,"props":1402,"children":1403},{"style":467},[1404],{"type":51,"value":1405},"}\n",{"type":45,"tag":246,"props":1407,"children":1409},{"id":1408},"step-2-configure-entry-point",[1410],{"type":51,"value":1411},"Step 2: Configure Entry Point",{"type":45,"tag":54,"props":1413,"children":1414},{},[1415,1420,1421,1427],{"type":45,"tag":60,"props":1416,"children":1417},{},[1418],{"type":51,"value":1419},"Public server",{"type":51,"value":888},{"type":45,"tag":119,"props":1422,"children":1424},{"className":1423},[],[1425],{"type":51,"value":1426},"src\u002Findex.ts",{"type":51,"value":1428},"):",{"type":45,"tag":253,"props":1430,"children":1432},{"className":449,"code":1431,"language":451,"meta":258,"style":258},"import { MyMCP } from \".\u002Fmcp\";\n\nexport default {\n  fetch(request: Request, env: Env, ctx: ExecutionContext) {\n    const url = new URL(request.url);\n    if (url.pathname === \"\u002Fmcp\") {\n      return MyMCP.serveSSE(\"\u002Fmcp\").fetch(request, env, ctx);\n    }\n    return new Response(\"MCP Server\", { status: 200 });\n  },\n};\n\nexport { MyMCP };\n",[1433],{"type":45,"tag":119,"props":1434,"children":1435},{"__ignoreMap":258},[1436,1476,1483,1499,1569,1620,1671,1753,1761,1830,1838,1846,1853],{"type":45,"tag":264,"props":1437,"children":1438},{"class":266,"line":267},[1439,1443,1447,1451,1455,1459,1463,1468,1472],{"type":45,"tag":264,"props":1440,"children":1441},{"style":461},[1442],{"type":51,"value":464},{"type":45,"tag":264,"props":1444,"children":1445},{"style":467},[1446],{"type":51,"value":470},{"type":45,"tag":264,"props":1448,"children":1449},{"style":298},[1450],{"type":51,"value":574},{"type":45,"tag":264,"props":1452,"children":1453},{"style":467},[1454],{"type":51,"value":480},{"type":45,"tag":264,"props":1456,"children":1457},{"style":461},[1458],{"type":51,"value":485},{"type":45,"tag":264,"props":1460,"children":1461},{"style":467},[1462],{"type":51,"value":490},{"type":45,"tag":264,"props":1464,"children":1465},{"style":277},[1466],{"type":51,"value":1467},".\u002Fmcp",{"type":45,"tag":264,"props":1469,"children":1470},{"style":467},[1471],{"type":51,"value":500},{"type":45,"tag":264,"props":1473,"children":1474},{"style":467},[1475],{"type":51,"value":505},{"type":45,"tag":264,"props":1477,"children":1478},{"class":266,"line":304},[1479],{"type":45,"tag":264,"props":1480,"children":1481},{"emptyLinePlaceholder":552},[1482],{"type":51,"value":555},{"type":45,"tag":264,"props":1484,"children":1485},{"class":266,"line":313},[1486,1490,1495],{"type":45,"tag":264,"props":1487,"children":1488},{"style":461},[1489],{"type":51,"value":563},{"type":45,"tag":264,"props":1491,"children":1492},{"style":461},[1493],{"type":51,"value":1494}," default",{"type":45,"tag":264,"props":1496,"children":1497},{"style":467},[1498],{"type":51,"value":588},{"type":45,"tag":264,"props":1500,"children":1501},{"class":266,"line":328},[1502,1507,1511,1516,1520,1525,1529,1534,1538,1543,1547,1552,1556,1561,1565],{"type":45,"tag":264,"props":1503,"children":1504},{"style":595},[1505],{"type":51,"value":1506},"  fetch",{"type":45,"tag":264,"props":1508,"children":1509},{"style":467},[1510],{"type":51,"value":618},{"type":45,"tag":264,"props":1512,"children":1513},{"style":863},[1514],{"type":51,"value":1515},"request",{"type":45,"tag":264,"props":1517,"children":1518},{"style":467},[1519],{"type":51,"value":446},{"type":45,"tag":264,"props":1521,"children":1522},{"style":271},[1523],{"type":51,"value":1524}," Request",{"type":45,"tag":264,"props":1526,"children":1527},{"style":467},[1528],{"type":51,"value":650},{"type":45,"tag":264,"props":1530,"children":1531},{"style":863},[1532],{"type":51,"value":1533}," env",{"type":45,"tag":264,"props":1535,"children":1536},{"style":467},[1537],{"type":51,"value":446},{"type":45,"tag":264,"props":1539,"children":1540},{"style":271},[1541],{"type":51,"value":1542}," Env",{"type":45,"tag":264,"props":1544,"children":1545},{"style":467},[1546],{"type":51,"value":650},{"type":45,"tag":264,"props":1548,"children":1549},{"style":863},[1550],{"type":51,"value":1551}," ctx",{"type":45,"tag":264,"props":1553,"children":1554},{"style":467},[1555],{"type":51,"value":446},{"type":45,"tag":264,"props":1557,"children":1558},{"style":271},[1559],{"type":51,"value":1560}," ExecutionContext",{"type":45,"tag":264,"props":1562,"children":1563},{"style":467},[1564],{"type":51,"value":238},{"type":45,"tag":264,"props":1566,"children":1567},{"style":467},[1568],{"type":51,"value":588},{"type":45,"tag":264,"props":1570,"children":1571},{"class":266,"line":591},[1572,1577,1582,1586,1590,1595,1599,1603,1607,1612,1616],{"type":45,"tag":264,"props":1573,"children":1574},{"style":566},[1575],{"type":51,"value":1576},"    const",{"type":45,"tag":264,"props":1578,"children":1579},{"style":298},[1580],{"type":51,"value":1581}," url",{"type":45,"tag":264,"props":1583,"children":1584},{"style":467},[1585],{"type":51,"value":603},{"type":45,"tag":264,"props":1587,"children":1588},{"style":467},[1589],{"type":51,"value":608},{"type":45,"tag":264,"props":1591,"children":1592},{"style":317},[1593],{"type":51,"value":1594}," URL",{"type":45,"tag":264,"props":1596,"children":1597},{"style":595},[1598],{"type":51,"value":618},{"type":45,"tag":264,"props":1600,"children":1601},{"style":298},[1602],{"type":51,"value":1515},{"type":45,"tag":264,"props":1604,"children":1605},{"style":467},[1606],{"type":51,"value":421},{"type":45,"tag":264,"props":1608,"children":1609},{"style":298},[1610],{"type":51,"value":1611},"url",{"type":45,"tag":264,"props":1613,"children":1614},{"style":595},[1615],{"type":51,"value":238},{"type":45,"tag":264,"props":1617,"children":1618},{"style":467},[1619],{"type":51,"value":505},{"type":45,"tag":264,"props":1621,"children":1622},{"class":266,"line":687},[1623,1628,1632,1636,1640,1645,1650,1654,1659,1663,1667],{"type":45,"tag":264,"props":1624,"children":1625},{"style":461},[1626],{"type":51,"value":1627},"    if",{"type":45,"tag":264,"props":1629,"children":1630},{"style":595},[1631],{"type":51,"value":888},{"type":45,"tag":264,"props":1633,"children":1634},{"style":298},[1635],{"type":51,"value":1611},{"type":45,"tag":264,"props":1637,"children":1638},{"style":467},[1639],{"type":51,"value":421},{"type":45,"tag":264,"props":1641,"children":1642},{"style":298},[1643],{"type":51,"value":1644},"pathname",{"type":45,"tag":264,"props":1646,"children":1647},{"style":467},[1648],{"type":51,"value":1649}," ===",{"type":45,"tag":264,"props":1651,"children":1652},{"style":467},[1653],{"type":51,"value":490},{"type":45,"tag":264,"props":1655,"children":1656},{"style":277},[1657],{"type":51,"value":1658},"\u002Fmcp",{"type":45,"tag":264,"props":1660,"children":1661},{"style":467},[1662],{"type":51,"value":500},{"type":45,"tag":264,"props":1664,"children":1665},{"style":595},[1666],{"type":51,"value":976},{"type":45,"tag":264,"props":1668,"children":1669},{"style":467},[1670],{"type":51,"value":893},{"type":45,"tag":264,"props":1672,"children":1673},{"class":266,"line":695},[1674,1679,1683,1687,1692,1696,1700,1704,1708,1712,1716,1721,1725,1729,1733,1737,1741,1745,1749],{"type":45,"tag":264,"props":1675,"children":1676},{"style":461},[1677],{"type":51,"value":1678},"      return",{"type":45,"tag":264,"props":1680,"children":1681},{"style":298},[1682],{"type":51,"value":574},{"type":45,"tag":264,"props":1684,"children":1685},{"style":467},[1686],{"type":51,"value":421},{"type":45,"tag":264,"props":1688,"children":1689},{"style":317},[1690],{"type":51,"value":1691},"serveSSE",{"type":45,"tag":264,"props":1693,"children":1694},{"style":595},[1695],{"type":51,"value":618},{"type":45,"tag":264,"props":1697,"children":1698},{"style":467},[1699],{"type":51,"value":500},{"type":45,"tag":264,"props":1701,"children":1702},{"style":277},[1703],{"type":51,"value":1658},{"type":45,"tag":264,"props":1705,"children":1706},{"style":467},[1707],{"type":51,"value":500},{"type":45,"tag":264,"props":1709,"children":1710},{"style":595},[1711],{"type":51,"value":238},{"type":45,"tag":264,"props":1713,"children":1714},{"style":467},[1715],{"type":51,"value":421},{"type":45,"tag":264,"props":1717,"children":1718},{"style":317},[1719],{"type":51,"value":1720},"fetch",{"type":45,"tag":264,"props":1722,"children":1723},{"style":595},[1724],{"type":51,"value":618},{"type":45,"tag":264,"props":1726,"children":1727},{"style":298},[1728],{"type":51,"value":1515},{"type":45,"tag":264,"props":1730,"children":1731},{"style":467},[1732],{"type":51,"value":650},{"type":45,"tag":264,"props":1734,"children":1735},{"style":298},[1736],{"type":51,"value":1533},{"type":45,"tag":264,"props":1738,"children":1739},{"style":467},[1740],{"type":51,"value":650},{"type":45,"tag":264,"props":1742,"children":1743},{"style":298},[1744],{"type":51,"value":1551},{"type":45,"tag":264,"props":1746,"children":1747},{"style":595},[1748],{"type":51,"value":238},{"type":45,"tag":264,"props":1750,"children":1751},{"style":467},[1752],{"type":51,"value":505},{"type":45,"tag":264,"props":1754,"children":1755},{"class":266,"line":718},[1756],{"type":45,"tag":264,"props":1757,"children":1758},{"style":467},[1759],{"type":51,"value":1760},"    }\n",{"type":45,"tag":264,"props":1762,"children":1763},{"class":266,"line":728},[1764,1769,1773,1778,1782,1786,1791,1795,1799,1803,1808,1812,1818,1822,1826],{"type":45,"tag":264,"props":1765,"children":1766},{"style":461},[1767],{"type":51,"value":1768},"    return",{"type":45,"tag":264,"props":1770,"children":1771},{"style":467},[1772],{"type":51,"value":608},{"type":45,"tag":264,"props":1774,"children":1775},{"style":317},[1776],{"type":51,"value":1777}," Response",{"type":45,"tag":264,"props":1779,"children":1780},{"style":595},[1781],{"type":51,"value":618},{"type":45,"tag":264,"props":1783,"children":1784},{"style":467},[1785],{"type":51,"value":500},{"type":45,"tag":264,"props":1787,"children":1788},{"style":277},[1789],{"type":51,"value":1790},"MCP Server",{"type":45,"tag":264,"props":1792,"children":1793},{"style":467},[1794],{"type":51,"value":500},{"type":45,"tag":264,"props":1796,"children":1797},{"style":467},[1798],{"type":51,"value":650},{"type":45,"tag":264,"props":1800,"children":1801},{"style":467},[1802],{"type":51,"value":470},{"type":45,"tag":264,"props":1804,"children":1805},{"style":595},[1806],{"type":51,"value":1807}," status",{"type":45,"tag":264,"props":1809,"children":1810},{"style":467},[1811],{"type":51,"value":446},{"type":45,"tag":264,"props":1813,"children":1815},{"style":1814},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1816],{"type":51,"value":1817}," 200",{"type":45,"tag":264,"props":1819,"children":1820},{"style":467},[1821],{"type":51,"value":480},{"type":45,"tag":264,"props":1823,"children":1824},{"style":595},[1825],{"type":51,"value":238},{"type":45,"tag":264,"props":1827,"children":1828},{"style":467},[1829],{"type":51,"value":505},{"type":45,"tag":264,"props":1831,"children":1832},{"class":266,"line":756},[1833],{"type":45,"tag":264,"props":1834,"children":1835},{"style":467},[1836],{"type":51,"value":1837},"  },\n",{"type":45,"tag":264,"props":1839,"children":1840},{"class":266,"line":779},[1841],{"type":45,"tag":264,"props":1842,"children":1843},{"style":467},[1844],{"type":51,"value":1845},"};\n",{"type":45,"tag":264,"props":1847,"children":1848},{"class":266,"line":849},[1849],{"type":45,"tag":264,"props":1850,"children":1851},{"emptyLinePlaceholder":552},[1852],{"type":51,"value":555},{"type":45,"tag":264,"props":1854,"children":1855},{"class":266,"line":896},[1856,1860,1864,1868],{"type":45,"tag":264,"props":1857,"children":1858},{"style":461},[1859],{"type":51,"value":563},{"type":45,"tag":264,"props":1861,"children":1862},{"style":467},[1863],{"type":51,"value":470},{"type":45,"tag":264,"props":1865,"children":1866},{"style":298},[1867],{"type":51,"value":574},{"type":45,"tag":264,"props":1869,"children":1870},{"style":467},[1871],{"type":51,"value":1872}," };\n",{"type":45,"tag":54,"props":1874,"children":1875},{},[1876,1881,1883,1887],{"type":45,"tag":60,"props":1877,"children":1878},{},[1879],{"type":51,"value":1880},"Authenticated server",{"type":51,"value":1882}," — See ",{"type":45,"tag":415,"props":1884,"children":1885},{"href":417},[1886],{"type":51,"value":417},{"type":51,"value":421},{"type":45,"tag":246,"props":1889,"children":1891},{"id":1890},"step-3-test-locally",[1892],{"type":51,"value":1893},"Step 3: Test Locally",{"type":45,"tag":253,"props":1895,"children":1897},{"className":255,"code":1896,"language":257,"meta":258,"style":258},"# Start server\nnpm start\n\n# In another terminal, test with MCP Inspector\nnpx @modelcontextprotocol\u002Finspector@latest\n# Open http:\u002F\u002Flocalhost:5173, enter http:\u002F\u002Flocalhost:8788\u002Fmcp\n",[1898],{"type":45,"tag":119,"props":1899,"children":1900},{"__ignoreMap":258},[1901,1909,1920,1927,1935,1948],{"type":45,"tag":264,"props":1902,"children":1903},{"class":266,"line":267},[1904],{"type":45,"tag":264,"props":1905,"children":1906},{"style":722},[1907],{"type":51,"value":1908},"# Start server\n",{"type":45,"tag":264,"props":1910,"children":1911},{"class":266,"line":304},[1912,1916],{"type":45,"tag":264,"props":1913,"children":1914},{"style":271},[1915],{"type":51,"value":274},{"type":45,"tag":264,"props":1917,"children":1918},{"style":277},[1919],{"type":51,"value":338},{"type":45,"tag":264,"props":1921,"children":1922},{"class":266,"line":313},[1923],{"type":45,"tag":264,"props":1924,"children":1925},{"emptyLinePlaceholder":552},[1926],{"type":51,"value":555},{"type":45,"tag":264,"props":1928,"children":1929},{"class":266,"line":328},[1930],{"type":45,"tag":264,"props":1931,"children":1932},{"style":722},[1933],{"type":51,"value":1934},"# In another terminal, test with MCP Inspector\n",{"type":45,"tag":264,"props":1936,"children":1937},{"class":266,"line":591},[1938,1943],{"type":45,"tag":264,"props":1939,"children":1940},{"style":271},[1941],{"type":51,"value":1942},"npx",{"type":45,"tag":264,"props":1944,"children":1945},{"style":277},[1946],{"type":51,"value":1947}," @modelcontextprotocol\u002Finspector@latest\n",{"type":45,"tag":264,"props":1949,"children":1950},{"class":266,"line":687},[1951],{"type":45,"tag":264,"props":1952,"children":1953},{"style":722},[1954],{"type":51,"value":1955},"# Open http:\u002F\u002Flocalhost:5173, enter http:\u002F\u002Flocalhost:8788\u002Fmcp\n",{"type":45,"tag":246,"props":1957,"children":1959},{"id":1958},"step-4-deploy",[1960],{"type":51,"value":1961},"Step 4: Deploy",{"type":45,"tag":253,"props":1963,"children":1965},{"className":255,"code":1964,"language":257,"meta":258,"style":258},"npx wrangler deploy\n",[1966],{"type":45,"tag":119,"props":1967,"children":1968},{"__ignoreMap":258},[1969],{"type":45,"tag":264,"props":1970,"children":1971},{"class":266,"line":267},[1972,1976,1981],{"type":45,"tag":264,"props":1973,"children":1974},{"style":271},[1975],{"type":51,"value":1942},{"type":45,"tag":264,"props":1977,"children":1978},{"style":277},[1979],{"type":51,"value":1980}," wrangler",{"type":45,"tag":264,"props":1982,"children":1983},{"style":277},[1984],{"type":51,"value":1985}," deploy\n",{"type":45,"tag":54,"props":1987,"children":1988},{},[1989,1991],{"type":51,"value":1990},"Server accessible at ",{"type":45,"tag":119,"props":1992,"children":1994},{"className":1993},[],[1995],{"type":51,"value":1996},"https:\u002F\u002F[worker-name].[account].workers.dev\u002Fmcp",{"type":45,"tag":246,"props":1998,"children":2000},{"id":1999},"step-5-connect-clients",[2001],{"type":51,"value":2002},"Step 5: Connect Clients",{"type":45,"tag":54,"props":2004,"children":2005},{},[2006],{"type":45,"tag":60,"props":2007,"children":2008},{},[2009],{"type":51,"value":2010},"Codex MCP client setup:",{"type":45,"tag":253,"props":2012,"children":2014},{"className":255,"code":2013,"language":257,"meta":258,"style":258},"codex mcp add my-server -- npx mcp-remote https:\u002F\u002Fmy-mcp.workers.dev\u002Fmcp\n",[2015],{"type":45,"tag":119,"props":2016,"children":2017},{"__ignoreMap":258},[2018],{"type":45,"tag":264,"props":2019,"children":2020},{"class":266,"line":267},[2021,2026,2031,2036,2041,2045,2050,2055],{"type":45,"tag":264,"props":2022,"children":2023},{"style":271},[2024],{"type":51,"value":2025},"codex",{"type":45,"tag":264,"props":2027,"children":2028},{"style":277},[2029],{"type":51,"value":2030}," mcp",{"type":45,"tag":264,"props":2032,"children":2033},{"style":277},[2034],{"type":51,"value":2035}," add",{"type":45,"tag":264,"props":2037,"children":2038},{"style":277},[2039],{"type":51,"value":2040}," my-server",{"type":45,"tag":264,"props":2042,"children":2043},{"style":277},[2044],{"type":51,"value":290},{"type":45,"tag":264,"props":2046,"children":2047},{"style":277},[2048],{"type":51,"value":2049}," npx",{"type":45,"tag":264,"props":2051,"children":2052},{"style":277},[2053],{"type":51,"value":2054}," mcp-remote",{"type":45,"tag":264,"props":2056,"children":2057},{"style":277},[2058],{"type":51,"value":2059}," https:\u002F\u002Fmy-mcp.workers.dev\u002Fmcp\n",{"type":45,"tag":54,"props":2061,"children":2062},{},[2063],{"type":51,"value":2064},"Restart Codex after updating the MCP configuration.",{"type":45,"tag":68,"props":2066,"children":2068},{"id":2067},"tool-patterns",[2069],{"type":51,"value":2070},"Tool Patterns",{"type":45,"tag":246,"props":2072,"children":2074},{"id":2073},"return-types",[2075],{"type":51,"value":2076},"Return Types",{"type":45,"tag":253,"props":2078,"children":2080},{"className":449,"code":2079,"language":451,"meta":258,"style":258},"\u002F\u002F Text response\nreturn { content: [{ type: \"text\", text: \"result\" }] };\n\n\u002F\u002F Multiple content items\nreturn {\n  content: [\n    { type: \"text\", text: \"Here's the data:\" },\n    { type: \"text\", text: JSON.stringify(data, null, 2) },\n  ],\n};\n",[2081],{"type":45,"tag":119,"props":2082,"children":2083},{"__ignoreMap":258},[2084,2092,2179,2186,2194,2205,2222,2280,2358,2370],{"type":45,"tag":264,"props":2085,"children":2086},{"class":266,"line":267},[2087],{"type":45,"tag":264,"props":2088,"children":2089},{"style":722},[2090],{"type":51,"value":2091},"\u002F\u002F Text response\n",{"type":45,"tag":264,"props":2093,"children":2094},{"class":266,"line":304},[2095,2100,2104,2109,2113,2117,2121,2125,2129,2133,2137,2141,2145,2149,2153,2157,2162,2166,2170,2175],{"type":45,"tag":264,"props":2096,"children":2097},{"style":461},[2098],{"type":51,"value":2099},"return",{"type":45,"tag":264,"props":2101,"children":2102},{"style":467},[2103],{"type":51,"value":470},{"type":45,"tag":264,"props":2105,"children":2106},{"style":595},[2107],{"type":51,"value":2108}," content",{"type":45,"tag":264,"props":2110,"children":2111},{"style":467},[2112],{"type":51,"value":446},{"type":45,"tag":264,"props":2114,"children":2115},{"style":298},[2116],{"type":51,"value":911},{"type":45,"tag":264,"props":2118,"children":2119},{"style":467},[2120],{"type":51,"value":623},{"type":45,"tag":264,"props":2122,"children":2123},{"style":595},[2124],{"type":51,"value":920},{"type":45,"tag":264,"props":2126,"children":2127},{"style":467},[2128],{"type":51,"value":446},{"type":45,"tag":264,"props":2130,"children":2131},{"style":467},[2132],{"type":51,"value":490},{"type":45,"tag":264,"props":2134,"children":2135},{"style":277},[2136],{"type":51,"value":51},{"type":45,"tag":264,"props":2138,"children":2139},{"style":467},[2140],{"type":51,"value":500},{"type":45,"tag":264,"props":2142,"children":2143},{"style":467},[2144],{"type":51,"value":650},{"type":45,"tag":264,"props":2146,"children":2147},{"style":595},[2148],{"type":51,"value":945},{"type":45,"tag":264,"props":2150,"children":2151},{"style":467},[2152],{"type":51,"value":446},{"type":45,"tag":264,"props":2154,"children":2155},{"style":467},[2156],{"type":51,"value":490},{"type":45,"tag":264,"props":2158,"children":2159},{"style":277},[2160],{"type":51,"value":2161},"result",{"type":45,"tag":264,"props":2163,"children":2164},{"style":467},[2165],{"type":51,"value":500},{"type":45,"tag":264,"props":2167,"children":2168},{"style":467},[2169],{"type":51,"value":480},{"type":45,"tag":264,"props":2171,"children":2172},{"style":298},[2173],{"type":51,"value":2174},"] ",{"type":45,"tag":264,"props":2176,"children":2177},{"style":467},[2178],{"type":51,"value":1845},{"type":45,"tag":264,"props":2180,"children":2181},{"class":266,"line":313},[2182],{"type":45,"tag":264,"props":2183,"children":2184},{"emptyLinePlaceholder":552},[2185],{"type":51,"value":555},{"type":45,"tag":264,"props":2187,"children":2188},{"class":266,"line":328},[2189],{"type":45,"tag":264,"props":2190,"children":2191},{"style":722},[2192],{"type":51,"value":2193},"\u002F\u002F Multiple content items\n",{"type":45,"tag":264,"props":2195,"children":2196},{"class":266,"line":591},[2197,2201],{"type":45,"tag":264,"props":2198,"children":2199},{"style":461},[2200],{"type":51,"value":2099},{"type":45,"tag":264,"props":2202,"children":2203},{"style":467},[2204],{"type":51,"value":588},{"type":45,"tag":264,"props":2206,"children":2207},{"class":266,"line":687},[2208,2213,2217],{"type":45,"tag":264,"props":2209,"children":2210},{"style":595},[2211],{"type":51,"value":2212},"  content",{"type":45,"tag":264,"props":2214,"children":2215},{"style":467},[2216],{"type":51,"value":446},{"type":45,"tag":264,"props":2218,"children":2219},{"style":298},[2220],{"type":51,"value":2221}," [\n",{"type":45,"tag":264,"props":2223,"children":2224},{"class":266,"line":695},[2225,2230,2234,2238,2242,2246,2250,2254,2258,2262,2266,2271,2275],{"type":45,"tag":264,"props":2226,"children":2227},{"style":467},[2228],{"type":51,"value":2229},"    {",{"type":45,"tag":264,"props":2231,"children":2232},{"style":595},[2233],{"type":51,"value":920},{"type":45,"tag":264,"props":2235,"children":2236},{"style":467},[2237],{"type":51,"value":446},{"type":45,"tag":264,"props":2239,"children":2240},{"style":467},[2241],{"type":51,"value":490},{"type":45,"tag":264,"props":2243,"children":2244},{"style":277},[2245],{"type":51,"value":51},{"type":45,"tag":264,"props":2247,"children":2248},{"style":467},[2249],{"type":51,"value":500},{"type":45,"tag":264,"props":2251,"children":2252},{"style":467},[2253],{"type":51,"value":650},{"type":45,"tag":264,"props":2255,"children":2256},{"style":595},[2257],{"type":51,"value":945},{"type":45,"tag":264,"props":2259,"children":2260},{"style":467},[2261],{"type":51,"value":446},{"type":45,"tag":264,"props":2263,"children":2264},{"style":467},[2265],{"type":51,"value":490},{"type":45,"tag":264,"props":2267,"children":2268},{"style":277},[2269],{"type":51,"value":2270},"Here's the data:",{"type":45,"tag":264,"props":2272,"children":2273},{"style":467},[2274],{"type":51,"value":500},{"type":45,"tag":264,"props":2276,"children":2277},{"style":467},[2278],{"type":51,"value":2279}," },\n",{"type":45,"tag":264,"props":2281,"children":2282},{"class":266,"line":718},[2283,2287,2291,2295,2299,2303,2307,2311,2315,2319,2323,2327,2331,2336,2340,2345,2350,2354],{"type":45,"tag":264,"props":2284,"children":2285},{"style":467},[2286],{"type":51,"value":2229},{"type":45,"tag":264,"props":2288,"children":2289},{"style":595},[2290],{"type":51,"value":920},{"type":45,"tag":264,"props":2292,"children":2293},{"style":467},[2294],{"type":51,"value":446},{"type":45,"tag":264,"props":2296,"children":2297},{"style":467},[2298],{"type":51,"value":490},{"type":45,"tag":264,"props":2300,"children":2301},{"style":277},[2302],{"type":51,"value":51},{"type":45,"tag":264,"props":2304,"children":2305},{"style":467},[2306],{"type":51,"value":500},{"type":45,"tag":264,"props":2308,"children":2309},{"style":467},[2310],{"type":51,"value":650},{"type":45,"tag":264,"props":2312,"children":2313},{"style":595},[2314],{"type":51,"value":945},{"type":45,"tag":264,"props":2316,"children":2317},{"style":467},[2318],{"type":51,"value":446},{"type":45,"tag":264,"props":2320,"children":2321},{"style":298},[2322],{"type":51,"value":1323},{"type":45,"tag":264,"props":2324,"children":2325},{"style":467},[2326],{"type":51,"value":421},{"type":45,"tag":264,"props":2328,"children":2329},{"style":317},[2330],{"type":51,"value":1332},{"type":45,"tag":264,"props":2332,"children":2333},{"style":298},[2334],{"type":51,"value":2335},"(data",{"type":45,"tag":264,"props":2337,"children":2338},{"style":467},[2339],{"type":51,"value":650},{"type":45,"tag":264,"props":2341,"children":2342},{"style":467},[2343],{"type":51,"value":2344}," null,",{"type":45,"tag":264,"props":2346,"children":2347},{"style":1814},[2348],{"type":51,"value":2349}," 2",{"type":45,"tag":264,"props":2351,"children":2352},{"style":298},[2353],{"type":51,"value":976},{"type":45,"tag":264,"props":2355,"children":2356},{"style":467},[2357],{"type":51,"value":846},{"type":45,"tag":264,"props":2359,"children":2360},{"class":266,"line":728},[2361,2366],{"type":45,"tag":264,"props":2362,"children":2363},{"style":298},[2364],{"type":51,"value":2365},"  ]",{"type":45,"tag":264,"props":2367,"children":2368},{"style":467},[2369],{"type":51,"value":776},{"type":45,"tag":264,"props":2371,"children":2372},{"class":266,"line":756},[2373],{"type":45,"tag":264,"props":2374,"children":2375},{"style":467},[2376],{"type":51,"value":1845},{"type":45,"tag":246,"props":2378,"children":2380},{"id":2379},"input-validation-with-zod",[2381],{"type":51,"value":2382},"Input Validation with Zod",{"type":45,"tag":253,"props":2384,"children":2386},{"className":449,"code":2385,"language":451,"meta":258,"style":258},"this.server.tool(\n  \"create_user\",\n  {\n    email: z.string().email(),\n    name: z.string().min(1).max(100),\n    role: z.enum([\"admin\", \"user\", \"guest\"]),\n    age: z.number().int().min(0).optional(),\n  },\n  async (params) => {\n    \u002F\u002F params are fully typed and validated\n  }\n);\n",[2387],{"type":45,"tag":119,"props":2388,"children":2389},{"__ignoreMap":258},[2390,2414,2435,2443,2488,2564,2650,2729,2736,2764,2772,2779],{"type":45,"tag":264,"props":2391,"children":2392},{"class":266,"line":267},[2393,2398,2402,2406,2410],{"type":45,"tag":264,"props":2394,"children":2395},{"style":467},[2396],{"type":51,"value":2397},"this.",{"type":45,"tag":264,"props":2399,"children":2400},{"style":298},[2401],{"type":51,"value":739},{"type":45,"tag":264,"props":2403,"children":2404},{"style":467},[2405],{"type":51,"value":421},{"type":45,"tag":264,"props":2407,"children":2408},{"style":317},[2409],{"type":51,"value":748},{"type":45,"tag":264,"props":2411,"children":2412},{"style":298},[2413],{"type":51,"value":753},{"type":45,"tag":264,"props":2415,"children":2416},{"class":266,"line":304},[2417,2422,2427,2431],{"type":45,"tag":264,"props":2418,"children":2419},{"style":467},[2420],{"type":51,"value":2421},"  \"",{"type":45,"tag":264,"props":2423,"children":2424},{"style":277},[2425],{"type":51,"value":2426},"create_user",{"type":45,"tag":264,"props":2428,"children":2429},{"style":467},[2430],{"type":51,"value":500},{"type":45,"tag":264,"props":2432,"children":2433},{"style":467},[2434],{"type":51,"value":776},{"type":45,"tag":264,"props":2436,"children":2437},{"class":266,"line":313},[2438],{"type":45,"tag":264,"props":2439,"children":2440},{"style":467},[2441],{"type":51,"value":2442},"  {\n",{"type":45,"tag":264,"props":2444,"children":2445},{"class":266,"line":328},[2446,2451,2455,2459,2463,2467,2471,2475,2480,2484],{"type":45,"tag":264,"props":2447,"children":2448},{"style":595},[2449],{"type":51,"value":2450},"    email",{"type":45,"tag":264,"props":2452,"children":2453},{"style":467},[2454],{"type":51,"value":446},{"type":45,"tag":264,"props":2456,"children":2457},{"style":298},[2458],{"type":51,"value":521},{"type":45,"tag":264,"props":2460,"children":2461},{"style":467},[2462],{"type":51,"value":421},{"type":45,"tag":264,"props":2464,"children":2465},{"style":317},[2466],{"type":51,"value":1109},{"type":45,"tag":264,"props":2468,"children":2469},{"style":298},[2470],{"type":51,"value":711},{"type":45,"tag":264,"props":2472,"children":2473},{"style":467},[2474],{"type":51,"value":421},{"type":45,"tag":264,"props":2476,"children":2477},{"style":317},[2478],{"type":51,"value":2479},"email",{"type":45,"tag":264,"props":2481,"children":2482},{"style":298},[2483],{"type":51,"value":711},{"type":45,"tag":264,"props":2485,"children":2486},{"style":467},[2487],{"type":51,"value":776},{"type":45,"tag":264,"props":2489,"children":2490},{"class":266,"line":591},[2491,2496,2500,2504,2508,2512,2516,2520,2525,2529,2534,2538,2542,2547,2551,2556,2560],{"type":45,"tag":264,"props":2492,"children":2493},{"style":595},[2494],{"type":51,"value":2495},"    name",{"type":45,"tag":264,"props":2497,"children":2498},{"style":467},[2499],{"type":51,"value":446},{"type":45,"tag":264,"props":2501,"children":2502},{"style":298},[2503],{"type":51,"value":521},{"type":45,"tag":264,"props":2505,"children":2506},{"style":467},[2507],{"type":51,"value":421},{"type":45,"tag":264,"props":2509,"children":2510},{"style":317},[2511],{"type":51,"value":1109},{"type":45,"tag":264,"props":2513,"children":2514},{"style":298},[2515],{"type":51,"value":711},{"type":45,"tag":264,"props":2517,"children":2518},{"style":467},[2519],{"type":51,"value":421},{"type":45,"tag":264,"props":2521,"children":2522},{"style":317},[2523],{"type":51,"value":2524},"min",{"type":45,"tag":264,"props":2526,"children":2527},{"style":298},[2528],{"type":51,"value":618},{"type":45,"tag":264,"props":2530,"children":2531},{"style":1814},[2532],{"type":51,"value":2533},"1",{"type":45,"tag":264,"props":2535,"children":2536},{"style":298},[2537],{"type":51,"value":238},{"type":45,"tag":264,"props":2539,"children":2540},{"style":467},[2541],{"type":51,"value":421},{"type":45,"tag":264,"props":2543,"children":2544},{"style":317},[2545],{"type":51,"value":2546},"max",{"type":45,"tag":264,"props":2548,"children":2549},{"style":298},[2550],{"type":51,"value":618},{"type":45,"tag":264,"props":2552,"children":2553},{"style":1814},[2554],{"type":51,"value":2555},"100",{"type":45,"tag":264,"props":2557,"children":2558},{"style":298},[2559],{"type":51,"value":238},{"type":45,"tag":264,"props":2561,"children":2562},{"style":467},[2563],{"type":51,"value":776},{"type":45,"tag":264,"props":2565,"children":2566},{"class":266,"line":687},[2567,2572,2576,2580,2584,2589,2594,2598,2603,2607,2611,2615,2620,2624,2628,2632,2637,2641,2646],{"type":45,"tag":264,"props":2568,"children":2569},{"style":595},[2570],{"type":51,"value":2571},"    role",{"type":45,"tag":264,"props":2573,"children":2574},{"style":467},[2575],{"type":51,"value":446},{"type":45,"tag":264,"props":2577,"children":2578},{"style":298},[2579],{"type":51,"value":521},{"type":45,"tag":264,"props":2581,"children":2582},{"style":467},[2583],{"type":51,"value":421},{"type":45,"tag":264,"props":2585,"children":2586},{"style":317},[2587],{"type":51,"value":2588},"enum",{"type":45,"tag":264,"props":2590,"children":2591},{"style":298},[2592],{"type":51,"value":2593},"([",{"type":45,"tag":264,"props":2595,"children":2596},{"style":467},[2597],{"type":51,"value":500},{"type":45,"tag":264,"props":2599,"children":2600},{"style":277},[2601],{"type":51,"value":2602},"admin",{"type":45,"tag":264,"props":2604,"children":2605},{"style":467},[2606],{"type":51,"value":500},{"type":45,"tag":264,"props":2608,"children":2609},{"style":467},[2610],{"type":51,"value":650},{"type":45,"tag":264,"props":2612,"children":2613},{"style":467},[2614],{"type":51,"value":490},{"type":45,"tag":264,"props":2616,"children":2617},{"style":277},[2618],{"type":51,"value":2619},"user",{"type":45,"tag":264,"props":2621,"children":2622},{"style":467},[2623],{"type":51,"value":500},{"type":45,"tag":264,"props":2625,"children":2626},{"style":467},[2627],{"type":51,"value":650},{"type":45,"tag":264,"props":2629,"children":2630},{"style":467},[2631],{"type":51,"value":490},{"type":45,"tag":264,"props":2633,"children":2634},{"style":277},[2635],{"type":51,"value":2636},"guest",{"type":45,"tag":264,"props":2638,"children":2639},{"style":467},[2640],{"type":51,"value":500},{"type":45,"tag":264,"props":2642,"children":2643},{"style":298},[2644],{"type":51,"value":2645},"])",{"type":45,"tag":264,"props":2647,"children":2648},{"style":467},[2649],{"type":51,"value":776},{"type":45,"tag":264,"props":2651,"children":2652},{"class":266,"line":695},[2653,2658,2662,2666,2670,2674,2678,2682,2687,2691,2695,2699,2703,2708,2712,2716,2721,2725],{"type":45,"tag":264,"props":2654,"children":2655},{"style":595},[2656],{"type":51,"value":2657},"    age",{"type":45,"tag":264,"props":2659,"children":2660},{"style":467},[2661],{"type":51,"value":446},{"type":45,"tag":264,"props":2663,"children":2664},{"style":298},[2665],{"type":51,"value":521},{"type":45,"tag":264,"props":2667,"children":2668},{"style":467},[2669],{"type":51,"value":421},{"type":45,"tag":264,"props":2671,"children":2672},{"style":317},[2673],{"type":51,"value":807},{"type":45,"tag":264,"props":2675,"children":2676},{"style":298},[2677],{"type":51,"value":711},{"type":45,"tag":264,"props":2679,"children":2680},{"style":467},[2681],{"type":51,"value":421},{"type":45,"tag":264,"props":2683,"children":2684},{"style":317},[2685],{"type":51,"value":2686},"int",{"type":45,"tag":264,"props":2688,"children":2689},{"style":298},[2690],{"type":51,"value":711},{"type":45,"tag":264,"props":2692,"children":2693},{"style":467},[2694],{"type":51,"value":421},{"type":45,"tag":264,"props":2696,"children":2697},{"style":317},[2698],{"type":51,"value":2524},{"type":45,"tag":264,"props":2700,"children":2701},{"style":298},[2702],{"type":51,"value":618},{"type":45,"tag":264,"props":2704,"children":2705},{"style":1814},[2706],{"type":51,"value":2707},"0",{"type":45,"tag":264,"props":2709,"children":2710},{"style":298},[2711],{"type":51,"value":238},{"type":45,"tag":264,"props":2713,"children":2714},{"style":467},[2715],{"type":51,"value":421},{"type":45,"tag":264,"props":2717,"children":2718},{"style":317},[2719],{"type":51,"value":2720},"optional",{"type":45,"tag":264,"props":2722,"children":2723},{"style":298},[2724],{"type":51,"value":711},{"type":45,"tag":264,"props":2726,"children":2727},{"style":467},[2728],{"type":51,"value":776},{"type":45,"tag":264,"props":2730,"children":2731},{"class":266,"line":718},[2732],{"type":45,"tag":264,"props":2733,"children":2734},{"style":467},[2735],{"type":51,"value":1837},{"type":45,"tag":264,"props":2737,"children":2738},{"class":266,"line":728},[2739,2743,2747,2752,2756,2760],{"type":45,"tag":264,"props":2740,"children":2741},{"style":566},[2742],{"type":51,"value":701},{"type":45,"tag":264,"props":2744,"children":2745},{"style":467},[2746],{"type":51,"value":888},{"type":45,"tag":264,"props":2748,"children":2749},{"style":863},[2750],{"type":51,"value":2751},"params",{"type":45,"tag":264,"props":2753,"children":2754},{"style":467},[2755],{"type":51,"value":238},{"type":45,"tag":264,"props":2757,"children":2758},{"style":566},[2759],{"type":51,"value":883},{"type":45,"tag":264,"props":2761,"children":2762},{"style":467},[2763],{"type":51,"value":588},{"type":45,"tag":264,"props":2765,"children":2766},{"class":266,"line":756},[2767],{"type":45,"tag":264,"props":2768,"children":2769},{"style":722},[2770],{"type":51,"value":2771},"    \u002F\u002F params are fully typed and validated\n",{"type":45,"tag":264,"props":2773,"children":2774},{"class":266,"line":779},[2775],{"type":45,"tag":264,"props":2776,"children":2777},{"style":467},[2778],{"type":51,"value":1396},{"type":45,"tag":264,"props":2780,"children":2781},{"class":266,"line":849},[2782,2786],{"type":45,"tag":264,"props":2783,"children":2784},{"style":298},[2785],{"type":51,"value":238},{"type":45,"tag":264,"props":2787,"children":2788},{"style":467},[2789],{"type":51,"value":505},{"type":45,"tag":246,"props":2791,"children":2793},{"id":2792},"accessing-environmentbindings",[2794],{"type":51,"value":2795},"Accessing Environment\u002FBindings",{"type":45,"tag":253,"props":2797,"children":2799},{"className":449,"code":2798,"language":451,"meta":258,"style":258},"export class MyMCP extends McpAgent\u003CEnv> {\n  async init() {\n    this.server.tool(\"query_db\", { sql: z.string() }, async ({ sql }) => {\n      \u002F\u002F Access D1 binding\n      const result = await this.env.DB.prepare(sql).all();\n      return { content: [{ type: \"text\", text: JSON.stringify(result) }] };\n    });\n  }\n}\n",[2800],{"type":45,"tag":119,"props":2801,"children":2802},{"__ignoreMap":258},[2803,2845,2864,2963,2971,3050,3145,3161,3168],{"type":45,"tag":264,"props":2804,"children":2805},{"class":266,"line":267},[2806,2810,2814,2818,2822,2826,2831,2836,2841],{"type":45,"tag":264,"props":2807,"children":2808},{"style":461},[2809],{"type":51,"value":563},{"type":45,"tag":264,"props":2811,"children":2812},{"style":566},[2813],{"type":51,"value":569},{"type":45,"tag":264,"props":2815,"children":2816},{"style":271},[2817],{"type":51,"value":574},{"type":45,"tag":264,"props":2819,"children":2820},{"style":566},[2821],{"type":51,"value":579},{"type":45,"tag":264,"props":2823,"children":2824},{"style":271},[2825],{"type":51,"value":475},{"type":45,"tag":264,"props":2827,"children":2828},{"style":467},[2829],{"type":51,"value":2830},"\u003C",{"type":45,"tag":264,"props":2832,"children":2833},{"style":271},[2834],{"type":51,"value":2835},"Env",{"type":45,"tag":264,"props":2837,"children":2838},{"style":467},[2839],{"type":51,"value":2840},">",{"type":45,"tag":264,"props":2842,"children":2843},{"style":467},[2844],{"type":51,"value":588},{"type":45,"tag":264,"props":2846,"children":2847},{"class":266,"line":304},[2848,2852,2856,2860],{"type":45,"tag":264,"props":2849,"children":2850},{"style":566},[2851],{"type":51,"value":701},{"type":45,"tag":264,"props":2853,"children":2854},{"style":595},[2855],{"type":51,"value":706},{"type":45,"tag":264,"props":2857,"children":2858},{"style":467},[2859],{"type":51,"value":711},{"type":45,"tag":264,"props":2861,"children":2862},{"style":467},[2863],{"type":51,"value":588},{"type":45,"tag":264,"props":2865,"children":2866},{"class":266,"line":313},[2867,2871,2875,2879,2883,2887,2891,2896,2900,2904,2908,2913,2917,2921,2925,2929,2933,2938,2943,2947,2951,2955,2959],{"type":45,"tag":264,"props":2868,"children":2869},{"style":467},[2870],{"type":51,"value":734},{"type":45,"tag":264,"props":2872,"children":2873},{"style":298},[2874],{"type":51,"value":739},{"type":45,"tag":264,"props":2876,"children":2877},{"style":467},[2878],{"type":51,"value":421},{"type":45,"tag":264,"props":2880,"children":2881},{"style":317},[2882],{"type":51,"value":748},{"type":45,"tag":264,"props":2884,"children":2885},{"style":595},[2886],{"type":51,"value":618},{"type":45,"tag":264,"props":2888,"children":2889},{"style":467},[2890],{"type":51,"value":500},{"type":45,"tag":264,"props":2892,"children":2893},{"style":277},[2894],{"type":51,"value":2895},"query_db",{"type":45,"tag":264,"props":2897,"children":2898},{"style":467},[2899],{"type":51,"value":500},{"type":45,"tag":264,"props":2901,"children":2902},{"style":467},[2903],{"type":51,"value":650},{"type":45,"tag":264,"props":2905,"children":2906},{"style":467},[2907],{"type":51,"value":470},{"type":45,"tag":264,"props":2909,"children":2910},{"style":595},[2911],{"type":51,"value":2912}," sql",{"type":45,"tag":264,"props":2914,"children":2915},{"style":467},[2916],{"type":51,"value":446},{"type":45,"tag":264,"props":2918,"children":2919},{"style":298},[2920],{"type":51,"value":521},{"type":45,"tag":264,"props":2922,"children":2923},{"style":467},[2924],{"type":51,"value":421},{"type":45,"tag":264,"props":2926,"children":2927},{"style":317},[2928],{"type":51,"value":1109},{"type":45,"tag":264,"props":2930,"children":2931},{"style":595},[2932],{"type":51,"value":841},{"type":45,"tag":264,"props":2934,"children":2935},{"style":467},[2936],{"type":51,"value":2937},"},",{"type":45,"tag":264,"props":2939,"children":2940},{"style":566},[2941],{"type":51,"value":2942}," async",{"type":45,"tag":264,"props":2944,"children":2945},{"style":467},[2946],{"type":51,"value":860},{"type":45,"tag":264,"props":2948,"children":2949},{"style":863},[2950],{"type":51,"value":2912},{"type":45,"tag":264,"props":2952,"children":2953},{"style":467},[2954],{"type":51,"value":878},{"type":45,"tag":264,"props":2956,"children":2957},{"style":566},[2958],{"type":51,"value":883},{"type":45,"tag":264,"props":2960,"children":2961},{"style":467},[2962],{"type":51,"value":588},{"type":45,"tag":264,"props":2964,"children":2965},{"class":266,"line":328},[2966],{"type":45,"tag":264,"props":2967,"children":2968},{"style":722},[2969],{"type":51,"value":2970},"      \u002F\u002F Access D1 binding\n",{"type":45,"tag":264,"props":2972,"children":2973},{"class":266,"line":591},[2974,2979,2984,2988,2992,2997,3002,3006,3011,3015,3020,3024,3029,3033,3037,3042,3046],{"type":45,"tag":264,"props":2975,"children":2976},{"style":566},[2977],{"type":51,"value":2978},"      const",{"type":45,"tag":264,"props":2980,"children":2981},{"style":298},[2982],{"type":51,"value":2983}," result",{"type":45,"tag":264,"props":2985,"children":2986},{"style":467},[2987],{"type":51,"value":603},{"type":45,"tag":264,"props":2989,"children":2990},{"style":461},[2991],{"type":51,"value":1168},{"type":45,"tag":264,"props":2993,"children":2994},{"style":467},[2995],{"type":51,"value":2996}," this.",{"type":45,"tag":264,"props":2998,"children":2999},{"style":298},[3000],{"type":51,"value":3001},"env",{"type":45,"tag":264,"props":3003,"children":3004},{"style":467},[3005],{"type":51,"value":421},{"type":45,"tag":264,"props":3007,"children":3008},{"style":298},[3009],{"type":51,"value":3010},"DB",{"type":45,"tag":264,"props":3012,"children":3013},{"style":467},[3014],{"type":51,"value":421},{"type":45,"tag":264,"props":3016,"children":3017},{"style":317},[3018],{"type":51,"value":3019},"prepare",{"type":45,"tag":264,"props":3021,"children":3022},{"style":595},[3023],{"type":51,"value":618},{"type":45,"tag":264,"props":3025,"children":3026},{"style":298},[3027],{"type":51,"value":3028},"sql",{"type":45,"tag":264,"props":3030,"children":3031},{"style":595},[3032],{"type":51,"value":238},{"type":45,"tag":264,"props":3034,"children":3035},{"style":467},[3036],{"type":51,"value":421},{"type":45,"tag":264,"props":3038,"children":3039},{"style":317},[3040],{"type":51,"value":3041},"all",{"type":45,"tag":264,"props":3043,"children":3044},{"style":595},[3045],{"type":51,"value":711},{"type":45,"tag":264,"props":3047,"children":3048},{"style":467},[3049],{"type":51,"value":505},{"type":45,"tag":264,"props":3051,"children":3052},{"class":266,"line":687},[3053,3057,3061,3065,3069,3073,3077,3081,3085,3089,3093,3097,3101,3105,3109,3113,3117,3121,3125,3129,3133,3137,3141],{"type":45,"tag":264,"props":3054,"children":3055},{"style":461},[3056],{"type":51,"value":1678},{"type":45,"tag":264,"props":3058,"children":3059},{"style":467},[3060],{"type":51,"value":470},{"type":45,"tag":264,"props":3062,"children":3063},{"style":595},[3064],{"type":51,"value":2108},{"type":45,"tag":264,"props":3066,"children":3067},{"style":467},[3068],{"type":51,"value":446},{"type":45,"tag":264,"props":3070,"children":3071},{"style":595},[3072],{"type":51,"value":911},{"type":45,"tag":264,"props":3074,"children":3075},{"style":467},[3076],{"type":51,"value":623},{"type":45,"tag":264,"props":3078,"children":3079},{"style":595},[3080],{"type":51,"value":920},{"type":45,"tag":264,"props":3082,"children":3083},{"style":467},[3084],{"type":51,"value":446},{"type":45,"tag":264,"props":3086,"children":3087},{"style":467},[3088],{"type":51,"value":490},{"type":45,"tag":264,"props":3090,"children":3091},{"style":277},[3092],{"type":51,"value":51},{"type":45,"tag":264,"props":3094,"children":3095},{"style":467},[3096],{"type":51,"value":500},{"type":45,"tag":264,"props":3098,"children":3099},{"style":467},[3100],{"type":51,"value":650},{"type":45,"tag":264,"props":3102,"children":3103},{"style":595},[3104],{"type":51,"value":945},{"type":45,"tag":264,"props":3106,"children":3107},{"style":467},[3108],{"type":51,"value":446},{"type":45,"tag":264,"props":3110,"children":3111},{"style":298},[3112],{"type":51,"value":1323},{"type":45,"tag":264,"props":3114,"children":3115},{"style":467},[3116],{"type":51,"value":421},{"type":45,"tag":264,"props":3118,"children":3119},{"style":317},[3120],{"type":51,"value":1332},{"type":45,"tag":264,"props":3122,"children":3123},{"style":595},[3124],{"type":51,"value":618},{"type":45,"tag":264,"props":3126,"children":3127},{"style":298},[3128],{"type":51,"value":2161},{"type":45,"tag":264,"props":3130,"children":3131},{"style":595},[3132],{"type":51,"value":976},{"type":45,"tag":264,"props":3134,"children":3135},{"style":467},[3136],{"type":51,"value":981},{"type":45,"tag":264,"props":3138,"children":3139},{"style":595},[3140],{"type":51,"value":2174},{"type":45,"tag":264,"props":3142,"children":3143},{"style":467},[3144],{"type":51,"value":1845},{"type":45,"tag":264,"props":3146,"children":3147},{"class":266,"line":695},[3148,3153,3157],{"type":45,"tag":264,"props":3149,"children":3150},{"style":467},[3151],{"type":51,"value":3152},"    }",{"type":45,"tag":264,"props":3154,"children":3155},{"style":595},[3156],{"type":51,"value":238},{"type":45,"tag":264,"props":3158,"children":3159},{"style":467},[3160],{"type":51,"value":505},{"type":45,"tag":264,"props":3162,"children":3163},{"class":266,"line":718},[3164],{"type":45,"tag":264,"props":3165,"children":3166},{"style":467},[3167],{"type":51,"value":1396},{"type":45,"tag":264,"props":3169,"children":3170},{"class":266,"line":728},[3171],{"type":45,"tag":264,"props":3172,"children":3173},{"style":467},[3174],{"type":51,"value":1405},{"type":45,"tag":68,"props":3176,"children":3178},{"id":3177},"authentication",[3179],{"type":51,"value":3180},"Authentication",{"type":45,"tag":54,"props":3182,"children":3183},{},[3184,3186,3190],{"type":51,"value":3185},"For OAuth-protected servers, see ",{"type":45,"tag":415,"props":3187,"children":3188},{"href":417},[3189],{"type":51,"value":417},{"type":51,"value":421},{"type":45,"tag":54,"props":3192,"children":3193},{},[3194],{"type":51,"value":3195},"Supported providers:",{"type":45,"tag":183,"props":3197,"children":3198},{},[3199,3204,3209,3214,3219,3224],{"type":45,"tag":187,"props":3200,"children":3201},{},[3202],{"type":51,"value":3203},"GitHub",{"type":45,"tag":187,"props":3205,"children":3206},{},[3207],{"type":51,"value":3208},"Google",{"type":45,"tag":187,"props":3210,"children":3211},{},[3212],{"type":51,"value":3213},"Auth0",{"type":45,"tag":187,"props":3215,"children":3216},{},[3217],{"type":51,"value":3218},"Stytch",{"type":45,"tag":187,"props":3220,"children":3221},{},[3222],{"type":51,"value":3223},"WorkOS",{"type":45,"tag":187,"props":3225,"children":3226},{},[3227],{"type":51,"value":3228},"Any OAuth 2.0 compliant provider",{"type":45,"tag":68,"props":3230,"children":3232},{"id":3231},"wrangler-configuration",[3233],{"type":51,"value":3234},"Wrangler Configuration",{"type":45,"tag":54,"props":3236,"children":3237},{},[3238,3240,3246],{"type":51,"value":3239},"Minimal ",{"type":45,"tag":119,"props":3241,"children":3243},{"className":3242},[],[3244],{"type":51,"value":3245},"wrangler.toml",{"type":51,"value":446},{"type":45,"tag":253,"props":3248,"children":3252},{"className":3249,"code":3250,"language":3251,"meta":258,"style":258},"language-toml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","name = \"my-mcp-server\"\nmain = \"src\u002Findex.ts\"\ncompatibility_date = \"2024-12-01\"\n\n[durable_objects]\nbindings = [{ name = \"MCP\", class_name = \"MyMCP\" }]\n\n[[migrations]]\ntag = \"v1\"\nnew_classes = [\"MyMCP\"]\n","toml",[3253],{"type":45,"tag":119,"props":3254,"children":3255},{"__ignoreMap":258},[3256,3264,3272,3280,3287,3295,3303,3310,3318,3326],{"type":45,"tag":264,"props":3257,"children":3258},{"class":266,"line":267},[3259],{"type":45,"tag":264,"props":3260,"children":3261},{},[3262],{"type":51,"value":3263},"name = \"my-mcp-server\"\n",{"type":45,"tag":264,"props":3265,"children":3266},{"class":266,"line":304},[3267],{"type":45,"tag":264,"props":3268,"children":3269},{},[3270],{"type":51,"value":3271},"main = \"src\u002Findex.ts\"\n",{"type":45,"tag":264,"props":3273,"children":3274},{"class":266,"line":313},[3275],{"type":45,"tag":264,"props":3276,"children":3277},{},[3278],{"type":51,"value":3279},"compatibility_date = \"2024-12-01\"\n",{"type":45,"tag":264,"props":3281,"children":3282},{"class":266,"line":328},[3283],{"type":45,"tag":264,"props":3284,"children":3285},{"emptyLinePlaceholder":552},[3286],{"type":51,"value":555},{"type":45,"tag":264,"props":3288,"children":3289},{"class":266,"line":591},[3290],{"type":45,"tag":264,"props":3291,"children":3292},{},[3293],{"type":51,"value":3294},"[durable_objects]\n",{"type":45,"tag":264,"props":3296,"children":3297},{"class":266,"line":687},[3298],{"type":45,"tag":264,"props":3299,"children":3300},{},[3301],{"type":51,"value":3302},"bindings = [{ name = \"MCP\", class_name = \"MyMCP\" }]\n",{"type":45,"tag":264,"props":3304,"children":3305},{"class":266,"line":695},[3306],{"type":45,"tag":264,"props":3307,"children":3308},{"emptyLinePlaceholder":552},[3309],{"type":51,"value":555},{"type":45,"tag":264,"props":3311,"children":3312},{"class":266,"line":718},[3313],{"type":45,"tag":264,"props":3314,"children":3315},{},[3316],{"type":51,"value":3317},"[[migrations]]\n",{"type":45,"tag":264,"props":3319,"children":3320},{"class":266,"line":728},[3321],{"type":45,"tag":264,"props":3322,"children":3323},{},[3324],{"type":51,"value":3325},"tag = \"v1\"\n",{"type":45,"tag":264,"props":3327,"children":3328},{"class":266,"line":756},[3329],{"type":45,"tag":264,"props":3330,"children":3331},{},[3332],{"type":51,"value":3333},"new_classes = [\"MyMCP\"]\n",{"type":45,"tag":54,"props":3335,"children":3336},{},[3337],{"type":51,"value":3338},"With bindings (D1, KV, etc.):",{"type":45,"tag":253,"props":3340,"children":3342},{"className":3249,"code":3341,"language":3251,"meta":258,"style":258},"[[d1_databases]]\nbinding = \"DB\"\ndatabase_name = \"my-db\"\ndatabase_id = \"xxx\"\n\n[[kv_namespaces]]\nbinding = \"KV\"\nid = \"xxx\"\n",[3343],{"type":45,"tag":119,"props":3344,"children":3345},{"__ignoreMap":258},[3346,3354,3362,3370,3378,3385,3393,3401],{"type":45,"tag":264,"props":3347,"children":3348},{"class":266,"line":267},[3349],{"type":45,"tag":264,"props":3350,"children":3351},{},[3352],{"type":51,"value":3353},"[[d1_databases]]\n",{"type":45,"tag":264,"props":3355,"children":3356},{"class":266,"line":304},[3357],{"type":45,"tag":264,"props":3358,"children":3359},{},[3360],{"type":51,"value":3361},"binding = \"DB\"\n",{"type":45,"tag":264,"props":3363,"children":3364},{"class":266,"line":313},[3365],{"type":45,"tag":264,"props":3366,"children":3367},{},[3368],{"type":51,"value":3369},"database_name = \"my-db\"\n",{"type":45,"tag":264,"props":3371,"children":3372},{"class":266,"line":328},[3373],{"type":45,"tag":264,"props":3374,"children":3375},{},[3376],{"type":51,"value":3377},"database_id = \"xxx\"\n",{"type":45,"tag":264,"props":3379,"children":3380},{"class":266,"line":591},[3381],{"type":45,"tag":264,"props":3382,"children":3383},{"emptyLinePlaceholder":552},[3384],{"type":51,"value":555},{"type":45,"tag":264,"props":3386,"children":3387},{"class":266,"line":687},[3388],{"type":45,"tag":264,"props":3389,"children":3390},{},[3391],{"type":51,"value":3392},"[[kv_namespaces]]\n",{"type":45,"tag":264,"props":3394,"children":3395},{"class":266,"line":695},[3396],{"type":45,"tag":264,"props":3397,"children":3398},{},[3399],{"type":51,"value":3400},"binding = \"KV\"\n",{"type":45,"tag":264,"props":3402,"children":3403},{"class":266,"line":718},[3404],{"type":45,"tag":264,"props":3405,"children":3406},{},[3407],{"type":51,"value":3408},"id = \"xxx\"\n",{"type":45,"tag":68,"props":3410,"children":3412},{"id":3411},"common-issues",[3413],{"type":51,"value":3414},"Common Issues",{"type":45,"tag":246,"props":3416,"children":3418},{"id":3417},"tool-not-found-in-client",[3419],{"type":51,"value":3420},"\"Tool not found\" in Client",{"type":45,"tag":3422,"props":3423,"children":3424},"ol",{},[3425,3430,3443],{"type":45,"tag":187,"props":3426,"children":3427},{},[3428],{"type":51,"value":3429},"Verify tool name matches exactly (case-sensitive)",{"type":45,"tag":187,"props":3431,"children":3432},{},[3433,3435,3441],{"type":51,"value":3434},"Ensure ",{"type":45,"tag":119,"props":3436,"children":3438},{"className":3437},[],[3439],{"type":51,"value":3440},"init()",{"type":51,"value":3442}," registers tools before connections",{"type":45,"tag":187,"props":3444,"children":3445},{},[3446,3448],{"type":51,"value":3447},"Check server logs: ",{"type":45,"tag":119,"props":3449,"children":3451},{"className":3450},[],[3452],{"type":51,"value":3453},"wrangler tail",{"type":45,"tag":246,"props":3455,"children":3457},{"id":3456},"connection-fails",[3458],{"type":51,"value":3459},"Connection Fails",{"type":45,"tag":3422,"props":3461,"children":3462},{},[3463,3473,3478],{"type":45,"tag":187,"props":3464,"children":3465},{},[3466,3468],{"type":51,"value":3467},"Confirm endpoint path is ",{"type":45,"tag":119,"props":3469,"children":3471},{"className":3470},[],[3472],{"type":51,"value":1658},{"type":45,"tag":187,"props":3474,"children":3475},{},[3476],{"type":51,"value":3477},"Check CORS if browser-based client",{"type":45,"tag":187,"props":3479,"children":3480},{},[3481,3483],{"type":51,"value":3482},"Verify Worker is deployed: ",{"type":45,"tag":119,"props":3484,"children":3486},{"className":3485},[],[3487],{"type":51,"value":3488},"wrangler deployments list",{"type":45,"tag":246,"props":3490,"children":3492},{"id":3491},"oauth-redirect-errors",[3493],{"type":51,"value":3494},"OAuth Redirect Errors",{"type":45,"tag":3422,"props":3496,"children":3497},{},[3498,3503,3524],{"type":45,"tag":187,"props":3499,"children":3500},{},[3501],{"type":51,"value":3502},"Callback URL must match OAuth app config exactly",{"type":45,"tag":187,"props":3504,"children":3505},{},[3506,3508,3514,3516,3522],{"type":51,"value":3507},"Check ",{"type":45,"tag":119,"props":3509,"children":3511},{"className":3510},[],[3512],{"type":51,"value":3513},"GITHUB_CLIENT_ID",{"type":51,"value":3515}," and ",{"type":45,"tag":119,"props":3517,"children":3519},{"className":3518},[],[3520],{"type":51,"value":3521},"GITHUB_CLIENT_SECRET",{"type":51,"value":3523}," are set",{"type":45,"tag":187,"props":3525,"children":3526},{},[3527,3529],{"type":51,"value":3528},"For local dev, use ",{"type":45,"tag":119,"props":3530,"children":3532},{"className":3531},[],[3533],{"type":51,"value":3534},"http:\u002F\u002Flocalhost:8788\u002Fcallback",{"type":45,"tag":68,"props":3536,"children":3538},{"id":3537},"references",[3539],{"type":51,"value":3540},"References",{"type":45,"tag":183,"props":3542,"children":3543},{},[3544,3554,3563],{"type":45,"tag":187,"props":3545,"children":3546},{},[3547,3552],{"type":45,"tag":415,"props":3548,"children":3550},{"href":3549},"references\u002Fexamples.md",[3551],{"type":51,"value":3549},{"type":51,"value":3553}," — Official templates and production examples",{"type":45,"tag":187,"props":3555,"children":3556},{},[3557,3561],{"type":45,"tag":415,"props":3558,"children":3559},{"href":417},[3560],{"type":51,"value":417},{"type":51,"value":3562}," — OAuth provider configuration",{"type":45,"tag":187,"props":3564,"children":3565},{},[3566,3571],{"type":45,"tag":415,"props":3567,"children":3569},{"href":3568},"references\u002Ftroubleshooting.md",[3570],{"type":51,"value":3568},{"type":51,"value":3572}," — Error codes and fixes",{"type":45,"tag":3574,"props":3575,"children":3576},"style",{},[3577],{"type":51,"value":3578},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3580,"total":3778},[3581,3602,3625,3640,3655,3670,3689,3705,3721,3735,3747,3762],{"slug":3582,"name":3582,"fn":3583,"description":3584,"org":3585,"tags":3586,"stars":3599,"repoUrl":3600,"updatedAt":3601},"prior-auth-packet-builder","build healthcare prior authorization packets","Build a concise prior authorization packet from local case files and payer policy docs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3587,3590,3593,3596],{"name":3588,"slug":3589,"type":15},"Documents","documents",{"name":3591,"slug":3592,"type":15},"Healthcare","healthcare",{"name":3594,"slug":3595,"type":15},"Insurance","insurance",{"name":3597,"slug":3598,"type":15},"Regulatory Compliance","regulatory-compliance",28169,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python","2026-04-16T05:11:39.180399",{"slug":3603,"name":3603,"fn":3604,"description":3605,"org":3606,"tags":3607,"stars":3622,"repoUrl":3623,"updatedAt":3624},"aspnet-core","build ASP.NET Core web applications","Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET Core upgrades.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3608,3611,3613,3616,3619],{"name":3609,"slug":3610,"type":15},".NET","dotnet",{"name":3612,"slug":3603,"type":15},"ASP.NET Core",{"name":3614,"slug":3615,"type":15},"Blazor","blazor",{"name":3617,"slug":3618,"type":15},"C#","csharp",{"name":3620,"slug":3621,"type":15},"Web Development","web-development",23787,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fskills","2026-04-12T05:07:02.819491",{"slug":3626,"name":3626,"fn":3627,"description":3628,"org":3629,"tags":3630,"stars":3622,"repoUrl":3623,"updatedAt":3639},"chatgpt-apps","build ChatGPT Apps SDK applications","Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3631,3634,3637,3638],{"name":3632,"slug":3633,"type":15},"Apps SDK","apps-sdk",{"name":3635,"slug":3636,"type":15},"ChatGPT","chatgpt",{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},"2026-04-12T05:07:05.468097",{"slug":3641,"name":3641,"fn":3642,"description":3643,"org":3644,"tags":3645,"stars":3622,"repoUrl":3623,"updatedAt":3654},"cli-creator","build CLIs from API docs","Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read\u002Fwrite commands, return stable JSON, manage auth, and pair with a companion skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3646,3649,3652],{"name":3647,"slug":3648,"type":15},"API Development","api-development",{"name":3650,"slug":3651,"type":15},"CLI","cli",{"name":3653,"slug":2025,"type":15},"Codex","2026-04-12T05:07:04.132762",{"slug":3656,"name":3656,"fn":3657,"description":3658,"org":3659,"tags":3660,"stars":3622,"repoUrl":3623,"updatedAt":3669},"cloudflare-deploy","deploy projects to Cloudflare","Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3661,3664,3667,3668],{"name":3662,"slug":3663,"type":15},"Cloudflare","cloudflare",{"name":3665,"slug":3666,"type":15},"Cloudflare Pages","cloudflare-pages",{"name":13,"slug":14,"type":15},{"name":20,"slug":21,"type":15},"2026-04-12T05:07:14.275118",{"slug":3671,"name":3671,"fn":3672,"description":3673,"org":3674,"tags":3675,"stars":3622,"repoUrl":3623,"updatedAt":3688},"define-goal","define and set measurable project goals","Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an objective, clarify success criteria, or turn a fuzzy intention into a quantitative outcome. Use this skill for goal creation and goal refinement only; it does not manage durable snapshots, decision logs, or long-running execution artifacts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3676,3679,3682,3685],{"name":3677,"slug":3678,"type":15},"Productivity","productivity",{"name":3680,"slug":3681,"type":15},"Project Management","project-management",{"name":3683,"slug":3684,"type":15},"Strategy","strategy",{"name":3686,"slug":3687,"type":15},"Task Management","task-management","2026-05-23T06:17:16.870838",{"slug":3690,"name":3690,"fn":3691,"description":3692,"org":3693,"tags":3694,"stars":3622,"repoUrl":3623,"updatedAt":3704},"figma","translate Figma designs into code","Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3695,3698,3700,3703],{"name":3696,"slug":3697,"type":15},"Design","design",{"name":3699,"slug":3690,"type":15},"Figma",{"name":3701,"slug":3702,"type":15},"Frontend","frontend",{"name":17,"slug":18,"type":15},"2026-04-12T05:06:47.939943",{"slug":3706,"name":3706,"fn":3707,"description":3708,"org":3709,"tags":3710,"stars":3622,"repoUrl":3623,"updatedAt":3720},"figma-code-connect-components","connect Figma designs to code components","Connects Figma design components to code components using Code Connect mapping tools. Use when user says \"code connect\", \"connect this component to code\", \"map this component\", \"link component to code\", \"create code connect mapping\", or wants to establish mappings between Figma designs and code implementations. For canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3711,3712,3715,3716,3717],{"name":3696,"slug":3697,"type":15},{"name":3713,"slug":3714,"type":15},"Design System","design-system",{"name":3699,"slug":3690,"type":15},{"name":3701,"slug":3702,"type":15},{"name":3718,"slug":3719,"type":15},"UI Components","ui-components","2026-05-10T05:59:52.971881",{"slug":3722,"name":3722,"fn":3723,"description":3724,"org":3725,"tags":3726,"stars":3622,"repoUrl":3623,"updatedAt":3734},"figma-create-design-system-rules","generate design system rules from Figma","Generates custom design system rules for the user's codebase. Use when user says \"create design system rules\", \"generate rules for my project\", \"set up design rules\", \"customize design system guidelines\", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3727,3728,3729,3732,3733],{"name":3696,"slug":3697,"type":15},{"name":3713,"slug":3714,"type":15},{"name":3730,"slug":3731,"type":15},"Documentation","documentation",{"name":3699,"slug":3690,"type":15},{"name":3701,"slug":3702,"type":15},"2026-05-16T06:07:47.821474",{"slug":3736,"name":3736,"fn":3737,"description":3738,"org":3739,"tags":3740,"stars":3622,"repoUrl":3623,"updatedAt":3746},"figma-implement-design","translate Figma designs into application code","Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions \"implement design\", \"generate code\", \"implement component\", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3741,3742,3743,3744,3745],{"name":3696,"slug":3697,"type":15},{"name":3699,"slug":3690,"type":15},{"name":3701,"slug":3702,"type":15},{"name":3718,"slug":3719,"type":15},{"name":3620,"slug":3621,"type":15},"2026-05-16T06:07:40.583615",{"slug":3748,"name":3748,"fn":3749,"description":3750,"org":3751,"tags":3752,"stars":3622,"repoUrl":3623,"updatedAt":3761},"hatch-pet","create animated pets for Codex","Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3753,3756,3757,3760],{"name":3754,"slug":3755,"type":15},"Animation","animation",{"name":3653,"slug":2025,"type":15},{"name":3758,"slug":3759,"type":15},"Creative","creative",{"name":3696,"slug":3697,"type":15},"2026-05-02T05:31:48.48485",{"slug":3763,"name":3763,"fn":3764,"description":3765,"org":3766,"tags":3767,"stars":3622,"repoUrl":3623,"updatedAt":3777},"imagegen","generate and edit raster images","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3768,3769,3770,3773,3776],{"name":3758,"slug":3759,"type":15},{"name":3696,"slug":3697,"type":15},{"name":3771,"slug":3772,"type":15},"Image Generation","image-generation",{"name":3774,"slug":3775,"type":15},"Images","images",{"name":9,"slug":8,"type":15},"2026-05-15T06:23:24.312127",675,{"items":3780,"total":3892},[3781,3798,3814,3826,3842,3860,3880],{"slug":3782,"name":3782,"fn":3783,"description":3784,"org":3785,"tags":3786,"stars":28,"repoUrl":29,"updatedAt":3797},"accessibility-and-inclusive-visualization","make data visualizations accessible","Make data visualizations accessible and inclusive. Use when the user needs chart or diagram accessibility guidance, text alternatives for complex visuals, color and contrast review, keyboard support, reduced-motion behavior for animation or parallax, or an accessibility QA workflow for exported figures, UML-like diagrams, and dashboards.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3787,3790,3793,3796],{"name":3788,"slug":3789,"type":15},"Accessibility","accessibility",{"name":3791,"slug":3792,"type":15},"Charts","charts",{"name":3794,"slug":3795,"type":15},"Data Visualization","data-visualization",{"name":3696,"slug":3697,"type":15},"2026-06-30T19:00:57.102",{"slug":3799,"name":3799,"fn":3800,"description":3801,"org":3802,"tags":3803,"stars":28,"repoUrl":29,"updatedAt":3813},"agent-browser","automate browser interactions for agents","Browser automation CLI for AI agents. Use when the user needs to interact with websites, verify dev server output, test web apps, navigate pages, fill forms, click buttons, take screenshots, extract data, or automate any browser task. Also triggers when a dev server starts so you can verify it visually.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3804,3807,3810],{"name":3805,"slug":3806,"type":15},"Agents","agents",{"name":3808,"slug":3809,"type":15},"Browser Automation","browser-automation",{"name":3811,"slug":3812,"type":15},"Testing","testing","2026-04-06T18:41:03.44016",{"slug":3815,"name":3815,"fn":3816,"description":3817,"org":3818,"tags":3819,"stars":28,"repoUrl":29,"updatedAt":3825},"agent-browser-verify","verify dev server output with automated browser","Automated browser verification for dev servers. Triggers when a dev server starts to run a visual gut-check with agent-browser — verifies the page loads, checks for console errors, validates key UI elements, and reports pass\u002Ffail before continuing.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3820,3821,3824],{"name":3808,"slug":3809,"type":15},{"name":3822,"slug":3823,"type":15},"Local Development","local-development",{"name":3811,"slug":3812,"type":15},"2026-04-06T18:41:17.526867",{"slug":3827,"name":3827,"fn":3828,"description":3829,"org":3830,"tags":3831,"stars":28,"repoUrl":29,"updatedAt":3841},"agents-sdk","build AI agents on Cloudflare Workers","Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3832,3833,3834,3837,3838],{"name":3805,"slug":3806,"type":15},{"name":13,"slug":14,"type":15},{"name":3835,"slug":3836,"type":15},"SDK","sdk",{"name":23,"slug":24,"type":15},{"name":3839,"slug":3840,"type":15},"WebSockets","websockets","2026-04-06T18:39:51.717063",{"slug":3843,"name":3843,"fn":3844,"description":3845,"org":3846,"tags":3847,"stars":28,"repoUrl":29,"updatedAt":3859},"ai-elements","build chat UIs with AI Elements","AI Elements component library guidance — pre-built React components for AI interfaces built on shadcn\u002Fui. Use when building chat UIs, message displays, tool call rendering, streaming responses, reasoning panels, or any AI-native interface with the AI SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3848,3849,3852,3855,3856],{"name":3701,"slug":3702,"type":15},{"name":3850,"slug":3851,"type":15},"React","react",{"name":3853,"slug":3854,"type":15},"shadcn\u002Fui","shadcn-ui",{"name":3718,"slug":3719,"type":15},{"name":3857,"slug":3858,"type":15},"Vercel","vercel","2026-04-06T18:40:59.619419",{"slug":3861,"name":3861,"fn":3862,"description":3863,"org":3864,"tags":3865,"stars":28,"repoUrl":29,"updatedAt":3879},"ai-gateway","configure Vercel AI Gateway","Vercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3866,3869,3872,3875,3878],{"name":3867,"slug":3868,"type":15},"AI Infrastructure","ai-infrastructure",{"name":3870,"slug":3871,"type":15},"Cost Optimization","cost-optimization",{"name":3873,"slug":3874,"type":15},"LLM","llm",{"name":3876,"slug":3877,"type":15},"Performance","performance",{"name":3857,"slug":3858,"type":15},"2026-04-06T18:40:44.377464",{"slug":3881,"name":3881,"fn":3882,"description":3883,"org":3884,"tags":3885,"stars":28,"repoUrl":29,"updatedAt":3891},"ai-generation-persistence","implement persistence patterns for AI generations","AI generation persistence patterns — unique IDs, addressable URLs, database storage, and cost tracking for every LLM generation",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3886,3887,3890],{"name":3870,"slug":3871,"type":15},{"name":3888,"slug":3889,"type":15},"Database","database",{"name":3873,"slug":3874,"type":15},"2026-04-06T18:41:08.513425",600]