Skip to content

feat(mcp): allow 'never' option for mcp_timeout to disable timeout#8630

Open
Skyline-23 wants to merge 1 commit intoanomalyco:devfrom
Skyline-23:feat/mcp-timeout-config
Open

feat(mcp): allow 'never' option for mcp_timeout to disable timeout#8630
Skyline-23 wants to merge 1 commit intoanomalyco:devfrom
Skyline-23:feat/mcp-timeout-config

Conversation

@Skyline-23
Copy link

@Skyline-23 Skyline-23 commented Jan 15, 2026

Closes #8633

Summary

  • Add "never" option to mcp_timeout config to allow disabling timeout for MCP tool calls
  • Previously only positive integers (milliseconds) were supported

Changes

  • config.ts: Update schema to accept "never" | number
  • mcp/index.ts: Handle "never" by passing undefined to disable timeout

Usage

{
  "experimental": {
    "mcp_timeout": "never"
  }
}

Or with a specific timeout:

{
  "experimental": {
    "mcp_timeout": 60000
  }
}

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add 'never' option for mcp_timeout to disable timeout

1 participant