Skip to content

Support configurable timeout for TiDB MCP connections #261

@leleleon28

Description

@leleleon28

Problem

When using the TiDB MCP server, there is no configurable timeout for establishing or handling connections.

In some cases, slow or stuck connections can hold resources for too long and affect overall server stability.

Proposal

Please add configurable timeout parameters for TiDB MCP connections, such as:

  • connection timeout
  • query/read timeout

Expected behavior

Users can set timeout values when configuring or starting the TiDB MCP server, and long-running or unhealthy connections fail fast once the timeout is exceeded.

Benefits

  • prevents long-hanging connections
  • reduces unnecessary resource usage
  • improves MCP server robustness

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