Server SDK
withMcpServerAnalytics(...) wraps StreamableHTTPServerTransport and emits MCP server lifecycle events such as tool calls, responses, errors, and list/read operations.
Overview
MCPeek is an analytics SDK for MCP servers and ChatGPT app widgets. It instruments both sides, sends structured events to the ingest API, and powers usage, engagement, and adoption metrics
withMcpServerAnalytics(...) wraps StreamableHTTPServerTransport and emits MCP server lifecycle events such as tool calls, responses, errors, and list/read operations.
withOpenAiClientAnalytics(...) wraps window.openai in the ChatGPT app widget and tracks user-side events such as modal requests, external opens, display mode changes, and widget close.
Start with Installation, then configure API keys, integrate server + widget wrappers, and verify data in dashboard views.
Scope