Home / Servers / DigitalOcean API / kubernetes_get_credentials
Retrieve Credentials for a Kubernetes Cluster
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Retrieve Credentials for a Kubernetes Cluster This endpoint returns a JSON object . It can be used to programmatically construct Kubernetes clients which cannot parse kubeconfig files. The resulting JSON object contains token-based… [GET /v2/kubernetes/clusters/{cluster_id}/credentials]
Name on the gateway: digitalocean_api__kubernetes_get_credentials · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
cluster_id required | string | A unique ID that can be used to reference a Kubernetes… |
expiry_seconds | integer | The duration in seconds that the returned Kubernetes credentials will be… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__kubernetes_get_credentials",
"arguments": {
"cluster_id": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the retrieve credentials for a kubernetes cluster tool with cluster_id set to ….