test(cloudflare): Add e2e test for MCPAgent with DurableObject instrumentation#20601
test(cloudflare): Add e2e test for MCPAgent with DurableObject instrumentation#20601
Conversation
…mentation This test ensures that the Sentry SDK properly instruments MCPAgent (which extends DurableObject) from the Cloudflare agents package. It verifies that MCP tool call spans are correctly created and linked. Ref: #17598 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
413899a to
0306960
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0306960. Configure here.
| }, | ||
| }, | ||
| }, | ||
| }); |
There was a problem hiding this comment.
Orphaned vitest config references missing dependency
Low Severity
The vitest.config.mts file imports from @cloudflare/vitest-pool-workers/config, but neither @cloudflare/vitest-pool-workers nor vitest appear in the package.json devDependencies. Other cloudflare test apps (e.g. cloudflare-mcp, cloudflare-workers) also have this file but include the corresponding dependencies. No script in package.json references vitest either, making this file dead code with a broken import — likely copied from a template without adapting.
Reviewed by Cursor Bugbot for commit 0306960. Configure here.
size-limit report 📦
|


closes #17598
closes JS-927
This test ensures that the Sentry SDK properly instruments MCPAgent (which extends DurableObject) from the Cloudflare agents package. It verifies that MCP tool call spans are correctly created and linked.