Connect MCPcat with Sentry for error tracking and monitoring
Field | Type | Required | Description |
---|---|---|---|
dsn | string | Yes | Sentry Data Source Name from project settings |
environment | string | No | Environment name (default: “production”) |
release | string | No | Release version for tracking deployments |
enableTracing / enable_tracing | boolean | No | Enable performance monitoring. When true, sends transaction events to Sentry’s Performance tab in addition to logs, allowing you to track duration and performance metrics. |
MCPcat Field | Sentry Field | Format |
---|---|---|
session_id | trace_id | SHA256 hash (one trace per session) |
event_id | event_id | Double SHA256 hash for uniqueness |
Field | Value | Description |
---|---|---|
timestamp | Event timestamp | Unix timestamp |
level | "error" or "info" | Based on is_error flag |
body | "MCP {event_type}: {resource_name}" | Formatted message |
enableTracing
is set to true
in the
configuration.Field | Value | Description |
---|---|---|
transaction | "{event_type} - {resource_name}" | Transaction name |
start_timestamp | Timestamp - duration | Calculated start time |
end_timestamp | Event timestamp | When the event completed |
op | Event type | Operation type (e.g., “tools/call”) |
status | "internal_error" or "ok" | Based on is_error flag |
MCPcat Field | Tag Name | Condition |
---|---|---|
Environment config | environment | Always included |
Release config | release | If configured |
event_type | event_type | Always included |
resource_name | resource | If available |
server_name | server_name | If available |
client_name | client_name | If available |
identify_actor_given_id | actor_id | If user identified |
MCPcat Field | Extra Field | Description |
---|---|---|
session_id | session_id | Session identifier |
project_id | project_id | MCPcat project ID |
user_intent | user_intent | User’s intent |
duration | duration_ms | Duration in milliseconds |
identify_actor_name | actor_name | User name |
identify_actor_data | actor_data | User metadata |
client_version | client_version | MCP client version |
server_version | server_version | MCP server version |
is_error
is true
, Sentry receives:
enableTracing
is true)