plexus.cli.procedure.test_tool_filtering_integration module

Integration tests for MCP tool filtering in procedure execution.

These tests verify that the tool filtering logic in StandardOperatingProcedureAgent correctly filters MCP tools based on the ProcedureDefinition’s allowed tools list.

async plexus.cli.procedure.test_tool_filtering_integration.test_end_to_end_tool_availability()

End-to-end test that verifies tools are available through the full stack: 1. ProcedureDefinition returns correct allowed tools 2. MCP server has the tools registered 3. Tool filtering correctly includes the allowed tools 4. LangChain adapter can convert them

async plexus.cli.procedure.test_tool_filtering_integration.test_mcp_server_registers_evaluation_tools()

Test that create_procedure_mcp_server actually registers evaluation tools.

async plexus.cli.procedure.test_tool_filtering_integration.test_procedure_definition_returns_correct_tools()

Test that ProcedureProcedureDefinition returns the correct list of allowed tools.

async plexus.cli.procedure.test_tool_filtering_integration.test_tool_filtering_matches_allowed_tools()

Test that tool filtering correctly filters MCP tools based on allowed list.