[CLI] Add default fetch MCP server & update doc to require uvx (#9952)

This commit is contained in:
Ryan H. Tran
2025-08-04 11:30:16 +07:00
committed by GitHub
parent 5364e2638b
commit 6fc1a63eb8
5 changed files with 16 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import json
import shutil
from typing import TYPE_CHECKING
if TYPE_CHECKING:
@@ -91,6 +92,14 @@ async def create_mcp_clients(
for server in servers:
if isinstance(server, MCPStdioServerConfig):
# Validate that the command exists before connecting
if not shutil.which(server.command):
logger.error(
f'Skipping MCP stdio server "{server.name}": command "{server.command}" not found. '
f'Please install {server.command} or remove this server from your configuration.'
)
continue
logger.info(f'Initializing MCP agent for {server} with stdio connection...')
client = MCPClient()
try: