mcp_gateway

Set the policy baseline for members or agents (admin-only).

post/api/projects/{project_id}/mcp_gateway/config/apply_preset/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/mcp_gateway/config/apply_preset/
  • Auth: HTTP bearer

Path parameters

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

audience'members' | 'agents' required
  • members - members
  • agents - agents
preset'allow' | 'user' | 'ask' | 'block' required
  • allow - Allow all
  • user - Member decides
  • ask - Ask for destructive
  • block - Block destructive

Response

allow_custom_serversboolean

Whether non-admin members may register custom MCP servers with the gateway.

allow_member_agent_accessboolean

Whether non-admin members may share their available MCP connections with agents and manage agent tool policies.

default_servers_enabledboolean

Whether servers with no gateway registration — including catalog templates published later — are enabled for the team. A registered server's own toggle always wins.

registered_template_idsstring[] required

Catalog template ids that already have a gateway registration, including registrations hidden from the requesting member. Clients use this list to avoid presenting disabled or revoked templates as new.

is_adminboolean required

Whether the requesting user can administer the gateway (org admin or explicit project admin).

Changes

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