mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Gbogbo àwọn mcp endpoints

Gbogbo àwọn ìwé àṣẹ olùgbékalẹ̀ àgbékalẹ̀

Ìfàṣẹ́pọ̀

Fi bọ́ọ̀lù (bearer token) ranṣẹ gẹ́gẹ́ bí kọ́kọ́rọ́ API. Kọ́kọ́rọ́ náà gbọ́dọ̀ ní ìyọ̀ǹda mcp.manage; a ó kọ̀ ọ́ silẹ pẹlu 403, kii ṣe 404, ti kọ́kọ́rọ́ náà kò bá ní i.

Ibùdó àmì ìdánimọ̀ ilé-iṣẹ́ rẹ sí

Ibi-iwọle yii n gba org_id gẹgẹ bi aaye ninu ara JSON naa.

Id àjọ rẹ wa lórí ojú-ìwákòòkò àwọn bọ́tìnnì API nínú daṣibọọdú rẹ, lẹ́gbẹ̀ẹ́ bọ́tìnnì náà gan-an. Ó jẹ́ ìd kan náà nínú gbogbo ìpè tí o bá ṣe.

Gbiyanju rẹ

Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.

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

Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API

Àwọn kúlẹ̀kúlẹ̀

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.

Akoonu ibeere naa

OrúkọIruTí a nílòKini o jẹ
namestringBẹẹni
clientMcpClientBẹẹkọThe AI client a connection is for (informational).
scopesstring[]BẹẹniRBAC 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,…
sandboxbooleanBẹẹkọ
org_idUuid | nullBẹẹkọThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullBẹẹkọOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeBẹẹkọISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerBẹẹkọ

Idahun

OrúkọIruTí a nílòKini o jẹ
idUuidBẹẹniUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringBẹẹni
clientMcpClientBẹẹniThe AI client a connection is for (informational).
prefixstringBẹẹniThe token's public lookup prefix (not a secret).
scopesstring[]BẹẹniThe RBAC permission keys this connection's token may exercise.
sandboxbooleanBẹẹni
spend_cap_minorinteger | nullBẹẹkọOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeBẹẹkọISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerBẹẹniThe rolling window the spend cap applies over.
last_used_atstring | nullBẹẹkọ
revoked_atstring | nullBẹẹkọ
created_atstringBẹẹni
tokenstringBẹẹniThe full zmcp_… token, shown exactly once.
endpointstringBẹẹniThe MCP protocol endpoint URL to configure in the AI client.
configobjectBẹẹniA 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_fileobjectBẹẹniWhere that client reads config — e.g. .mcp.json. null when it has no file.
commandobjectBẹẹniA one-line alternative for a client with a command line (Claude Code), else null. It embeds the token, so treat it like the token.
noteobjectBẹẹniSet 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.

Awọn aṣiṣe ti ibudo ipari yii le da pada

401 · 403 · 422 · 429