Skip to content

Commit b714324

Browse files
committed
feat(client): make errlog parameter optional in stdio_client
1 parent 2aa1ad2 commit b714324

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp/client/stdio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class StdioServerParameters(BaseModel):
103103

104104

105105
@asynccontextmanager
106-
async def stdio_client(server: StdioServerParameters, errlog: TextIO = sys.stderr):
106+
async def stdio_client(server: StdioServerParameters, errlog: TextIO | None = None):
107107
"""
108108
Client transport for stdio: this will connect to a server by spawning a
109109
process and communicating with it over stdin/stdout.

0 commit comments

Comments
 (0)