Skip to content

Commit fe716e2

Browse files
committed
formatting
1 parent c5c3d14 commit fe716e2

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

apps/workers-observability/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export class ObservabilityMCP extends McpAgent<Env, State, Props> {
6060
version: this.env.MCP_SERVER_VERSION,
6161
},
6262
sentry: initSentryWithUser(env, this.ctx, this.props.user.id),
63-
options: { instructions: `# Cloudflare Workers Observability Tool
63+
options: {
64+
instructions: `# Cloudflare Workers Observability Tool
6465
6566
This tool provides powerful capabilities to analyze and troubleshoot your Cloudflare Workers through logs and metrics. Here's how to use it effectively:
6667
@@ -81,7 +82,8 @@ This tool provides powerful capabilities to analyze and troubleshoot your Cloudf
8182
- STOP when you've answered the user's specific question
8283
- STOP when the user hasn't requested additional exploration
8384
- Only continue if explicitly directed with "EXPLORE" or similar instruction
84-
` },
85+
`,
86+
},
8587
})
8688

8789
registerAccountTools(this)

packages/mcp-common/src/types/workers-logs-schemas.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ export const zQueryFilter = z.object({
9595
`)
9696

9797
export const zQueryCalculation = z.object({
98-
key: z.string().optional().describe(`The key to use for the calculation. This key must exist in the logs.
98+
key: z.string().optional()
99+
.describe(`The key to use for the calculation. This key must exist in the logs.
99100
Use the Keys endpoint to confirm that this key exists
100101
101102
• DO NOT guess keys - always use verified keys from either:
@@ -316,10 +317,11 @@ export const zQueryRunRequest = z.object({
316317
groupBys: z.array(zQueryGroupBy).optional().describe(`Only valid when doing a Calculation`),
317318
orderBy: z
318319
.object({
319-
value: z.string().describe("This must be the alias of a calculation"),
320+
value: z.string().describe('This must be the alias of a calculation'),
320321
order: z.enum(['asc', 'desc']).optional(),
321322
})
322-
.optional().describe("Order By only workers when a group by is present"),
323+
.optional()
324+
.describe('Order By only workers when a group by is present'),
323325
limit: z
324326
.number()
325327
.int()
@@ -332,7 +334,12 @@ export const zQueryRunRequest = z.object({
332334
needle: zSearchNeedle.optional(),
333335
}),
334336
timeframe: zTimeframe,
335-
granularity: z.number().optional().describe("This is only used when the view is calculations - by leaving it empty workers observability will detect the correct granularity"),
337+
granularity: z
338+
.number()
339+
.optional()
340+
.describe(
341+
'This is only used when the view is calculations - by leaving it empty workers observability will detect the correct granularity'
342+
),
336343
limit: z
337344
.number()
338345
.max(100)

0 commit comments

Comments
 (0)