π The fast, Pythonic way to build MCP servers and clients.
fix: stop suppressing server stderr in fastmcp call (#3283)
Jeremiah Lowine87ede075cc5
diff --git a/src/fastmcp/cli/client.py b/src/fastmcp/cli/client.pyindex 843a10a25..9a14e4f06 100644--- a/src/fastmcp/cli/client.py+++ b/src/fastmcp/cli/client.py@@ -2,7 +2,6 @@import difflibimport json-import osimport shleximport sysfrom pathlib import Path@@ -100,7 +99,6 @@ def resolve_server_spec(return StdioTransport(command="fastmcp",args=["run", str(resolved_path), "--no-banner"],- log_file=Path(os.devnull),)# .js β pass through for Client's infer_transportreturn spec@@ -125,7 +123,7 @@ def _build_stdio_from_command(command_str: str) -> StdioTransport:console.print("[bold red]Error:[/bold red] Empty --command")sys.exit(1)- return StdioTransport(command=parts[0], args=parts[1:], log_file=Path(os.devnull))+ return StdioTransport(command=parts[0], args=parts[1:])def _resolve_json_spec(path: Path) -> str | dict[str, Any]: