• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / mcp / 47399423918
98%

Build:
DEFAULT BRANCH: main
Ran 04 Dec 2026 06:38PM UTC
Jobs 1
Files 58
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Dec 2026 06:35PM UTC coverage: 98.292% (+0.005%) from 98.287%
47399423918

push

github

web-flow
feat(mcp-apps): emit MCP Apps telemetry events from the views (#662)

Stacked on #654. Merge that first; this PR's base will then move to
`main`.

## What kind of change does this PR introduce?

Feature: MCP Apps views now send telemetry events, and embedders can
configure where they go.

## What is the current behavior?

#654 adds the backend telemetry contract and `view_instance_id`, but
nothing sends events from the views. Embedders have no way to configure
a telemetry destination.

Linear: FE-5239

## What is the new behavior?

- **Server:** a new optional `appsTelemetry { posthogHost, posthogKey }`
option. Bad config silently disables telemetry. When it is on,
successful render-tool results carry `_meta['supabase.com/telemetry']`
next to the view instance ID, and the view CSP `connectDomains` lists
the PostHog origin. The CLI reads `SUPABASE_MCP_POSTHOG_KEY` and
`SUPABASE_MCP_POSTHOG_HOST`. A type-only
`@supabase/mcp-server-supabase/apps-telemetry` subpath exports the
`McpAppsTelemetry` types.
- **Views:** a small dependency-free PostHog client sends
fire-and-forget events keyed on the view instance ID. `useMcpView`
exposes a stable `track()`, which does nothing without config or an
instance ID. Events: view mount, link opens (by destination, never the
URL), and in the issues view review follow-ups, user and agent
refreshes, and issue selection. Paging and Clear send nothing.

## How to Review

1. **Server config and meta**
- `packages/mcp-server-supabase/src/apps/telemetry.ts`,
`src/apps/index.ts`, `src/server.ts`, `src/resources/app-resources.ts`
- How the config is normalised, when `_meta` is attached, and when the
CSP lists the PostHog origin.

2. **Client**
- `packages/mcp-ui/src/shared/telemetry.ts`, `use-mcp-view.ts`,
`tool-result.ts`
- The typed event union and its runtime property whitelist; the no-op
paths.

3. **Event call sites**
- `packages/mcp-ui/src/views/show-issues/use-issues.ts`,
`shared/send-message.ts`
- Where each event fires... (continued)

1673 of 1743 branches covered (95.98%)

Branch coverage included in aggregate %.

63 of 63 new or added lines in 7 files covered. (100.0%)

7362 of 7449 relevant lines covered (98.83%)

2237.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 47399423918.1 04 Dec 2026 06:38PM UTC 58
98.29
GitHub Action Run
Source Files on build 47399423918
  • Tree
  • List 58
  • Changed 10
  • Source Changed 7
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #47399423918
  • 627ee496 on github
  • Prev Build on main (#47302244595)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc