Files
hermes-agent/tools
teknium1 98151e7cb7 feat(telemetry): record MCP server installs as extension-install events
Every path that adds an MCP server now emits one
hermes.extension.install.count event through record_extension_install:

- catalog installs (hermes mcp install, the picker, the dashboard route and
  its background CLI action) via mcp_catalog.install_entry
- catalog installs from connector cards and the agent's catalog tool via
  _CatalogBackend.install / start_install_oauth (OAuth: success at commit,
  failed when the flow cannot start; an abandoned browser step is a cancel)
- custom servers from `hermes mcp add`, POST /api/mcp/servers and the
  mcp.add RPC (source url for http, local for stdio, name None)

A reinstall or overwrite of an already-configured server is not counted,
so the metric measures new installs rather than config churn. Catalog
names pass through raw; the contract reports non-catalog names as custom.
2026-09-28 12:43:03 -07:00
..