system_login
Authenticate with a Docker registry to enable private image pull and push operations. Use credentials or existing docker login cache; supports custom registries and re-authentication.
Instructions
Authenticate with a Docker registry.
Security: the password is sent as a tool argument, which many MCP clients log verbatim. Prefer
running docker login once on the host so the docker module reuses the credentials cached in
~/.docker/config.json, and avoid calling this tool from an agent loop. Credentials let
image_pull / image_push reach private repositories; system_logout clears them.
Args: username: Registry username password: Registry password or token email: Registry account email registry: URL to the registry (defaults to Docker Hub) reauth: Force re-authentication even if valid credentials exist dockercfg_path: Path to a custom dockercfg file
Returns: dict: The login response: {"Status"} always; "IdentityToken" only when the registry issues one
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"username": "<username>",
"password": "<password>"
},
"name": "system_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| reauth | No | ||
| password | Yes | ||
| registry | No | ||
| username | Yes | ||
| dockercfg_path | No |