test(biz): drive every RPC method over MCP through hero_router #56

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

Adds an out-of-process integration test that spawns the real hero_biz_server and hero_router and drives all 62 business and projects 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_biz_server and hero_router and drives all 62 business and projects 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_biz_tests/tests/mcp_router.rs: an out-of-process integration
test that spawns the real hero_biz_server and the real hero_router, then
drives all 62 business + projects RPC methods as MCP tools/call requests
over TCP (test -> hero_router -> /api/{domain}/rpc). No in-process calls.

This is the Step-1 gate from
lhumina_code/home#309: a migrated
service must be reachable end-to-end over the router, with every method
covered. The test asserts tools/list advertises all 62 methods and
exercises each via tools/call against a connected data graph (CRUD plus
the custom finders and per-domain ping), then deletes and verifies
removal.

Requires HERO_ROUTER_BIN to point at a hero_router built from the new
serving contract (POST /api/{domain}/rpc, GET /heroservice.json). It
skips cleanly when unset so a bare `cargo test` stays green.

Signed-by: mik-tf <mik-tf@noreply.invalid>
mik-tf merged commit 7f4b32ddc6 into development 2026-06-21 23:22:04 +00:00
mik-tf deleted branch development_mik 2026-06-21 23:22:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_biz!56
No description provided.