younifyd
Menu

Post Mcp

MCP Endpoint (POST)

POST/mcp

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Post Mcp action (under MCP).
  3. Fill in the fields below, then reference the result from later steps as {{postMcp.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

jsonrpcstringrequired

JSON-RPC protocol version. Must be `"2.0"`.

One of2.0

idoneOf

Request identifier. May be a string, integer, or null; omit for notifications.

methodstringrequired

MCP method name (e.g. `tools/list`, `tools/call`, `prompts/list`, `prompts/get`, `notifications/initialized`).

paramsobject

Method-specific parameters.

json
{
  "jsonrpc": "2.0",
  "method": "string",
  "id": null,
  "params": {}
}

Response

Returns 200 with an object. Read it in later steps with {{postMcp.response.data.<field>}}.

jsonrpcstring

JSON-RPC protocol version. Always `"2.0"`.

One of2.0

idoneOf

Echoes the `id` from the corresponding request.

resultobject

Method-specific result. Present on success.

errorobject

Error details. Present on failure.

codeinteger
messagestring
dataobject
json
{
  "jsonrpc": "2.0",
  "id": null,
  "result": {},
  "error": {
    "code": 0,
    "message": "string",
    "data": {}
  }
}

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Was this page helpful?