[CI] (e97a8e7) custom-dispatcher/hono-server - #3750
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
Conversation
Author
PR Evaluation ReportSummaryThis PR adds PostHog MCP analytics to a Hono-based custom MCP dispatcher server. It correctly identifies the app as a "Path C" custom dispatcher and uses
Confidence score: 4/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 |
| PostHog client initialized | Yes | new PostHogMCP(token, { host, enableExceptionAutocapture: true }) — correct Path C pattern |
| capture() | Yes | captureInitialize() on initialize, captureToolCall() on every tools/call |
| identify() | N/A | Server-only MCP app |
| Error tracking | Yes | enableExceptionAutocapture: true in config; error path captures with isError: true and the error object |
| Reverse proxy | N/A | Server-only app using posthog-node |
Issues
No critical or medium issues.
Other completed criteria
- API key loaded from
POSTHOG_PROJECT_TOKENenv var — not hardcoded in source - Host loaded from
POSTHOG_HOSTenv var with correct default - Shutdown handler (
posthog?.shutdown()) on SIGTERM ensures event delivery - Both success and error paths for
tools/callare instrumented
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/index.ts |
`` | Captures MCP client handshake with client name, version, and protocol version |
src/index.ts |
`` | Captures every tool invocation with tool name, parameters, response, duration, and error status |
src/index.ts |
`` (via enableExceptionAutocapture) |
Automatic exception capture for unhandled errors |
Issues
No issues.
Other completed criteria
- Events represent real MCP protocol actions (initialize handshake, tool calls)
- Events enable product insights — can build funnels (initialize → tool calls), track error rates, measure latency distributions
- Events enriched with meaningful properties:
toolName,parameters,response,durationMs,isError - No PII in event properties — only tool names, arguments, and protocol metadata
- Event naming follows PostHog MCP conventions (
,)
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:
custom-dispatcher/hono-serverApp directory:
apps/custom-dispatcher/hono-serverWorkbench branch:
wizard-ci-e97a8e7-custom-dispatcher-hono-serverWizard branch:
codex/mcp-analytics-ci-regionContext Mill branch:
codex/mcp-modern-capture-wizardPostHog (MCP) branch:
masterTimestamp: 2026-09-01T18:20:36.618Z
Duration: 160.9s
YARA Scanner