Resources / MCPCredential
MCPCredential
A credential for one MCP endpoint: a token that works on that endpoint only and nowhere else in the API. The token is shown once, when this object is created; to rotate, create a new credential, move the client over, then delete the old one.
Overview
| API | intelligence.etorm.com/v1alpha1 |
| Resource | mcpcredentials (cluster-scoped inside its cluster) |
| Short names | mcpcred |
| Available in | project clusters only |
| Status | written by a controller through /status |
Minimal example
apiVersion: intelligence.etorm.com/v1alpha1
kind: MCPCredential
metadata:
name: example
spec:
endpointRef:
name: "<name>"
Spec
| Field | Type | Required | Default | Allowed | Description |
endpointRef | reference to MCPEndpoint | yes | | | The endpoint the token is for. Cannot be changed. |
description | string | | | up to 200 characters | Who or what holds it. |
expiresAt | string | | | up to 40 characters | When it stops working (RFC 3339). Empty means it does not expire; give one. |
disabled | boolean | | false | | true refuses the token without deleting the credential. |
Status
| Field | Type | Required | Default | Allowed | Description |
phase | string | | | | Active, Expired or Disabled. |
secretHash | string | | | | SHA-256 of the token's secret. The secret itself is never stored. |
token | string | | | | Returned once, in the create response only. |
lastUsedAt | string | | | | When it was last used (RFC 3339), to the minute. |
conditions | list of object | | | | Detailed state. |
conditions[].type | string | | | | Aspect. |
conditions[].status | string | | | | True or False. |
conditions[].reason | string | | | | Machine-readable reason. |
conditions[].message | string | | | | Human-readable detail. |
Columns in listings
| Column | From |
|---|
| Endpoint | .spec.endpointRef.name |
| Expires | .spec.expiresAt |
| LastUsed | .status.lastUsedAt |
| Phase | .status.phase |
All resources