test_a_client_advertising_no_roots_is_never_asked¶
Tests › tests/test_mcp_server.py
What this test is for
Why it exists
Gated on `client_capabilities.roots`, so a client that does not offer the capability is not sent a request it would reject. The reply must still be the legible no-target error rather than a traceback.
Verifies REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build, refresh and check the index · 13 of 153 steps
… 4 earlier steps
… 2 steps between
… 3 steps between
… 118 later steps
1 more
- clew-mcp — `main` (clew/mcp_server/server.py) · 8 of 17 steps
tests/test_mcp_server.py:2619 · its file's page
What it checks (3)
assert status["active"] is Falseassert status["error"] == NO_TARGET_ERRORassert ctx.session.roots_calls == 0, "an unadvertised capability must not be probed"
Where the product reaches it
main→build_server(flow)
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (3)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-QUERY-006 | catalog | unknown |
| REQ-DDB-QUERY-008 | catalog | unknown |
| REQ-DDB-QUERY-009 | catalog | unknown |
Also reaches 6 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-MCP-001 measured
- REQ-DDB-MCP-002 measured
- REQ-DDB-MCP-003 measured
- REQ-DDB-MCP-004 measured
- REQ-DDB-WIKI-034 measured
- REQ-DDB-WIKI-054 measured