test(planner): drive every RPC method over MCP through hero_router #33

Merged
mik-tf merged 1 commit from development_mik into development 2026-06-21 23:44:17 +00:00
Owner

Adds an out-of-process integration test that spawns the real hero_planner_server and hero_router and drives all 98 RPC methods as MCP tool calls over the router (no in-process calls). This is the Step 1 gate from lhumina_code/home#309. The test requires HERO_ROUTER_BIN to point at a hero_router built from the new serving contract and skips cleanly when unset.

Adds an out-of-process integration test that spawns the real hero_planner_server and hero_router and drives all 98 RPC methods as MCP tool calls over the router (no in-process calls). This is the Step 1 gate from https://forge.ourworld.tf/lhumina_code/home/issues/309. The test requires HERO_ROUTER_BIN to point at a hero_router built from the new serving contract and skips cleanly when unset.
Add hero_planner_tests/tests/mcp_router.rs: an out-of-process integration
test that spawns the real hero_planner_server and hero_router and drives
all 98 RPC methods as MCP tools/call requests over TCP
(test -> hero_router -> /api/main/rpc). No in-process calls.

This is the Step-1 gate from
lhumina_code/home#309. Planner is a
single-domain service, so the gateway exposes its methods under their
bare names. The test asserts tools/list advertises all 98 methods and
exercises each via tools/call against a connected, workspace-scoped data
graph (CRUD for the 11 rootobjects, comment, link, currency, system,
ping, and the workspace export-import round-trip), then deletes and
verifies removal.

Requires HERO_ROUTER_BIN to point at a hero_router built from the new
serving contract. It skips cleanly when unset.

Signed-by: mik-tf <mik-tf@noreply.invalid>
mik-tf merged commit 34ae10b29d into development 2026-06-21 23:44:17 +00:00
mik-tf deleted branch development_mik 2026-06-21 23:44:17 +00:00
Sign in to join this conversation.
No description provided.