mcp

POST /v1/mcp/connections

Create an MCP connection (Connect AI tool).

ሁሉም የ mcp ማጠናቀቂያ ነጥቦች

ማረጋገጫ

የAPI ቁልፉን እንደ bearer token ይላኩ። ቁልፉ የmcp.manage ፈቃድ ሊኖረው ይገባል፤ ይህ ፈቃድ የሌለው ቁልፍ በ404 ሳይሆን በ403 ውድቅ ይደረጋል።

የድርጅትዎ መታወቂያ የሚገባበት ቦታ

ይህ ማቆሚያ ነጥብ (endpoint) org_idን በJSON አካል ውስጥ እንደ ሜዳ ይወስዳል።

የድርጅትዎ መለያ ቁጥር (ID) በዳሽቦርድዎ ላይ በሚገኙት የኤፒአይ ቁልፎች (API keys) ማያ ገጽ ላይ ከቁልፉ አጠገብ ይገኛል። በሚያደርጉት እያንዳንዱ ጥያቄ ላይ የሚጠቀሙበት መለያ ቁጥር አንድ አይነት ነው።

ሞክሩት

በቅንፍ ውስጥ ያለውን ማንኛውንም ነገር በራስዎ እሴቶች ይተኩ፣ እና ቁልፍ ቦታ ያዢውን ከዳሽቦርድዎ በመጣ ቁልፍ ይተኩ።

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 ኮንሶል ውስጥ ይክፈቱ

ዝርዝሮች

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