diff --git a/test/mcp.test.ts b/test/mcp.test.ts index ce97480..6d4e54b 100644 --- a/test/mcp.test.ts +++ b/test/mcp.test.ts @@ -101,7 +101,7 @@ test("a host initialises, lists the mesh's tools and calls one", async (t) => { const listed = byId.get(2)!.result.tools; assert.deepEqual(listed.map((x: { name: string }) => x.name), ["mesh-controller.push", "mesh-controller.status", "shop.price"], "the modules' tools and the roles', named the way a person names them"); - const price = listed[1]; + const price = listed[2]; assert.ok(price.inputSchema, "a tool with no schema is one an agent cannot call"); // A module's bare property map arrives as a schema an agent can read, its words kept — and // `node`, the machine to ask when the module runs on several (novox/hq ADR 0159), beside them.