mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

ຈຸດສິ້ນສຸດ mcp ທັງໝົດ

ການພິສູດຕົວຕົນ

ສົ່ງລະຫັດ API ເປັນ bearer token. ລະຫັດຕ້ອງມີສິດ mcp.manage; ລະຫັດທີ່ບໍ່ມີສິດດັ່ງກ່າວຈະຖືກປະຕິເສດດ້ວຍລະຫັດ 403, ບໍ່ແມ່ນ 404.

ບ່ອນທີ່ລະບົບຈັດການອົງກອນຂອງທ່ານໄປ

ຈຸດສິ້ນສຸດນີ້ຮັບເອົາ org_id ເປັນຊ່ອງຂໍ້ມູນໃນ JSON body.

ລະຫັດອົງກອນຂອງທ່ານແມ່ນຢູ່ໜ້າກະແຈ API ໃນແຜງຄວບຄຸມຂອງທ່ານ, ຖັດຈາກກະແຈ itself. ມັນແມ່ນລະຫັດດຽວກັນໃນທຸກໆການໂທທີ່ທ່ານເຮັດ.

ລອງໃຊ້ເບິ່ງ

ປ່ຽນແທນທຸກຢ່າງທີ່ຢູ່ໃນວົງເລັບມຸມດ້ວຍຄ່າຂອງທ່ານເອງ, ແລະ ປ່ຽນແທນຕົວແທນບ່ອນວ່າງຄີດ້ວຍຄີຈາກແຜງຄວບຄຸມຂອງທ່ານ.

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

ເນື້ອຫາຂອງຄຳຮ້ອງ

ຊື່ປະເພດຕ້ອງການສິ່ງທີ່ມັນເປັນ
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ບໍ່

ຖືກໂຈະ

ຊື່ປະເພດຕ້ອງການສິ່ງທີ່ມັນເປັນ
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