Skip to Content
Docs

Read an MCP App view's HTML and its declared CSP and permissions

POST
/api/mcp_apps/resource

Read an MCP App view's HTML and its declared CSP and permissions.

Not available to personal access tokens; call it from a signed-in session.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
tool_id*string

The MCP tool row the call ran on

uri*string

The view's ui:// resource

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/mcp_apps/resource' \  -H 'Content-Type: application/json' \  -d '{  "tool_id": "string",  "uri": "string"}'
Example Response200
Empty