Skip to content

Commit b999280

Browse files
Timeout on tool closure
1 parent eaa486f commit b999280

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "open-edison"
3-
version = "0.1.50"
3+
version = "0.1.51"
44
description = "Open-source MCP security, aggregation, and monitoring. Single-user, self-hosted MCP proxy."
55
readme = "README.md"
66
authors = [

src/mcp_importer/api.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,18 @@ async def _list_tools_only() -> Any:
230230
if oauth_info.status in (OAuthStatus.NEEDS_AUTH, OAuthStatus.AUTHENTICATED):
231231
return True
232232
# NOT_REQUIRED: quick unauthenticated ping
233-
async with FastMCPClient(remote_url, auth=None) as client: # type: ignore
233+
# print(f"Pinging remote server '{server.name}' without OAuth")
234+
async with FastMCPClient(remote_url, auth=None, timeout=10.0) as client: # type: ignore
235+
# print(
236+
# f"Pinging remote server '{server.name}' without OAuth - Inside client with-statement"
237+
# )
234238
await asyncio.wait_for(client.ping(), timeout=10.0)
239+
# print(
240+
# f"Pinging remote server '{server.name}' without OAuth - Inside client with-statement but after ping"
241+
# )
242+
# print(
243+
# f"Pinging remote server '{server.name}' without OAuth - After client with-statement"
244+
# )
235245
return True
236246
except Exception as e: # noqa: BLE001
237247
log.error("MCP remote verification failed for '{}': {}", server.name, e)

src/setup_tui/main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,12 @@ def run(*, dry_run: bool = False, skip_oauth: bool = False) -> None:
173173
show_welcome_screen(dry_run=dry_run)
174174
# Additional setup steps will be added here
175175

176-
mcp_sources = detect_clients()
177-
mcp_clients = detect_clients()
176+
mcp_clients = list(sorted(detect_clients(), key=lambda x: x.value))
178177

179178
configs: list[MCPServerConfig] = []
180179

181-
for source in mcp_sources:
182-
configs.extend(handle_mcp_source(source, dry_run=dry_run, skip_oauth=skip_oauth))
180+
for client in mcp_clients:
181+
configs.extend(handle_mcp_source(client, dry_run=dry_run, skip_oauth=skip_oauth))
183182

184183
if len(configs) == 0:
185184
print(

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)