Repository navigation
[CI] (0e81558) custom-dispatcher/hono-server - #4231
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
wizard-ci-bot[bot] wants to merge 1 commit into
Conversation
Author
PR Evaluation ReportSummaryThis PR adds PostHog MCP analytics instrumentation to a custom Hono-based MCP JSON-RPC dispatcher server. It installs
Confidence score: 5/5 🧙No critical or medium issues found. This is an exemplary MCP analytics integration that correctly uses the custom-dispatcher (Path C) pattern with File changes
App sanity check ✅
IssuesNo issues found.
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | @posthog/mcp@0.21.0 and posthog-node@5.54.1 added to package.json dependencies |
| PostHog client initialized | Yes | PostHogMCP initialized with project token and host from env vars, with captureModel: true, enableExceptionAutocapture: true |
| capture() | Yes | captureToolCall, captureToolsList, and captureInitialize called at appropriate protocol lifecycle points |
| identify() | N/A | Server-only MCP dispatcher app |
| Error tracking | Yes | enableExceptionAutocapture: true in config; error path in tools/call passes error: err to captureToolCall |
| Reverse proxy | N/A | Server-only app |
Issues
No issues found.
Other completed criteria
- API key loaded from
process.env.POSTHOG_PROJECT_TOKEN(not hardcoded) - Host loaded from
process.env.POSTHOG_HOST(not hardcoded) - Graceful shutdown via
SIGTERMhandler callingposthog?.shutdown() prepareToolListandprepareToolCallcorrectly used to advertise and strip analytics-only parameters- Conditional
PostHogMCPinitialization — server runs without PostHog if env vars are missing in production - Missing env var validation with clear error message in non-production environments
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/index.ts |
`` | Captured on initialize handshake when protocol version is 2025-11-25; includes client info, parameters, response, duration |
src/index.ts |
`` | Captured on every tools/list request; includes tool names, parameters, response, duration, protocol version, session/client context |
src/index.ts |
`` (success) | Captured on successful tools/call; includes tool name, description, sanitized parameters, response, duration, intent, LLM model metadata |
src/index.ts |
(error), |
Captured on failed tools/call with isError: true and the error object; exception autocapture also enabled |
Issues
No issues found.
Other completed criteria
- Events represent real MCP protocol actions (initialize, tools/list, tools/call)
- Events enable product insights: can build funnels (list → call), track error rates, measure tool durations, analyze model usage
- Events include rich properties:
toolName,toolDescription,durationMs,parameters,response,intent,intentSource,llmModel,llmModelSource,protocolVersion,sessionId,clientUserAgent,vendorClient - No PII in event properties
- Event names follow canonical PostHog MCP naming convention (
,, ``)
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: wizard-pr
Trigger ID:
0e81558App:
custom-dispatcher/hono-serverApp directory:
apps/custom-dispatcher/hono-serverWorkbench branch:
wizard-ci-0e81558-custom-dispatcher-hono-serverWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-09-29T08:16:51.663Z
Duration: 192.2s
YARA Scanner