Skip to content

fix: stop suppressing server stderr in fastmcp call#3283

Merged
jlowin merged 1 commit intomainfrom
fix/cli-stderr-suppression
Feb 23, 2026
Merged

fix: stop suppressing server stderr in fastmcp call#3283
jlowin merged 1 commit intomainfrom
fix/cli-stderr-suppression

Conversation

@jlowin
Copy link
Copy Markdown
Member

@jlowin jlowin commented Feb 23, 2026

fastmcp call was sending server subprocess stderr to /dev/null, which meant any print(..., file=sys.stderr) or logging output from tool functions was silently discarded. This made print-debugging impossible when using stdio transport.

The fix removes the explicit /dev/null redirect, letting stderr flow through to the terminal as expected. print() to stdout is still consumed by the JSON-RPC protocol on stdio (that's inherent to the transport), but stderr debugging now works.

Closes #3278

Server subprocess stderr was being sent to /dev/null, which silently
discarded print(..., file=sys.stderr) and logging output from tools.
@marvin-context-protocol marvin-context-protocol Bot added bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. cli Related to FastMCP CLI commands (run, dev, install) or CLI functionality. labels Feb 23, 2026
@jlowin jlowin merged commit e87ede0 into main Feb 23, 2026
7 checks passed
@jlowin jlowin deleted the fix/cli-stderr-suppression branch February 23, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. cli Related to FastMCP CLI commands (run, dev, install) or CLI functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

print() does not print anything in MCP server.

1 participant