mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Vituo vyote vya mcp

Uthibitishaji

Tuma ufunguo wa API kama tokeni ya kubeba. Ufunguo lazima uwe na ruhusa ya mcp.manage; ufunguo usio nayo unakataliwa kwa 403, si 404.

Mahali ambapo kitambulisho cha shirika lako huwekwa

Sehemu hii ya mwisho inachukua org_id kama uwanja katika mwili wa JSON.

Kitambulisho cha shirika lako kipo kwenye skrini ya funguo za API katika dashibodi yako, kando ya ufunguo wenyewe. Ni kitambulisho kile kile katika kila ombi unalofanya.

Jaribu

Badilisha chochote kilicho ndani ya mabano ya pembe na maadili yako mwenyewe, na kishikiliaji cha ufunguo na ufunguo kutoka kwa dashibodi yako.

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

Umeingia kwenye akaunti? Dashibodi yako ya kiweko cha API inajaza kitambulisho chako halisi cha shirika na ufunguo wako mwenyewe, na kuendesha ombi dhidi ya API ya moja kwa moja ili uweze kuona jibu halisi. Fungua sehemu hii ya mwisho (endpoint) kwenye konsole ya API

Maelezo

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`.

Mwili wa ombi

JinaAinaInayohitajikaKilicho hiki
namestringNdiyo
clientMcpClientHapanaThe AI client a connection is for (informational).
scopesstring[]NdiyoRBAC 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`,…
sandboxbooleanHapana
org_idUuid | nullHapanaThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullHapanaOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeHapanaISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerHapana

Majibu

JinaAinaInayohitajikaKilicho hiki
idUuidNdiyoUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringNdiyo
clientMcpClientNdiyoThe AI client a connection is for (informational).
prefixstringNdiyoThe token's public lookup prefix (not a secret).
scopesstring[]NdiyoThe RBAC permission keys this connection's token may exercise.
sandboxbooleanNdiyo
spend_cap_minorinteger | nullHapanaOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeHapanaISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerNdiyoThe rolling window the spend cap applies over.
last_used_atstring | nullHapana
revoked_atstring | nullHapana
created_atstringNdiyo
tokenstringNdiyoThe full `zmcp_…` token, shown exactly once.
endpointstringNdiyoThe MCP protocol endpoint URL to configure in the AI client.
configobjectNdiyoA paste-ready MCP client config snippet embedding the endpoint + token.

Hitilafu ambazo mwisho huu unaweza kurudisha

401 · 403 · 422 · 429