Skip to content

Added default mcp tool call timeout from env#1854

Open
haydenrear wants to merge 1 commit intomodelcontextprotocol:mainfrom
haydenrear:patch-3
Open

Added default mcp tool call timeout from env#1854
haydenrear wants to merge 1 commit intomodelcontextprotocol:mainfrom
haydenrear:patch-3

Conversation

@haydenrear
Copy link
Copy Markdown

@haydenrear haydenrear commented Apr 5, 2026

Add a default fallback from an env for tool call timeout from the client side.

Motivation and Context

Tool calls timeout at 60 seconds. For any tool call that is an agent, for instance, it's too low.

How Has This Been Tested?

Unit tests, and I tested by running it in claude-agent-sdk (replacing the env).

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • [ x] New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • [ x] I have read the MCP Documentation
  • [x ] My code follows the repository's style guidelines
  • [ x] New and existing tests pass locally
  • [ x] I have added appropriate error handling
  • [ x] I have added or updated documentation as needed

Additional context

@haydenrear haydenrear requested a review from a team as a code owner April 5, 2026 21:48
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 5, 2026

🦋 Changeset detected

Latest commit: 1fa749d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@modelcontextprotocol/core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 5, 2026

Open in StackBlitz

@modelcontextprotocol/client

npm i https://pkg.pr.new/@modelcontextprotocol/client@1854

@modelcontextprotocol/server

npm i https://pkg.pr.new/@modelcontextprotocol/server@1854

@modelcontextprotocol/express

npm i https://pkg.pr.new/@modelcontextprotocol/express@1854

@modelcontextprotocol/fastify

npm i https://pkg.pr.new/@modelcontextprotocol/fastify@1854

@modelcontextprotocol/hono

npm i https://pkg.pr.new/@modelcontextprotocol/hono@1854

@modelcontextprotocol/node

npm i https://pkg.pr.new/@modelcontextprotocol/node@1854

commit: 1fa749d

Signed-off-by: hayden.rear <hayden.rear@gmail.com>
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.

1 participant