Mcp
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
POST |
Create mcp tools
Invoke an MCP tool by name.
This endpoint allows MCP callers to invoke Max AI tools directly without going through the full LangChain conversation flow.
Scopes are resolved dynamically per tool via dangerously_get_required_scopes.
Path parameters
- tool_namestring
Example request
POST /api /environments /:project_id /mcp_tools /:tool_nameExample response
Status 200
Create docs
Run a hybrid (semantic + full-text) RAG search over the PostHog documentation via Inkeep. Returns a markdown body with title, URL, and excerpt for each match for the agent to cite back to the user.
Required API key scopes
project:readRequest parameters
- querystring
Response
Example request
POST /api /environments /:project_id /mcp_tools /docs_searchExample response
Status 200 Markdown-formatted documentation results.
RESPONSE