mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Alle mcp Endpunkte

Authentifizierung

Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung mcp.manage verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.

Hier kommt Ihre Organisations-ID hin

Dieser Endpunkt akzeptiert org_id als Feld im JSON-Body.

Die ID Ihrer Organisation finden Sie im Dashboard auf dem Bildschirm für API-Schlüssel direkt neben dem Schlüssel selbst. Sie ist bei jedem Ihrer Aufrufe dieselbe.

Ausprobieren

Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.

curl -X POST https://api.zinndigital.com/v1/mcp/connections \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "name": <string>, "scopes": <string[]> }'

Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole

Details

Mints a per-tool MCP connection and returns the full `zmcp_…` token **once** (only its hash is stored) plus a paste-ready client config snippet. The requested `scopes` must be permissions the caller already holds in the target org — an unheld scope is a `403` (a connection can never out-scope its creator), an unknown one a `422`. An optional spend cap bounds AI-triggered paid actions. Requires `mcp.manage`.

Anfragekörper

NameTypErforderlichWas es ist
namestringJa
clientMcpClientNeinThe AI client a connection is for (informational).
scopesstring[]JaRBAC permission keys to grant the token. Each must be a permission the caller holds in the target org (a connection can never out-scope its creator); an unheld scope is a `403`,…
sandboxbooleanNein
org_idUuid | nullNeinThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullNeinOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeNeinISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerNein

Antwort

NameTypErforderlichWas es ist
idUuidJaUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringJa
clientMcpClientJaThe AI client a connection is for (informational).
prefixstringJaThe token's public lookup prefix (not a secret).
scopesstring[]JaThe RBAC permission keys this connection's token may exercise.
sandboxbooleanJa
spend_cap_minorinteger | nullNeinOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeNeinISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerJaThe rolling window the spend cap applies over.
last_used_atstring | nullNein
revoked_atstring | nullNein
created_atstringJa
tokenstringJaThe full `zmcp_…` token, shown exactly once.
endpointstringJaThe MCP protocol endpoint URL to configure in the AI client.
configobjectJaA paste-ready MCP client config snippet embedding the endpoint + token.

Fehler, die dieser Endpunkt zurückgeben kann

401 · 403 · 422 · 429