Update an MCP server's user access
/v1/mcp-servers/{slug}/user-accessUpdate an MCP server's user access.
Sets default_user_access and, when users is sent, replaces the per-person entries. A denied person is refused on their next call. Every listed person must be a member of the server's workspace.
Requires an organization admin key, or a workspace admin key for the server's workspace. Returns 400 for a duplicate user or one outside the workspace. Returns 402 when the organization's plan does not include the MCP Gateway. Returns 404 when the server does not exist in the organization.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Path parameters
slugstringrequiredThe MCP server's slug (
mcps-...).
Query parameters
organizationstringrequiredThe organization's identifier (slug).
Request body application/json
the access to set
default_user_accessenum<string>ALLOWorDENY: access for a person with no entry. DefaultALLOW.One of
"ALLOW","DENY"usersobject[]Per-person entries, at most 1000, without duplicates. Replaces the whole list when sent.
At most 1000 items
Child attributes
user_idstringrequiredThe person's user ID. They must be a member of the server's workspace.
At least 1 characters
enabledbooleanrequiredtrueallows the person,falsedenies them.emailstringRead-only: the person's email, for display.
Responses
default_user_accessenum<string>ALLOWorDENY: access for a person with no entry. DefaultALLOW.One of
"ALLOW","DENY"usersobject[]Per-person entries, at most 1000, without duplicates. Replaces the whole list when sent.
At most 1000 items
Child attributes
user_idstringrequiredThe person's user ID. They must be a member of the server's workspace.
At least 1 characters
enabledbooleanrequiredtrueallows the person,falsedenies them.emailstringRead-only: the person's email, for display.