Files
PaperClipAI/server
DottaandClaude Opus 5.5 4a22251d93 feat(telemetry): report custom connector domains and aggregator app requests
Connector telemetry reports every custom MCP connector as the literal
connector_key "custom", and apps reached through Composio, Arcade and
Executor are not visible at all. The team cannot see which services
people connect as custom servers, or which aggregator apps people try to
connect and which ones they finish.

Sync the registered contract and send three additions:

- server_domain on connection.created, connection.updated and
  connection.invoked, for custom connectors only. It is the registrable
  domain (ICANN public suffix plus one label, from tldts). The path,
  query, port, credentials and subdomains never leave the process. IPs,
  loopback, single-label hosts, non-ICANN and special-use suffixes,
  non-HTTP schemes and unparsable addresses send "private". Local stdio
  servers send "stdio".
- connection.app_linked (provider, app) when a person's cached app
  observation moves to connected. Composio list checks and the
  Arcade/Executor inventory sync read the previous status first, so a
  re-sync that finds the app still connected sends nothing.
- connection.app_requested (provider, app, origin, outcome) when a
  person starts app setup or adds an account, and when an agent calls
  COMPOSIO_MANAGE_CONNECTIONS with add or an Arcade tool answers with an
  authorization step.

app is a slug from the shared aggregator catalog, or "other", the same
rule as connector_key. All emitters are best-effort and never throw.

Tested: vitest for connector-telemetry (domain normalization including
private, IP, userinfo and token-in-path cases, no URL fragment in any
payload, catalog-or-other, transition rule), composio-app-setup and
aggregator-app-sync against embedded Postgres (emit once on transition,
request outcomes), the shared telemetry client, and the related gateway
suites. The new tests fail when the transition check or the domain
reduction is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:33:43 -06:00
..