mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
test(mcp): derive sessionless managed inventory
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
TOOL_CONTRACTS,
|
||||
} from "../src/contracts/toolContracts.js";
|
||||
import { enhancedInputSchemas } from "../src/contracts/enhancedInputs.js";
|
||||
import { MANAGED_WORKFLOW_TOOL_CONTRACTS } from "../src/contracts/managedWorkflowToolContracts.js";
|
||||
import { AnalysisOutputError } from "../src/domain/errors.js";
|
||||
import { jsonValueSchema, type JsonValue } from "../src/domain/jsonValue.js";
|
||||
import { err } from "../src/domain/result.js";
|
||||
@@ -198,7 +199,9 @@ describe("enhanced MCP tools", () => {
|
||||
const client = await connect();
|
||||
const listed = await client.listTools();
|
||||
expect(listed.tools).toHaveLength(
|
||||
TOOL_CONTRACTS.length - SESSION_TOOL_CONTRACTS.length,
|
||||
TOOL_CONTRACTS.length -
|
||||
SESSION_TOOL_CONTRACTS.length -
|
||||
MANAGED_WORKFLOW_TOOL_CONTRACTS.length,
|
||||
);
|
||||
expect(
|
||||
listed.tools
|
||||
|
||||
@@ -23,6 +23,7 @@ import {
|
||||
SESSION_TOOL_CONTRACTS,
|
||||
TOOL_CONTRACTS,
|
||||
} from "../../src/contracts/toolContracts.js";
|
||||
import { MANAGED_WORKFLOW_TOOL_CONTRACTS } from "../../src/contracts/managedWorkflowToolContracts.js";
|
||||
|
||||
const resources: Array<{ close(): Promise<void> }> = [];
|
||||
|
||||
@@ -453,7 +454,9 @@ describe("full MCP integration with multi-tool sequences", () => {
|
||||
});
|
||||
const listed = await client.listTools();
|
||||
expect(listed.tools).toHaveLength(
|
||||
TOOL_CONTRACTS.length - SESSION_TOOL_CONTRACTS.length,
|
||||
TOOL_CONTRACTS.length -
|
||||
SESSION_TOOL_CONTRACTS.length -
|
||||
MANAGED_WORKFLOW_TOOL_CONTRACTS.length,
|
||||
);
|
||||
const names = listed.tools.map((t) => t.name);
|
||||
expect(names).toContain("binary_overview");
|
||||
|
||||
Reference in New Issue
Block a user