Skip to content

Commit 847fc1f

Browse files
authored
Update cloudflare oauth handler (#243)
* Adding recommended security features * Add workers-oauth-utils * Add MCP_COOKIE_ENCRYPTION_KEY to Env context * Update cloudflare-oauth-handler
1 parent f9f0bb6 commit 847fc1f

File tree

37 files changed

+1716
-486
lines changed

37 files changed

+1716
-486
lines changed

.changeset/public-dragons-fry.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
'workers-observability': patch
3+
'@repo/mcp-observability': patch
4+
'cloudflare-casb-mcp-server': patch
5+
'cloudflare-browser-mcp-server': patch
6+
'containers-mcp': patch
7+
'workers-bindings': patch
8+
'docs-vectorize': patch
9+
'workers-builds': patch
10+
'@repo/eval-tools': patch
11+
'@repo/mcp-common': patch
12+
'dns-analytics': patch
13+
'dex-analysis': patch
14+
'docs-autorag': patch
15+
'cloudflare-ai-gateway-mcp-server': patch
16+
'auditlogs': patch
17+
'demo-day': patch
18+
'cloudflare-autorag-mcp-server': patch
19+
'graphql-mcp-server': patch
20+
'logpush': patch
21+
'cloudflare-radar-mcp-server': patch
22+
---
23+
24+
Update cloudflare-oauth-handler

apps/ai-gateway/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"test": "vitest run"
1313
},
1414
"dependencies": {
15-
"@cloudflare/workers-oauth-provider": "0.0.5",
15+
"@cloudflare/workers-oauth-provider": "0.0.13",
1616
"@hono/zod-validator": "0.4.3",
17-
"@modelcontextprotocol/sdk": "1.18.2",
17+
"@modelcontextprotocol/sdk": "1.20.2",
1818
"@repo/mcp-common": "workspace:*",
1919
"@repo/mcp-observability": "workspace:*",
20-
"agents": "0.2.7",
20+
"agents": "0.2.19",
2121
"cloudflare": "4.2.0",
2222
"hono": "4.7.6",
2323
"zod": "3.24.2"

apps/ai-gateway/src/ai-gateway.context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { AIGatewayMCP } from './ai-gateway.app'
33

44
export interface Env {
55
OAUTH_KV: KVNamespace
6+
MCP_COOKIE_ENCRYPTION_KEY: string
67
ENVIRONMENT: 'development' | 'staging' | 'production'
78
MCP_SERVER_NAME: string
89
MCP_SERVER_VERSION: string

apps/auditlogs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"test": "vitest run"
1313
},
1414
"dependencies": {
15-
"@cloudflare/workers-oauth-provider": "0.0.5",
15+
"@cloudflare/workers-oauth-provider": "0.0.13",
1616
"@hono/zod-validator": "0.4.3",
17-
"@modelcontextprotocol/sdk": "1.18.2",
17+
"@modelcontextprotocol/sdk": "1.20.2",
1818
"@repo/mcp-common": "workspace:*",
1919
"@repo/mcp-observability": "workspace:*",
20-
"agents": "0.2.7",
20+
"agents": "0.2.19",
2121
"cloudflare": "4.2.0",
2222
"hono": "4.7.6",
2323
"zod": "3.24.2"

apps/auditlogs/src/auditlogs.context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { AuditlogMCP } from './auditlogs.app'
33

44
export interface Env {
55
OAUTH_KV: KVNamespace
6+
MCP_COOKIE_ENCRYPTION_KEY: string
67
ENVIRONMENT: 'development' | 'staging' | 'production'
78
MCP_SERVER_NAME: string
89
MCP_SERVER_VERSION: string

apps/autorag/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"test": "vitest run"
1313
},
1414
"dependencies": {
15-
"@cloudflare/workers-oauth-provider": "0.0.5",
15+
"@cloudflare/workers-oauth-provider": "0.0.13",
1616
"@hono/zod-validator": "0.4.3",
17-
"@modelcontextprotocol/sdk": "1.18.2",
17+
"@modelcontextprotocol/sdk": "1.20.2",
1818
"@repo/mcp-common": "workspace:*",
1919
"@repo/mcp-observability": "workspace:*",
20-
"agents": "0.2.7",
20+
"agents": "0.2.19",
2121
"cloudflare": "4.2.0",
2222
"hono": "4.7.6",
2323
"zod": "3.24.2"

apps/autorag/src/autorag.context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { AutoRAGMCP } from './autorag.app'
33

44
export interface Env {
55
OAUTH_KV: KVNamespace
6+
MCP_COOKIE_ENCRYPTION_KEY: string
67
ENVIRONMENT: 'development' | 'staging' | 'production'
78
MCP_SERVER_NAME: string
89
MCP_SERVER_VERSION: string

apps/browser-rendering/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"test": "vitest run"
1313
},
1414
"dependencies": {
15-
"@cloudflare/workers-oauth-provider": "0.0.5",
15+
"@cloudflare/workers-oauth-provider": "0.0.13",
1616
"@hono/zod-validator": "0.4.3",
17-
"@modelcontextprotocol/sdk": "1.18.2",
17+
"@modelcontextprotocol/sdk": "1.20.2",
1818
"@repo/mcp-common": "workspace:*",
1919
"@repo/mcp-observability": "workspace:*",
20-
"agents": "0.2.7",
20+
"agents": "0.2.19",
2121
"cloudflare": "4.2.0",
2222
"hono": "4.7.6",
2323
"zod": "3.24.2"

apps/browser-rendering/src/browser.context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { BrowserMCP } from './browser.app'
33

44
export interface Env {
55
OAUTH_KV: KVNamespace
6+
MCP_COOKIE_ENCRYPTION_KEY: string
67
ENVIRONMENT: 'development' | 'staging' | 'production'
78
MCP_SERVER_NAME: string
89
MCP_SERVER_VERSION: string

apps/cloudflare-one-casb/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"test": "vitest run"
1313
},
1414
"dependencies": {
15-
"@cloudflare/workers-oauth-provider": "0.0.5",
15+
"@cloudflare/workers-oauth-provider": "0.0.13",
1616
"@hono/zod-validator": "0.4.3",
17-
"@modelcontextprotocol/sdk": "1.18.2",
17+
"@modelcontextprotocol/sdk": "1.20.2",
1818
"@repo/mcp-common": "workspace:*",
19-
"agents": "0.2.7",
19+
"agents": "0.2.19",
2020
"cloudflare": "4.2.0",
2121
"hono": "4.7.6",
2222
"zod": "3.24.2"

0 commit comments

Comments
 (0)