mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Dukkan mcp wuraren ƙarshe

Tabbatar da Asali

Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin mcp.manage; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.

Inda ID ɗin kungiyar ku ke zuwa

Wannan ma'ajiyar tana karɓar org_id a matsayin fili a cikin jikin JSON.

Ana samun lambar kungiyar ku a kan shafin maɓallan API a cikin madanninku, kusa da maɓallin kansa. Shi ne lambar da ta dace a kowane kiran da kuka yi.

Gwada

May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.

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

An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API

Bayani

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

Jikin buƙata

SunaNau'iAna buƙataAbin da yake
namestringEh
clientMcpClientA'aThe AI client a connection is for (informational).
scopesstring[]EhRBAC 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`,…
sandboxbooleanA'a
org_idUuid | nullA'aThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullA'aOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeA'aISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerA'a

Martani

SunaNau'iAna buƙataAbin da yake
idUuidEhUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringEh
clientMcpClientEhThe AI client a connection is for (informational).
prefixstringEhThe token's public lookup prefix (not a secret).
scopesstring[]EhThe RBAC permission keys this connection's token may exercise.
sandboxbooleanEh
spend_cap_minorinteger | nullA'aOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeA'aISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerEhThe rolling window the spend cap applies over.
last_used_atstring | nullA'a
revoked_atstring | nullA'a
created_atstringEh
tokenstringEhThe full `zmcp_…` token, shown exactly once.
endpointstringEhThe MCP protocol endpoint URL to configure in the AI client.
configobjectEhA paste-ready MCP client config snippet embedding the endpoint + token.

Kuskuren da wannan matsaya za ta iya maido wa

401 · 403 · 422 · 429