@modelcontextprotocol/sdk. It
injects the mcpeyeIntent parameter into every tool, captures each call, and
ships batches to your ingest API in the background.
Install
Minimal usage
track() injects mcpeyeIntent into every tool’s schema and captures each call.
Pass a high-level McpServer or a low-level Server — it unwraps automatically.
Configuration
| Option | Env var | Description |
|---|---|---|
projectId | — | Your project id (2nd arg to track), from “Create project”. |
ingestUrl | MCPEYE_INGEST_URL | Ingest API base URL. Defaults to http://localhost:3001. |
ingestSecret | MCPEYE_INGEST_SECRET | The per-project ingest secret from “Create project” / POST /projects. |
Tool arguments and results are redacted for obvious secrets before they leave
your process, and the only network destination is the ingest URL you control.
What happens after capture
Ingest, sessionize, summarize, and the Intent Gap Report.