Mcp Server
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
POST | |
POST | |
GET | |
PATCH | |
POST | |
POST | |
GET | |
GET | |
POST | |
POST |
List all mcp server installations
Required API key scopes
project:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /mcp_server_installationsExample response
Status 200
Create mcp server installations
Required API key scopes
project:writeRequest parameters
- display_namestring
- urlstring
- auth_type
- is_enabledboolean
Response
Example request
POST /api /projects /:project_id /mcp_server_installationsExample response
Status 201
Retrieve mcp server installations
Required API key scopes
project:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /mcp_server_installations /:idExample response
Status 200
Update mcp server installations
Required API key scopes
project:readPath parameters
- idstring
Request parameters
- display_namestring
- descriptionstring
- is_enabledboolean
Response
Example request
PATCH /api /projects /:project_id /mcp_server_installations /:idExample response
Status 200
Delete mcp server installations
Required API key scopes
project:readPath parameters
- idstring
Example request
DELETE /api /projects /:project_id /mcp_server_installations /:idExample response
Status 204 No response body
Create mcp server installations call tool
Invoke one tool on a connected MCP server.
The request/response shape is plain REST rather than the JSON-RPC envelope
proxy speaks, because the caller here is an agent surface (the PostHog MCP's
exec) that wants one tool result, not an MCP transport of its own.
Required API key scopes
project:readPath parameters
- idstring
Request parameters
- tool_namestring
- argumentsobject
Response
Example request
POST /api /projects /:project_id /mcp_server_installations /:id /call_toolExample response
Status 200
Status 403
Status 404
Create mcp server installations proxy
Required API key scopes
project:readPath parameters
- idstring
Request parameters
- display_namestring
- urlstring
- auth_type
- is_enabledboolean
Example request
POST /api /projects /:project_id /mcp_server_installations /:id /proxyExample response
Status 200
Retrieve mcp server installations tools
Required API key scopes
project:readPath parameters
- idstring
Response
Example request
GET /api /projects /:project_id /mcp_server_installations /:id /toolsExample response
Status 200
Update mcp server installations tools
Required API key scopes
project:readPath parameters
- idstring
- tool_namestring
Request parameters
- approval_state
Response
Example request
PATCH /api /projects /:project_id /mcp_server_installations /:id /tools /:tool_nameExample response
Status 200
Create mcp server installations tools refresh
Required API key scopes
project:readPath parameters
- idstring
Request parameters
- display_namestring
- urlstring
- auth_type
- is_enabledboolean
Response
Example request
POST /api /projects /:project_id /mcp_server_installations /:id /tools /refreshExample response
Status 200
Retrieve mcp server installations authorize
Start (or re-start) an OAuth flow.
Pass template_id to (re)connect a catalog template, or
installation_id to reconnect an existing custom install using its
cached metadata and per-user DCR creds.
Required API key scopes
project:readQuery parameters
- install_sourcestringDefault:
posthogOne of:"posthog""posthog-code" - installation_idstring
- posthog_code_callback_urlstringDefault:
- return_pathstringDefault:
- template_idstring
Example request
GET /api /projects /:project_id /mcp_server_installations /authorizeExample response
Status 200 No response body
Retrieve mcp server installations available tools
Every tool the caller can currently reach, across all their connections.
One request instead of one per connection: an agent surface resolving its
tool list on each session cannot afford a fan-out. do_not_use and removed
tools are omitted — an agent should not see what it cannot call — while
needs_approval tools are listed with their state so the caller can explain
the block rather than report the capability as missing.
Required API key scopes
project:readResponse
Example request
GET /api /projects /:project_id /mcp_server_installations /available_toolsExample response
Status 200
Create mcp server installations install custom
Required API key scopes
project:readRequest parameters
- namestring
- urlstring
- auth_type
- api_keystringDefault:
- descriptionstringDefault:
- client_idstringDefault:
- client_secretstringDefault:
- install_sourceDefault:
posthog - posthog_code_callback_urlstringDefault:
- scopeDefault:
personal - team_enabledbooleanDefault:
true - agent_scope
- return_pathstringDefault:
Response
Example request
POST /api /projects /:project_id /mcp_server_installations /install_customExample response
Status 200
Status 201
Create mcp server installations install template
Required API key scopes
project:readRequest parameters
- template_idstring
- api_keystringDefault:
- install_sourceDefault:
posthog - posthog_code_callback_urlstringDefault:
- scopeDefault:
personal - team_enabledbooleanDefault:
true - agent_scope
- return_pathstringDefault:
Response
Example request
POST /api /projects /:project_id /mcp_server_installations /install_template