Skip to content

Allow setting custom timeout for stdio mcp client #1364

@Eggiverse

Description

@Eggiverse

Description

I am using a stdio MCP which responds and exits very slowly sometimes. Currently it is killed after not responding for a fixed time PROCESS_TERMINATION_TIMEOUT = 2.0. I hope I can manually setup time out. I suggest to config it in StdioServerParameters.

References

https://github.com/modelcontextprotocol/python-sdk/blob/c3717e7ad333a234c11d084c047804999a88706e/src/mcp/client/stdio/__init__.py#L48C1-L49C1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions