Skip to content

Commit 2d2350c

Browse files
committed
fix pnpm
1 parent 3db8c64 commit 2d2350c

File tree

5 files changed

+4369
-3320
lines changed

5 files changed

+4369
-3320
lines changed

apps/cloudflare-one-casb/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ You should use this as a template to build an MCP server for Cloudflare, provide
66

77
## Getting Started
88

9-
10-
- Set secrets via Wrangler (ask in the `Cloudflare's Own MCP Servers` internal channel to get credentials)
9+
- Set secrets via Wrangler
1110

1211
```bash
1312
wrangler secret put CLOUDFLARE_CLIENT_ID
@@ -28,9 +27,5 @@ Deploy the MCP server to make it available on your workers.dev domain
2827
Test the remote server using [Inspector](https://modelcontextprotocol.io/docs/tools/inspector):
2928

3029
```
31-
npx @modelcontextprotocol/inspector@latest
30+
npx wrangler deploy
3231
```
33-
34-
## Deploying to production
35-
36-
- You will need to liberate the zone (LTZ) for your `<server-name>.mcp.cloudflare.com`

apps/cloudflare-one-casb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "example-cloudflare-mcp-server",
2+
"name": "cloudflare-casb-mcp-server",
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {

apps/cloudflare-one-casb/src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import { registerAccountTools } from '@repo/mcp-common/src/tools/account'
1111

1212
import { registerIntegrationsTools } from './tools/integrations'
1313

14-
15-
1614
import type { AccountSchema, UserSchema } from '@repo/mcp-common/src/cloudflare-oauth-handler'
1715

1816
// Context from the auth process, encrypted & stored in the auth token
@@ -67,9 +65,6 @@ export class MyMCP extends McpAgent<Env, State, Props> {
6765
const CloudflareOneCasbScopes = {
6866
'account:read': 'See your account info such as account details, analytics, and memberships.',
6967
'user:read': 'See your user info such as name, email address, and account memberships.',
70-
'workers:write':
71-
'See and change Cloudflare Workers data such as zones, KV storage, namespaces, scripts, and routes.',
72-
'workers_observability:read': 'See observability logs for your account',
7368
'teams:read': 'See Cloudflare One Resources',
7469
offline_access: 'Grants refresh tokens for long-lived access.',
7570
} as const

apps/cloudflare-one-casb/wrangler.jsonc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@
3737
"preview_urls": false,
3838
"env": {
3939
"staging": {
40-
"name": "mcp-cloudflare-staging",
40+
"name": "mcp-cloudflare-casb-staging",
4141
"account_id": "8995c0f49cdcf57eb54d2c1e52b7d2f3",
42-
// enable workers-dev for staging
43-
"workers_dev": true,
42+
"routes": [{ "pattern": "casb-staging.mcp.cloudflare.com", "custom_domain": true }],
4443
"durable_objects": {
4544
"bindings": [
4645
{
@@ -59,7 +58,7 @@
5958
"production": {
6059
"name": "mcp-cloudflare-production",
6160
"account_id": "8995c0f49cdcf57eb54d2c1e52b7d2f3",
62-
"routes": ["mcp.cloudflare.com/*"],
61+
"routes": [{ "pattern": "casb.mcp.cloudflare.com", "custom_domain": true }],
6362
"durable_objects": {
6463
"bindings": [
6564
{

0 commit comments

Comments
 (0)