-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwrangler.toml
More file actions
67 lines (53 loc) · 1.66 KB
/
wrangler.toml
File metadata and controls
67 lines (53 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name = "discogs-mcp"
main = "src/index-oauth.ts"
compatibility_date = "2024-12-01"
compatibility_flags = ["nodejs_compat"]
[observability]
enabled = true
# Optional allowlist: numeric Discogs user ID(s) permitted to authenticate.
# Accepts a single ID or a comma-separated list (e.g. "123,456,789").
# Empty = no allowlist (open; default for local dev and self-hosters).
[vars]
ALLOWED_DISCOGS_USER_ID = ""
# Durable Object for coordinated Discogs API rate limiting
[durable_objects]
bindings = [
{ name = "RATE_LIMITER", class_name = "DiscogsRateLimiter" }
]
[[migrations]]
tag = "v1"
new_classes = ["DiscogsRateLimiter"]
# Development environment (default)
[[kv_namespaces]]
binding = "MCP_LOGS"
id = "b0c83f4b63a94c7490a609095e35b84f"
[[kv_namespaces]]
binding = "MCP_SESSIONS"
id = "a0bc40f523d54a6ab70fa947ac3daeaf"
[[kv_namespaces]]
binding = "OAUTH_KV"
id = "e04a5ec5441949ebb6e84281bf6598c3"
# Production environment
[env.production]
name = "discogs-mcp-prod"
# Lock the hosted instance to the maintainer's Discogs account.
# Discogs API rate limits are too tight to share, so anyone else must self-host.
[env.production.vars]
ALLOWED_DISCOGS_USER_ID = "2579319,2316828"
[env.production.durable_objects]
bindings = [
{ name = "RATE_LIMITER", class_name = "DiscogsRateLimiter" }
]
[[env.production.kv_namespaces]]
binding = "MCP_LOGS"
id = "768f383bd9a54f8c837decbaeb869b68"
[[env.production.kv_namespaces]]
binding = "MCP_SESSIONS"
id = "e45edcc5347e4b409169c1d0a9b2ed5d"
[[env.production.kv_namespaces]]
binding = "OAUTH_KV"
id = "35c396a7d0924dd8a5527334cd4538d3"
# Secrets (set via wrangler secret put):
# - DISCOGS_CONSUMER_KEY
# - DISCOGS_CONSUMER_SECRET
# - JWT_SECRET