MCPcopy Create free account
hub / github.com/IBM/mcp-cli / get_timeout

Method get_timeout

src/mcp_cli/config/runtime.py:67–74  ·  view source on GitHub ↗

Get timeout with priority resolution (sync).

(self, timeout_type: TimeoutType)

Source from the content-addressed store, hash-verified

65 # ================================================================
66
67 def get_timeout(self, timeout_type: TimeoutType) -> float:
68 """Get timeout with priority resolution (sync)."""
69 if timeout_type in self._timeout_cache:
70 return self._timeout_cache[timeout_type].value
71
72 resolved = self._resolve_timeout(timeout_type)
73 self._timeout_cache[timeout_type] = resolved
74 return resolved.value
75
76 async def get_timeout_async(self, timeout_type: TimeoutType) -> float:
77 """Get timeout asynchronously."""

Calls 1

_resolve_timeoutMethod · 0.95