> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plungeai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Open an MCP run

> Connect catalog MCP servers for a run and get their namespaced tool table. Always close the run when done.


## OpenAPI

```yaml openapi.json post /v1/mcp/runs
openapi: 3.1.0
info:
  title: Ocean One API
  version: 2.1.0
servers:
  - url: https://api.plungeai.com
paths:
  /v1/mcp/runs:
    post:
      summary: "Open an outbound MCP run: connect catalog servers, get their tool table"
      security:
        - ozkBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                server_ids:
                  type: array
                  items:
                    type: string
                  description: Registry mcp-server card ids
              required:
                - server_ids
      responses:
        "201":
          description: Run opened
          content:
            application/json:
              schema:
                type: object
                properties:
                  run_id:
                    type: string
                  tools:
                    type: array
                    items:
                      $ref: "#/components/schemas/McpRunTool"
                  connected:
                    type: array
                    items:
                      type: string
                  failed:
                    type: array
                    items:
                      type: object
                  warnings:
                    type: array
                    items:
                      type: string
        "400":
          description: invalid_body
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "429":
          description: rate_limited — Retry-After header
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
        "502":
          description: no_servers_connected (body carries per-server failures)
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
components:
  schemas:
    Error:
      type: object
      description: Standard error envelope. Every error response also carries an `X-Error-Code` response header equal to error.code, so a client branches on the header regardless of the negotiated body format (json | yaml | markdown | text). When the request created an execution, the `X-Execution-Id` response header is also set. Errors follow the negotiated format like success bodies.
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
          additionalProperties: true
      required:
        - error
    McpRunTool:
      type: object
      description: Namespaced tool descriptor for an outbound MCP run (mcp-executor).
      properties:
        name:
          type: string
          description: Namespaced as mcp__<server>__<tool>
        description:
          type: string
        input_schema:
          type: object
          description: JSON Schema for the tool arguments
      required:
        - name
        - description
        - input_schema
  securitySchemes:
    ozkBearer:
      type: http
      scheme: bearer
      description: "ozk_ platform API key (Authorization: Bearer ozk_…)"
```
