You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add publishCustomEvent function for custom analytics events
Add publishCustomEvent() function that allows publishing arbitrary events
to MCPCat outside of standard tool call tracking. This enables tracking
custom business logic, user actions, and errors.
Features:
- Works with tracked MCP servers or custom session IDs
- Supports flexible event metadata (resourceName, parameters, response, etc.)
- Includes error tracking with isError and error fields
- Derives session IDs deterministically for custom sessions
exportconstDEFAULT_CONTEXT_PARAMETER_DESCRIPTION=`Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."`;
0 commit comments