Skip to main content
Glama
by phkus
wrangler.toml2.01 kB
name = "craft-mcp" main = "src/index.ts" compatibility_date = "2025-01-23" compatibility_flags = ["nodejs_compat"] keep_vars = true # Durable Object binding for the MCP Agent [[durable_objects.bindings]] name = "MCP" class_name = "MyMCP" # Durable Object migration [[migrations]] tag = "v1" new_sqlite_classes = ["MyMCP"] # KV namespace for OAuth token storage # Create this namespace with: wrangler kv namespace create OAUTH_KV # For production, bind the namespace ID in Cloudflare Dashboard or use wrangler [[kv_namespaces]] binding = "OAUTH_KV" id = "4d15ada196da434ab5af94db8c044be4" # Document configuration # Add your Craft document links here in JSON format # To get a link ID: In Craft app, enable API for a document and copy the link # The link format is: https://connect.craft.do/links/{LINK_ID}/api/v1 # # For local development: Create a .dev.vars file with your actual values # For production: Set CRAFT_DOCUMENTS via Cloudflare Dashboard (Workers → Settings → Variables) [vars] CRAFT_DOCUMENTS = '{"Example Document": "https://connect.craft.do/links/YOUR_LINK_ID_HERE/api/v1"}' # GitHub OAuth 2.1 Configuration # The server uses OAuth 2.1 with PKCE for MCP client authentication # IMPORTANT: Set these via Cloudflare Dashboard (Workers → Settings → Variables → Environment Variables) # or use wrangler secrets for sensitive values: # wrangler secret put GITHUB_CLIENT_ID # wrangler secret put GITHUB_CLIENT_SECRET # # To create a GitHub OAuth App: # 1. Go to GitHub → Settings → Developer settings → OAuth Apps → New OAuth App # 2. Set Homepage URL to your worker URL (e.g., https://craft-mcp.YOUR_SUBDOMAIN.workers.dev) # 3. Set Authorization callback URL to: https://craft-mcp.YOUR_SUBDOMAIN.workers.dev/callback # 4. Copy the Client ID and generate a Client Secret # # Optional: Comma-separated list of GitHub usernames allowed to access the server # If not set, all authenticated GitHub users can access the server # ALLOWED_USERNAMES = "username1,username2,username3"

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/phkus/craft-mcp'

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