test_sdk_shim_reaches_the_lowlevel_server_by_the_right_name

Tests › tests/test_mcp_server.py

passed Passed in the packaged run.

What this test is for

Why it exists

The private attribute holding the low-level server was RENAMED between generations (`_mcp_server` → `_lowlevel_server`), and it is the only route to `NotificationOptions(tools_changed=True)` — without which a client is told `tools.listChanged=False` and never re-reads the tool list when tier-1 appears. That is the entire two-tier design, resting on one private attribute.

Verifies REQ-DDB-MCP-003 REQ-DDB-QUERY-006 REQ-DDB-QUERY-008 REQ-DDB-QUERY-009

Given

  1. mcp = _sdk.MCPServer(name="probe")
→

When

  1. low = _sdk.lowlevel(mcp)
  2. _sdk.lowlevel(object())
→

Then

  1. ✓ hasattr(low, "create_initialization_options") holds
  2. ✓ raises AttributeError

tests/test_mcp_server.py:496 · its file's page

What it checks (1)

  1. assert hasattr(low, "create_initialization_options") observes lowlevel via low

Where the product reaches it

  • main → build_server → lowlevel (flow)

Call flow

test_sdk_shim_reaches_the_lowlevel_server_by_the_right_name→lowlevel

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.

test_sdk_shim_reaches_the_lowlevel_server_by_the_right_name · 1 checkslowlevelREQ-DDB-MCP-001 · measured

Requirements it verifies (4)

requirementlinked byimplementers exercised
REQ-DDB-MCP-003catalogunknown
REQ-DDB-QUERY-006catalogunknown
REQ-DDB-QUERY-008catalogunknown
REQ-DDB-QUERY-009catalogunknown
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.