Skip to main content
Glama
deployment_cloudflare-workers.md.D2WHsfep.js2.81 kB
import{_ as a,c as s,o as n,a6 as o}from"./chunks/framework.CHl2ywxc.js";const h=JSON.parse('{"title":"Deploy on Cloudflare Workers","description":"","frontmatter":{},"headers":[],"relativePath":"deployment/cloudflare-workers.md","filePath":"deployment/cloudflare-workers.md","lastUpdated":1755281500000}'),t={name:"deployment/cloudflare-workers.md"};function l(p,e,r,d,i,c){return n(),s("div",null,e[0]||(e[0]=[o(`<h1 id="deploy-on-cloudflare-workers" tabindex="-1">Deploy on Cloudflare Workers <a class="header-anchor" href="#deploy-on-cloudflare-workers" aria-label="Permalink to &quot;Deploy on Cloudflare Workers&quot;">​</a></h1><p>Configuration lives in <code>deploy/cloudflare/wrangler.toml</code>.</p><h2 id="setup" tabindex="-1">Setup <a class="header-anchor" href="#setup" aria-label="Permalink to &quot;Setup&quot;">​</a></h2><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>wrangler whoami</span></span> <span class="line"><span>wrangler login</span></span></code></pre></div><p>Set secrets:</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>wrangler secret put TOKEN_ENC_KEY</span></span> <span class="line"><span># Optional provider secrets as needed</span></span></code></pre></div><p>Bind KV for token persistence (optional but recommended):</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>wrangler kv:namespace create TOKENS</span></span> <span class="line"><span># Add binding to wrangler.toml and your environments</span></span></code></pre></div><h2 id="dev-and-deploy" tabindex="-1">Dev and Deploy <a class="header-anchor" href="#dev-and-deploy" aria-label="Permalink to &quot;Dev and Deploy&quot;">​</a></h2><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>wrangler dev</span></span> <span class="line"><span>wrangler deploy --env staging</span></span> <span class="line"><span>wrangler deploy --env production</span></span></code></pre></div><p>Ensure your config uses <code>hosting.platform=cloudflare-workers</code> (auto-detected) and <code>hosting.base_url</code> is set for OAuth redirects.</p>`,11)]))}const g=a(t,[["render",l]]);export{h as __pageData,g as default};

Latest Blog Posts

MCP directory API

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

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

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