Skip to content

Commit 2621557

Browse files
authored
Use workers:read scope instead of workers:write (#180)
* Update agents and modelcontext dependencies * Support AOT tokens * Use new workers:read scope instead of workers:write, as these mcp servers don't require workers write permissions
1 parent bd31490 commit 2621557

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.changeset/rich-chefs-nail.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'workers-observability': minor
3+
'containers-mcp': minor
4+
'workers-bindings': minor
5+
---
6+
7+
Use new workers:read scope instead of workers:write, as these mcp servers don't require workers write permissions

apps/sandbox-container/server/sandbox.server.app.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ export type Props = AuthProps
3333
const ContainerScopes = {
3434
...RequiredScopes,
3535
'account:read': 'See your account info such as account details, analytics, and memberships.',
36-
'workers:write':
37-
'See and change Cloudflare Workers data such as zones, KV storage, namespaces, scripts, and routes.',
3836
} as const
3937

4038
export default {

apps/workers-observability/src/workers-observability.app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class ObservabilityMCP extends McpAgent {
118118
const ObservabilityScopes = {
119119
...RequiredScopes,
120120
'account:read': 'See your account info such as account details, analytics, and memberships.',
121-
'workers:write':
121+
'workers:read':
122122
'See and change Cloudflare Workers data such as zones, KV storage, namespaces, scripts, and routes.',
123123
'workers_observability:read': 'See observability logs for your account',
124124
} as const

0 commit comments

Comments
 (0)