跳转到主要内容
POST
POST /admin/api/mcp-scopes/batch

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json

One step of a batch write. Every item of one batch lands in a single revision commit: either all of them are durable or none is.

create
object
必填

响应

(object | null)[]

Success

action
string
必填

allow or deny.

apiKeyId
string | null
必填
id
string
必填
priority
integer<int32>
必填

Higher wins; at one priority a refusal wins.

scope
string
必填

mcp:<server>:<tool>; either part may be *, the tool part may be @read, @write or @destructive, and mcp:* is everything.

userId
string | null
必填

The rule's subject: exactly one of the two is set.