[CI] (e97a8e7) typescript-sdk/stdio-server - #3751
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
Conversation
Author
PR Evaluation ReportSummaryThis PR instruments a TypeScript MCP server (
Confidence score: 5/5 🧙
File changes
App sanity check ✅
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-node@^5.51.6 and @posthog/mcp@^0.12.0 added to package.json dependencies. |
| PostHog client initialized | Yes | new PostHog(process.env.POSTHOG_PROJECT_TOKEN!, { host: process.env.POSTHOG_HOST }) at module scope, then instrument(server, posthog, { captureModel: true }) called immediately after server creation. |
| capture() | Yes | instrument() automatically captures , , and `` events — no manual capture() calls needed. |
| identify() | N/A | Server-only MCP app; no user-facing sessions. |
| Error tracking | Yes | instrument() captures `` events when tool handlers throw. Shutdown handler ensures events flush on SIGTERM. |
| Reverse proxy | N/A | Server-only app using posthog-node — no ad-blocker concern. |
Issues
No issues.
Other completed criteria
- API key loaded from
process.env.POSTHOG_PROJECT_TOKEN(not hardcoded) - Host configured from
process.env.POSTHOG_HOST posthog.shutdown()called onSIGTERMto flush batched events before exitcaptureModel: trueenriches tool call events with the LLM model identity
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/index.ts |
, , `` |
Auto-captured by instrument(): tracks MCP protocol handshake, every tool invocation (echo, add) with parameters and model identity, and tool errors. Enables funnel analysis of tool usage patterns and error rates. |
Issues
No issues.
Other completed criteria
- Events represent real MCP protocol actions (initialization, tool calls, tool failures)
- Events enable product insights — can build tool usage trends, error rate dashboards, and model usage breakdowns
- Events enriched with
captureModel: trueto include LLM model identity on `` events - No PII in event properties — tool names and parameters are functional, not personal
- Event naming follows PostHog MCP convention (
*prefix, snake_case)
Reviewed by wizard workbench PR evaluator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated wizard CI run
Source: context-mill-pr
Trigger ID:
e97a8e7App:
typescript-sdk/stdio-serverApp directory:
apps/typescript-sdk/stdio-serverWorkbench branch:
wizard-ci-e97a8e7-typescript-sdk-stdio-serverWizard branch:
codex/mcp-analytics-ci-regionContext Mill branch:
codex/mcp-modern-capture-wizardPostHog (MCP) branch:
masterTimestamp: 2026-09-01T18:20:39.951Z
Duration: 159.9s
YARA Scanner