context_list
List Docker CLI contexts to see available daemons and identify the active one.
Instructions
List Docker CLI contexts known to the host running this MCP server.
Contexts are a CLI concept (stored in the docker config dir) letting one CLI target multiple
daemons. This server uses whatever DOCKER_HOST / current-context resolved to at startup, so
changing contexts only affects future subprocess-based tools, not the docker-py SDK client.
Use context_inspect for one context's full config and context_use to switch.
Raises RemoteFailureError if the CLI call fails.
Returns:
list: One dict per context, keyed as the CLI emits them - Name, Description,
DockerEndpoint and Current, the last being true for the context the CLI
would use by default
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "context_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||