Skip to Content
Docs

Run a tool an MCP App view calls

POST
/api/mcp_apps/call

Run a tool an MCP App view calls. Only tools visible to the app; a tool that needs approval answers 409 needs_approval until the call is sent approved.

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
approved?boolean

The user approved this call, for a tool that needs approval

arguments?

Its arguments

name*string

The tool the view calls

tool_id*string

The MCP tool row the view belongs to

Response Body

Success

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