context_use
Switch the active Docker context used by the CLI on the host. This targets a different Docker environment for command-line commands, while SDK tools remain unaffected.
Instructions
Set the active Docker context for the CLI on the host running this MCP server.
Note: this does not retarget the long-lived docker-py client — SDK-backed tools keep using the endpoint they connected to at startup. To retarget those, restart the server with a different DOCKER_HOST / DOCKER_CONTEXT.
args: name - Existing context name to set as default returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |