/**
* For more details on how to configure Wrangler, refer to:
* https://developers.cloudflare.com/workers/wrangler/configuration/
*/
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "mcp-worker-oauth",
"main": "src/index.ts",
"compatibility_date": "2025-03-10",
"compatibility_flags": ["nodejs_compat"],
"vars": {
// replace this in .dev.vars
"GITHUB_CLIENT_ID": "1234567890",
"GITHUB_CLIENT_SECRET": "1234567890",
"COOKIE_ENCRYPTION_KEY": "1234567890"
},
"migrations": [
{
"new_sqlite_classes": ["MyMCP"],
"tag": "v1"
}
],
"durable_objects": {
"bindings": [
{
"class_name": "MyMCP",
"name": "MCP_OBJECT"
}
]
},
"kv_namespaces": [
{
"binding": "OAUTH_KV",
"id": "8bb58c330f194577ac7246a032887b1d"
}
],
"ai": {
"binding": "AI"
},
"observability": {
"enabled": true
},
"dev": {
"port": 8788
}
}