Mcp
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
GET | |
GET | |
GET | |
POST | |
POST | |
POST | |
GET | |
GET | |
POST | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
GET | |
PATCH |
List all mcp gateway audit
Read-only trail of proxied tool calls. Project admins see all calls. Members see calls made through their connections, including calls made by agents using connections they shared.
Required API key scopes
project:readQuery parameters
- actor_service_account_idstring
- limitinteger
- offsetinteger
- quick_filterstringDefault:
allOne of:"all""agents""approvals""blocked"
Response
Example request
GET /api /projects /:project_id /mcp_gateway /auditExample response
Status 200
Retrieve mcp gateway audit
Read-only trail of proxied tool calls. Project admins see all calls. Members see calls made through their connections, including calls made by agents using connections they shared.
Required API key scopes
project:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /mcp_gateway /audit /:idExample response
Status 200
Retrieve mcp gateway audit counts
Totals backing the quick-filter chips.
Required API key scopes
project:readQuery parameters
- actor_service_account_idstring
Response
Example request
GET /api /projects /:project_id /mcp_gateway /audit /countsExample response
Status 200
List all mcp gateway config
The team's gateway settings, plus whether the caller can administer them.
Required API key scopes
project:readResponse
Example request
GET /api /projects /:project_id /mcp_gateway /configExample response
Status 200
Create mcp gateway config apply preset
Set the policy baseline for members or agents (admin-only).
Required API key scopes
project:writeRequest parameters
- audience
- preset
Response
Example request
POST /api /projects /:project_id /mcp_gateway /config /apply_presetExample response
Status 200
Create mcp gateway config set all servers enabled
Enable or disable every MCP server for the team (admin-only): flips each registered server and the default for untouched catalog servers, so newly published templates follow the same posture.
Required API key scopes
project:writeRequest parameters
- enabledboolean
Response
Example request
POST /api /projects /:project_id /mcp_gateway /config /set_all_servers_enabledExample response
Status 200
Create mcp gateway config update settings
Update team gateway settings (admin-only).
Required API key scopes
project:writeRequest parameters
- allow_custom_serversboolean
- allow_member_agent_accessboolean
- default_servers_enabledboolean
- member_default_preset
- agent_default_preset
Response
Example request
POST /api /projects /:project_id /mcp_gateway /config /update_settingsExample response
Status 200
List all mcp gateway members
Admin overview of each member's gateway posture, plus the per-member server kill switch.
Required API key scopes
project:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /mcp_gateway /membersExample response
Status 200
Retrieve mcp gateway members
Admin overview of each member's gateway posture, plus the per-member server kill switch.
Required API key scopes
project:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /mcp_gateway /members /:idExample response
Status 200
Create mcp gateway members set access
Turn one gateway server off (or back on) for one member.
Required API key scopes
project:writePath parameters
- idstring
Request parameters
- gateway_server_idstring
- enabledboolean
Example request
POST /api /projects /:project_id /mcp_gateway /members /:id /set_accessExample response
Status 204 No response body
List all mcp gateway rules
Team guardrails evaluated before any scope policy.
Required API key scopes
project:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /mcp_gateway /rulesExample response
Status 200
Create mcp gateway rules
Team guardrails evaluated before any scope policy.
Required API key scopes
project:writeRequest parameters
- namestring
- descriptionstring
- applies_to
- effect
- tool_patternstring
- enabledboolean
Response
Example request
POST /api /projects /:project_id /mcp_gateway /rulesExample response
Status 201
Retrieve mcp gateway rules
Team guardrails evaluated before any scope policy.
Required API key scopes
project:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /mcp_gateway /rules /:idExample response
Status 200
Update mcp gateway rules
Team guardrails evaluated before any scope policy.
Required API key scopes
project:writePath parameters
- idstring
Request parameters
- namestring
- descriptionstring
- applies_to
- effect
- tool_patternstring
- enabledboolean
Response
Example request
PATCH /api /projects /:project_id /mcp_gateway /rules /:idExample response
Status 200
Delete mcp gateway rules
Team guardrails evaluated before any scope policy.
Required API key scopes
project:writePath parameters
- idstring
Example request
DELETE /api /projects /:project_id /mcp_gateway /rules /:idExample response
Status 204 No response body
List all mcp gateway servers
The team's gateway server registry. The registry is sparse: rows appear
through the install/share/OAuth-start flows in views.py, or when an admin
toggles an untouched catalog template here (set_template_enabled).
Servers with no row follow the team config's default_servers_enabled.
Required API key scopes
project:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /mcp_gateway /serversExample response
Status 200
Retrieve mcp gateway servers
The team's gateway server registry. The registry is sparse: rows appear
through the install/share/OAuth-start flows in views.py, or when an admin
toggles an untouched catalog template here (set_template_enabled).
Servers with no row follow the team config's default_servers_enabled.
Required API key scopes
project:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /mcp_gateway /servers /:idExample response
Status 200
Update mcp gateway servers
The team's gateway server registry. The registry is sparse: rows appear
through the install/share/OAuth-start flows in views.py, or when an admin
toggles an untouched catalog template here (set_template_enabled).
Servers with no row follow the team config's default_servers_enabled.
Required API key scopes
project:writePath parameters
- idstring
Request parameters
- namestring
- descriptionstring
- category
- is_team_enabledboolean
Response
Example request
PATCH /api /projects /:project_id /mcp_gateway /servers /:id










