Commit d14d48f
committed
mcp(test[server]): clarify socket_name contract test runs unfiltered
``test_registered_tools_accept_socket_name`` constructs a fresh
``FastMCP("socket-name-contract")`` and asserts every registered tool
(except ``SOCKET_NAME_EXEMPT``) takes a ``socket_name`` parameter. This
exercises the unfiltered registered set, not the production singleton
at ``server.py:222`` (which has middleware + tier filtering applied
by ``run_server``).
The behavior is correct: any subset of an all-pass set is also
all-pass for the same property, so verifying on the unfiltered set
covers every tier-filtered subset by implication. Adding the scope
note to the docstring prevents a future maintainer from misreading
the test as covering the singleton — and flags that tier-specific
socket_name behavior, if ever added, would need a parallel test.
Documentation only; no test logic changes.1 parent 5770fdb commit d14d48f
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
359 | 368 | | |
360 | 369 | | |
361 | 370 | | |
| |||
0 commit comments