0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

feat(mcp): client add timeout option (#3102)

This PR adds a new MCP client option to set a timeout, which is used
when calling tools.

We propose this change because we are using the mastra.ai agent with the
MCP client on Apify
(https://apify.com/jakub.kopecky/actor-mastra-mcp-agent) that uses the
Apify MCP server (https://apify.com/apify/actors-mcp-server) to execute
Apify Actors. Some Actors (or tools in general) may take longer than the
default MCP SDK 60 seconds limit, so we wanted to have an option to
increase the limit when using mastra.ai.

---------

Co-authored-by: Abhi Aiyer <abhiaiyer91@gmail.com>
This commit is contained in:
Jakub Kopecký 2025-03-22 05:52:43 +01:00 • committed by GitHub
commit 2621e3f81d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 31 additions and 6 deletions