Skip to content

Conversation

Nayana-R-Gowda
Copy link
Collaborator

Signed-off-by: NAYANAR [email protected]

📌 Summary

What problem does this PR fix and why?
This PR fixes the issue of tool calls failing due to a hardcoded 20s timeout by making the timeout configurable.
It ensures longer-running tool executions complete successfully without being forcefully terminated.

💡 Fix Description

How did you solve it? Key design points.
configurable timeout parameter (mcpgateway_ui_tool_test_timeout) instead of using hardcoded values.
This value is passed from settings to the UI and applied consistently in fetchWithTimeout, ensuring flexibility and accurate metrics.

🧪 Verification

Check Command Status
Lint suite make lint pass
Unit tests make test pass

📐 MCP Compliance (if relevant)

  • Matches current MCP spec
  • No breaking change to MCP clients

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • No secrets/credentials committed

@Nayana-R-Gowda Nayana-R-Gowda marked this pull request as draft September 3, 2025 06:46
Signed-off-by: NAYANAR <[email protected]>
@Nayana-R-Gowda Nayana-R-Gowda requested review from madhav165 and removed request for crivetimihai September 5, 2025 05:27
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.

2 participants