mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

Барлық mcp соңғы нүктелері

Аутентификация

API кілтін bearer токені ретінде жіберіңіз. Кілтте mcp.manage рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.

Ұйымыңыздың идентификаторы орналасатын жер

Бұл соңғы нүкте JSON корпусында өріс ретінде org_id қабылдайды.

Сіздің ұйым идентификаторыңыз басқару панеліндегі API кілттері экранында, кілттің өзінің жанында орналасқан. Бұл сіз жасайтын әрбір шақырудағы бірдей идентификатор.

Әрекет етіп көру

Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.

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

Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған API арқылы орындайды. Бұл соңғы нүктені API консолінде ашыңыз

Мәліметтер

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

Сұрау денесі

АтыTүріМіндеттіМазмұны
namestringИә
clientMcpClientЖоқThe AI client a connection is for (informational).
scopesstring[]ИәRBAC 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`,…
sandboxbooleanЖоқ
org_idUuid | nullЖоқThe org the connection belongs to. Defaults to the caller's sole managed org.
spend_cap_minorinteger | nullЖоқOptional per-window paid-action budget (integer minor units). Null = no cap.
spend_currencyCurrencyCodeЖоқISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerЖоқ

Жауап

АтыTүріМіндеттіМазмұны
idUuidИәUUIDv7 identifier — sortable by creation time (docs/02 §8).
namestringИә
clientMcpClientИәThe AI client a connection is for (informational).
prefixstringИәThe token's public lookup prefix (not a secret).
scopesstring[]ИәThe RBAC permission keys this connection's token may exercise.
sandboxbooleanИә
spend_cap_minorinteger | nullЖоқOptional per-window budget (integer minor units, CLAUDE.md §2.8) for AI-triggered paid actions. Null = no cap.
spend_currencyCurrencyCodeЖоқISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
spend_window_secondsintegerИәThe rolling window the spend cap applies over.
last_used_atstring | nullЖоқ
revoked_atstring | nullЖоқ
created_atstringИә
tokenstringИәThe full `zmcp_…` token, shown exactly once.
endpointstringИәThe MCP protocol endpoint URL to configure in the AI client.
configobjectИәA paste-ready MCP client config snippet embedding the endpoint + token.

Бұл соңғы нүкте қайтара алатын қателер

401 · 403 · 422 · 429