Commit f77355c
authored
fix(mcp-common): support workflow eventType in observability schema (#361)
Add 'workflow' to the eventType enum and make wallTimeMs/cpuTimeMs
optional on zCloudflareEvent. Cloudflare Workflow events emit
eventType: "workflow" and do not always carry the time fields, so the
workers-observability MCP's query_worker_observability tool was
rejecting any response that contained a workflow event with a Zod
validation error, returning no data to the caller.
Made-with: Cursor1 parent 17a9785 commit f77355c
2 files changed
Lines changed: 12 additions & 2 deletions
File tree
- .changeset
- packages/mcp-common/src/types
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
290 | | - | |
291 | | - | |
| 291 | + | |
| 292 | + | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| |||
0 commit comments