Skip to content

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

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

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
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
Contributor

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

No duplicate PRs found

@github-actions
Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions bot closed this Mar 17, 2026
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