mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Tüm mcp uç noktaları

Tüm geliştirici belgeleri

Kimlik Doğrulama

Bearer token olarak bir API anahtarı gönderin. Anahtar mcp.manage iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.

Kurum kimliğinizin yazılacağı yer

Bu uç nokta, JSON gövdesinde bir alan olarak org_id alır.

Kuruluş kimliğiniz (id), kontrol panelinizdeki API anahtarları ekranında, anahtarın hemen yanında yer alır. Yaptığınız her çağrıda aynı kimlik kullanılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

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[]> }'

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

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.

İstek gövdesi

AdTürZorunluNe olduğu
namestringEvet
clientMcpClientHayırThe AI client a connection is for (informational).
scopesstring[]EvetRBAC 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,…
sandboxbooleanHayır
org_idUuid | nullHayırThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullHayırOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeHayırISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerHayır

Yanıt

AdTürZorunluNe olduğu
idUuidEvetUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringEvet
clientMcpClientEvetThe AI client a connection is for (informational).
prefixstringEvetThe token's public lookup prefix (not a secret).
scopesstring[]EvetThe RBAC permission keys this connection's token may exercise.
sandboxbooleanEvet
spend_cap_minorinteger | nullHayırOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeHayırISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerEvetThe rolling window the spend cap applies over.
last_used_atstring | nullHayır
revoked_atstring | nullHayır
created_atstringEvet
tokenstringEvetThe full zmcp_… token, shown exactly once.
endpointstringEvetThe MCP protocol endpoint URL to configure in the AI client.
configobjectEvetA paste-ready config for the connection's client, embedding the endpoint and token. The shape differs per client: Claude Code gets an http-typed server, Cursor a url +…
config_fileobjectEvetWhere that client reads config — e.g. .mcp.json. null when it has no file.
commandobjectEvetA one-line alternative for a client with a command line (Claude Code), else null. It embeds the token, so treat it like the token.
noteobjectEvetSet when the client cannot use a bearer token at all. chatgpt_needs_oauth: ChatGPT connects by OAuth sign-in only, so this token cannot reach it.

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 422 · 429