Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(evals): launch the MCP hono server with its renamed dev script (#71583)

Georgiy Tarasovc5cde1845f3a
diff --git a/products/posthog_ai/eval_harness/harness/services.py b/products/posthog_ai/eval_harness/harness/services.py
index fd02692e7d2a..0b8af7863dd5 100644
--- a/products/posthog_ai/eval_harness/harness/services.py
+++ b/products/posthog_ai/eval_harness/harness/services.py
@@ -89,7 +89,7 @@ def start_mcp_server(live_server_url: str) -> Callable[[], None]:
Pointed at the in-process Django live server (which uses the test DB).
Uses a non-default port to avoid conflicts with a running dev MCP server.
- Runs the Node-native Hono server via ``pnpm dev:hono``. In production the
+ Runs the Node-native Hono server via ``pnpm dev``. In production the
Cloudflare Worker is now a proxy that forwards to a regional Hono
deployment, so Hono is what real users hit.
"""
@@ -101,7 +101,7 @@ def start_mcp_server(live_server_url: str) -> Callable[[], None]:
api_url = live_server_url
# The Hono server reads config directly from process env — no wrangler
- # --var wiring needed. PORT picks the listen port; the dev:hono script
+ # --var wiring needed. PORT picks the listen port; the dev script
# bundles via esbuild then spawns Node on the bundle.
env = {
**os.environ,
@@ -124,7 +124,7 @@ def start_mcp_server(live_server_url: str) -> Callable[[], None]:
_, stop = LONG_LIVED_SUBPROCESSES.start(
name="MCP server",
port=MCP_PORT,
- cmd=["pnpm", "dev:hono"],
+ cmd=["pnpm", "dev"],
cwd=mcp_dir,
env=env,
log_prefix="mcp",