Commit 899ecb5
authored
refactor(mcp-app): remove frontend analytics event tool (tldraw#8188)
In order to simplify the MCP app and remove frontend analytics tracking,
this PR removes the `event` MCP tool and the `trackWidgetEvent` callback
that was used to report widget events (e.g. "build_it_clicked") to
Cloudflare Analytics.
### Change type
- [x] `other`
### Test plan
1. Run the MCP app and verify the share panel "Build it" button still
works
2. Confirm no errors in the console related to the event tool
- [ ] Unit tests
- [ ] End to end tests
Made with [Cursor](https://cursor.com)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: removes a best-effort analytics-only tool and its caller
without affecting core canvas/checkpoint functionality. Main risk is any
external dependency on the `event` tool name in clients.
>
> **Overview**
> Removes the app-only MCP tool `event` (and its Cloudflare Analytics
datapoint writes) from `register-tools.ts`.
>
> Simplifies the widget share panel by deleting `trackWidgetEvent` and
no longer emitting the `build_it_clicked` event when the **Build it**
button is pressed; button behavior otherwise remains unchanged.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
b8b0dcf. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent bf934d5 commit 899ecb5
2 files changed
Lines changed: 1 addition & 51 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | 571 | | |
606 | 572 | | |
607 | 573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 72 | | |
88 | 73 | | |
89 | | - | |
90 | 74 | | |
91 | 75 | | |
92 | 76 | | |
| |||
100 | 84 | | |
101 | 85 | | |
102 | 86 | | |
103 | | - | |
| 87 | + | |
104 | 88 | | |
105 | 89 | | |
106 | 90 | | |
| |||
0 commit comments