Skip to content

Commit 31e820e

Browse files
committed
add script_id to Workers list
1 parent 065e604 commit 31e820e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/mcp-common/src/tools/worker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export function registerWorkersTools(agent: CloudflareMcpAgent) {
3737
const workers = results
3838
.map((worker) => ({
3939
name: worker.id,
40+
// The API client doesn't know tag exists. The tag is needed in other places such as Workers Builds
41+
script_id: z.object({ tag: z.string() }).parse(worker),
4042
modified_on: worker.modified_on || null,
4143
created_on: worker.created_on || null,
4244
}))

0 commit comments

Comments
 (0)