Repository navigation
[CI] (624abe2) custom-dispatcher/hono-server - #4447
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 integrates PostHog MCP analytics into a Hono-based custom MCP dispatcher server using the
Confidence score: 5/5 🧙No critical or medium issues found. The integration is thorough, idiomatic, and correctly uses the File changes
App sanity check ✅
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | @posthog/mcp (0.22.2) and posthog-node (^5.55.0) added to dependencies |
| PostHog client initialized | Yes | new PostHogMCP(token, { host, captureModel: true }) — correct custom-dispatcher initialization with model capture enabled |
| capture() | Yes | captureToolsList() for tool listing, captureToolCall() for both success and error tool invocations |
| identify() | N/A | Server-only MCP dispatcher — no browser sessions |
| Error tracking | Yes | Error path captures isError: true with error: err object passed to captureToolCall |
| Reverse proxy | N/A | Server-only app using posthog-node — reverse proxy only benefits browser SDKs |
Other completed criteria
- API key loaded from
process.env.POSTHOG_PROJECT_TOKEN— not hardcoded - Host loaded from
process.env.POSTHOG_HOST— correctly configured - Graceful shutdown via
process.on('SIGTERM', async () => { await posthog.shutdown() })ensures queued events flush before exit prepareToolList()used to advertise analytics-aware tool schemasprepareToolCall()/prepareToolResult()correctly separate argument cleaning from capture- Request metadata (protocol version, user-agent, vendor client) extracted from headers and included in all captures
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
src/index.ts |
`` | Captured on tools/list with tool names, parameters, response, duration, and protocol metadata |
src/index.ts |
`` (success) | Captured on successful tools/call with tool name/description, cleaned args, result, duration, model metadata, session/conversation IDs |
src/index.ts |
`` (error) | Captured on failed tools/call with isError: true, error object, and all the same metadata as success path |
Other completed criteria
- Events represent real MCP protocol actions (tool listing, tool invocation)
- Events enable product insights: can build funnels on tool usage, track error rates, measure latency, correlate by model
- Events are richly enriched with timing (
durationMs), protocol version, client user-agent, vendor client, server name/version, intent, model metadata, session and conversation IDs - No PII in event properties — only protocol-level metadata and tool parameters
- Event naming follows
@posthog/mcpSDK 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: wizard-pr
Trigger ID:
624abe2App:
custom-dispatcher/hono-serverApp directory:
apps/custom-dispatcher/hono-serverWorkbench branch:
wizard-ci-624abe2-custom-dispatcher-hono-serverWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-10-08T09:01:45.186Z
Duration: 125.0s
YARA Scanner