feat: add option for custom docker host socket

Why:

The socket is different when we use rootless mode with docker.
This commit is contained in:
Xavier Bouthillier
2025-04-16 09:28:44 -04:00
parent cfb54b2cc1
commit 1f28d83bf3
4 changed files with 10 additions and 1 deletions

View File

@@ -1347,6 +1347,9 @@ def add_mcp(
env: List[str] = typer.Option(
[], "--env", "-e", help="Environment variables (format: KEY=VALUE)"
),
docker_host: Optional[str] = typer.Option(
None, "--docker-host", help="Docker host socket file that should be mounted on the MCP container",
),
no_default: bool = typer.Option(
False, "--no-default", help="Don't add MCP server to defaults"
),
@@ -1380,6 +1383,7 @@ def add_mcp(
proxy_options,
environment,
host_port,
docker_host,
add_as_default=not no_default,
)