|
1 | 1 | """ |
2 | 2 | Comprehensive MCP Server Tests for NeqSim |
3 | 3 | ========================================== |
4 | | -Tests all 68 MCP tools through the real JSON-RPC protocol, verifying |
| 4 | +Tests all 69 MCP tools through the real JSON-RPC protocol, verifying |
5 | 5 | correctness against known values from the NeqSim JUnit test suite. |
6 | 6 |
|
7 | | -Tier 1 — Trusted Core (22 tools): |
| 7 | +Tier 1 — Trusted Core (23 tools): |
8 | 8 | - TP flash (single phase, two-phase, multi-component) |
9 | 9 | - Dew point / bubble point calculations |
10 | 10 | - Different EOS models (SRK, PR, CPA) |
|
15 | 15 | - Batch calculations, property tables, phase envelopes |
16 | 16 | - Automation API (units, variables, state save/compare, diagnostics) |
17 | 17 | - Industrial profile, benchmark trust, tool access |
| 18 | + - Reusable process model handles (manageModel) |
18 | 19 |
|
19 | 20 | Tier 2 — Engineering Advanced (32 tools): |
20 | 21 | - PVT laboratory experiments |
@@ -257,16 +258,17 @@ def test_protocol(): |
257 | 258 | r = recv() |
258 | 259 | tools = r.get("result", {}).get("tools", []) |
259 | 260 | tool_names = sorted([t["name"] for t in tools]) |
260 | | - check("68 tools registered", len(tools) == 68, f"got {len(tools)}: {tool_names}") |
| 261 | + check("69 tools registered", len(tools) == 69, f"got {len(tools)}: {tool_names}") |
261 | 262 |
|
262 | | - # Tier 1 — Trusted Core (22 tools) |
| 263 | + # Tier 1 — Trusted Core (23 tools) |
263 | 264 | tier1 = ["runFlash", "runProcess", "validateInput", "searchComponents", |
264 | 265 | "getExample", "getSchema", "getPropertyTable", "getPhaseEnvelope", |
265 | 266 | "getCapabilities", "runBatch", "listSimulationUnits", |
266 | 267 | "listUnitVariables", "getSimulationVariable", "setSimulationVariable", |
267 | 268 | "saveSimulationState", "compareSimulationStates", "diagnoseAutomation", |
268 | 269 | "getAutomationLearningReport", "manageIndustrialProfile", |
269 | | - "getBenchmarkTrust", "checkToolAccess", "getAdjustableParameters"] |
| 270 | + "getBenchmarkTrust", "checkToolAccess", "getAdjustableParameters", |
| 271 | + "manageModel"] |
270 | 272 | for name in tier1: |
271 | 273 | check(f"tier1 tool '{name}'", name in tool_names) |
272 | 274 |
|
|
0 commit comments