Skip to main content

Install

Integrate

Call track after defining your server and handlers, before running:
Get your org ID from app.agnost.ai.

Identify users

Pass an identify function to resolve a user from the incoming request context. It receives the raw request object and the process environment, and should return a dict with at least a userId key:
The function can also be async. Return None to skip user attribution for a request.

Options

UserIdentity is a Dict[str, Any] that must contain a userId key. Other fields are optional and forwarded as user traits.

Checkpoints

Per-step latency checkpoints are currently available only in the TypeScript SDK. Tool-level latency is captured automatically across all SDKs.

What appears in Agnost AI

  • Tool calls for MCP tool invocations.
  • Events for every tracked call.
  • Failed tool calls remain visible in Events with their error details.

Verify

Call one MCP tool from your Anthropic client, then open app.agnost.ai. Check Events first, then Tool calls.

Troubleshooting

  • Call track(...) after registering handlers and before serving.
  • Confirm the org ID is correct.

Next steps

  • Tool calls: analyze calls from your low-level MCP server.
  • Events: verify call fields and execution details.
  • Alerts: monitor important MCP tool conditions.