mcp_gateway

Upsert per-tool states for a scope, returning the re-resolved catalog.

post/api/projects/{project_id}/mcp_gateway/servers/{id}/policies/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/mcp_gateway/servers/{id}/policies/
  • Auth: HTTP bearer

Path parameters

idstring uuid required

A UUID string identifying this mcp gateway server.

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

scope_type'team' | 'member' | 'agent'
  • team - Team default
  • member - Member
  • agent - Agent
scope_user_idinteger

Member scope target. Defaults to the requesting user.

scope_service_account_idstring uuid

Agent scope target. Required when scope_type is agent.

Response

countinteger required
nextstring uri nullable
previousstring uri nullable

Example response

{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100"
}

Changes

No recorded changes to this operation across all 1 revision of this API.