Open
Labels
enhancementRequest for a new feature that's not currently supported
Description
Body:
Several variable and attribute definitions remain unused in the current codebase. Some were left behind when earlier refactors removed their consumers.
Unused definitions
src/mcp/server/stdio.py:_StreamClaim.fdis populated during construction but never read. The release callback uses the enclosing function’sfdinstead.src/mcp/server/__main__.py:loggeris unused after [v2] Dispatcher/ServerRunner receive-path swap — replaces BaseSession #2710 removedreceive_loop(), which contained its logging calls.examples/servers/simple-streamablehttp-stateless/mcp_simple_streamablehttp_stateless/server.py:loggeris unused after refactor(examples): migrate all HTTP examples to streamable_http_app() #2291 removed the lifespan implementation that referenced it.examples/servers/simple-auth/mcp_simple_auth/server.py:app._resource_server_settings, introduced in refactor: move transport-specific parameters from FastMCP constructor to run() #1898, is assigned but never read. Despite the accompanying comment,run()receiveshostandportdirectly.examples/servers/simple-auth/mcp_simple_auth/legacy_as_server.py:app._server_settingshas the same issue and was also introduced in refactor: move transport-specific parameters from FastMCP constructor to run() #1898.
Metadata
Metadata
Assignees
Labels
enhancementRequest for a new feature that's not currently supported
Activity
bbdu3 commentedon Nov 13, 2026
If this issue is correct and the cleanup is worth pursuing, I’d appreciate being considered for assignment to the issue so the existing PR can reopen. I understand this depends on maintainer capacity.