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

# List MCP servers

> List MCP servers visible to the caller across account and team scopes, with pagination.

## Restrictions

| Aspect | Value |
| - | - |
| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |
| Permissions | None — any valid `app_key` can call this operation |

## Usage

* Pagination uses `p`/`limit`: `p` below 1 is treated as 1 and `limit` below 1 as 20. Results are ordered by name, then server ID, ascending.
* Visibility follows real team membership for every caller, owner and admins included: account-scoped rows plus rows of teams the caller belongs to; `team_ids` entries outside that set are ignored.
* `scope=account` returns only account-scoped rows; `scope=team` returns only team rows; `all` (default) returns team rows plus account-scoped rows unless `include_account=false`.
* `query` performs a case-insensitive substring search across name, description, AI-generated description, server ID, transport, URL, command, and source template name.
* The response never includes a live tool list; `can_edit` on each row tells whether the caller may change that server.


## OpenAPI

````yaml /api-reference/safari.openapi.en.json post /safari/mcp/server/list
openapi: 3.1.0
info:
  title: Flashduty Open API
  description: >-
    Public HTTP API for the Flashduty AI SRE platform — skills, MCP servers
    (connectors), A2A agents, and sessions. Every operation is authenticated
    with an `app_key` query parameter issued from the Flashduty console.
  version: 1.0.0
servers:
  - url: https://api.flashcat.cloud
    description: Flashduty Open API
security:
  - AppKeyAuth: []
tags:
  - name: AI SRE/Skills
    description: AI SRE agent skill management.
  - name: AI SRE/MCP servers
    description: MCP (Model Context Protocol) server management.
  - name: AI SRE/A2A agents
    description: A2A (agent-to-agent) remote agent management.
  - name: AI SRE/Sessions
    description: AI SRE agent session history — list, inspect, and export transcripts.
  - name: AI SRE/Automations
  - name: AI SRE/Knowledge
  - name: AI SRE/Artifacts
    description: >-
      AI SRE artifact gallery — publish, browse, and publicly share
      agent-produced files.
paths:
  /safari/mcp/server/list:
    post:
      tags:
        - AI SRE/MCP servers
      summary: List MCP servers
      description: >-
        List MCP servers visible to the caller across account and team scopes,
        with pagination.
      operationId: mcp-read-server-list
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MCPServerListRequest'
            example:
              p: 1
              limit: 20
              include_account: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ResponseEnvelope'
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/MCPServerListResponse'
              example:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                data:
                  total: 1
                  servers:
                    - server_id: mcp_4kP9wQ2nLceRtY7uVb3xA1
                      account_id: 10023
                      team_id: 0
                      can_edit: true
                      environments: []
                      server_name: prometheus
                      description: Query Prometheus metrics and alerts.
                      transport: streamable-http
                      url: https://mcp.example.com/prometheus
                      headers:
                        Authorization: Bear****f2c1
                      status: enabled
                      connect_timeout: 0
                      call_timeout: 0
                      auth_mode: shared
                      created_by: 80011
                      created_at: 1716960000000
                      updated_at: 1717046400000
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - AppKeyAuth: []
components:
  schemas:
    MCPServerListRequest:
      type: object
      description: Pagination, scope, and search filters for listing MCP servers.
      properties:
        p:
          type: integer
          description: Page number, 1-based; values below 1 are treated as 1.
          default: 1
        limit:
          type: integer
          description: >-
            Page size; values below 1 fall back to 20. No upper bound is
            enforced.
          default: 20
        scope:
          type: string
          description: >-
            Restrict results to a scope: `account` for account-wide rows only,
            `team` for the caller's own visible team rows only, or omit
            (defaults to `all`) for both, subject to team_ids/include_account.
          enum:
            - all
            - account
            - team
          default: all
        query:
          type: string
          maxLength: 128
          description: >-
            Case-insensitive substring search across name, description,
            AI-generated description, server ID, transport, URL, command, and
            source template name.
        team_ids:
          type: array
          items:
            type: integer
            format: int64
          description: >-
            Restrict to these team IDs. IDs of teams the caller does not belong
            to are ignored; empty means all of the caller's teams.
        include_account:
          type:
            - boolean
            - 'null'
          description: >-
            Include account-scoped (`team_id=0`) rows. Defaults to `true`;
            ignored when `scope` is `account` (always included) or `team` (never
            included).
    ResponseEnvelope:
      type: object
      description: >-
        Standard response envelope used by every Flashduty public API. On
        success `data` contains the endpoint-specific payload and `error` is
        absent. On failure `error` is present and `data` is absent. `request_id`
        is always present and is also mirrored in the `Flashcat-Request-Id`
        response header.
      properties:
        request_id:
          type: string
          description: >-
            Unique ID for this request. Mirrored in the Flashcat-Request-Id
            header. Include it when reporting issues.
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
        error:
          $ref: '#/components/schemas/DutyError'
        data:
          description: >-
            Operation-specific payload, documented in each operation's 200
            response. Operations without a payload return `{}` or omit `data`
            entirely.
      required:
        - request_id
    MCPServerListResponse:
      type: object
      description: Paginated MCP server list.
      properties:
        total:
          type: integer
          description: Total number of matching servers.
          format: int64
        servers:
          type: array
          items:
            $ref: '#/components/schemas/MCPServerItem'
          description: MCP servers on this page.
      required:
        - total
        - servers
    DutyError:
      type: object
      description: >-
        Error payload inside the response envelope. Present only on non-2xx
        responses.
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
          description: >-
            Human-readable error message in the response language (`locale` /
            `lang` query parameter or `Accept-Language` header). May name the
            offending field; do not parse it.
          example: The specified parameter template_id is not valid.
      required:
        - code
        - message
    MCPServerItem:
      type: object
      description: An MCP server (connector) registered on the account.
      properties:
        server_id:
          type: string
          description: Unique MCP server ID (prefix `mcp_`).
        account_id:
          type: integer
          description: Owning account ID.
          format: int64
        team_id:
          type: integer
          description: 'Team scope: 0 = account-wide; >0 = the owning team.'
          format: int64
        can_edit:
          type: boolean
          description: >-
            Whether the caller may update, enable, disable, or delete this
            server: `true` for an account-scoped server only for the account
            owner or an admin, for a team server only for members of that team.
            Create and update responses always return `true`.
        environments:
          type: array
          items:
            type: string
          description: >-
            Execution environments this server is callable from (`cloud` and/or
            BYOC runner environment IDs). Always present; `[]` means all
            environments (also the value on legacy rows created before this
            field).
        server_name:
          type: string
          description: MCP server name, unique within its scope (account-wide or one team).
        description:
          type: string
          description: Server description.
        ai_description:
          type: string
          description: >-
            LLM-generated description, preferred over `description` when
            present. Omitted when not yet generated.
        transport:
          type: string
          description: >-
            Transport protocol. One of: `stdio` (standard I/O to a local
            subprocess), `sse` (standalone SSE, the legacy MCP transport),
            `streamable-http` (the newer HTTP streaming transport).
          enum:
            - stdio
            - sse
            - streamable-http
        command:
          type: string
          description: Executable command (stdio transport only).
        args:
          type: array
          items:
            type: string
          description: >-
            Command arguments (stdio transport). Omitted when `can_edit` is
            `false`.
        env:
          type: object
          additionalProperties:
            type: string
          description: >-
            Environment variables (`stdio` transport). Values under
            credential-looking names, or encrypted at rest, are masked as
            `****`. Omitted when empty.
        url:
          type: string
          description: >-
            Server URL (sse / streamable-http transport). When `can_edit` is
            `false`, credentials in the URL are removed and every query value is
            replaced with `****`.
        headers:
          type: object
          additionalProperties:
            type: string
          description: >-
            HTTP headers (`sse` / `streamable-http` transport), masked by the
            same rule as `env`. Omitted when empty.
        proxy_url:
          type: string
          description: >-
            Outbound proxy URL used to reach the server. Not settable through
            the public API; omitted when empty. When `can_edit` is `false`,
            credentials in the URL are removed and every query value is replaced
            with `****`.
        status:
          type: string
          description: >-
            Whether the server's tools are offered to AI SRE sessions:

            - `enabled`: available (default on create).

            - `disabled`: kept but not offered; re-enable with `POST
            /safari/mcp/server/enable`.
          enum:
            - enabled
            - disabled
        connect_timeout:
          type: integer
          description: >-
            Connection timeout in seconds as stored; `0` means the 10-second
            default is used.
        call_timeout:
          type: integer
          description: >-
            Tool-call timeout in seconds as stored; `0` means the 60-second
            default is used.
        allow_insecure_oauth_http:
          type: boolean
          description: >-
            Allow this server's OAuth token exchange over plaintext HTTP;
            testing use only. Omitted when false.
        allow_insecure_tls_skip_verify:
          type: boolean
          description: >-
            Skip TLS certificate verification when connecting to this server;
            testing use only. Omitted when false.
        auth_mode:
          type: string
          description: >-
            Who supplies the credential; omitted when empty, which behaves like
            `shared`:

            - `shared`: one credential stored on the server (`env` / `headers`)
            is used for every caller.

            - `per_user_secret`: each user stores their own secret, sent in the
            header named by `secret_schema.header_name`.

            - `per_user_oauth`: each user completes their own OAuth
            authorization; discovery and client registration run on first use.
          enum:
            - shared
            - per_user_secret
            - per_user_oauth
        secret_schema:
          type: string
          description: JSON-encoded secret schema (per_user_secret mode).
        oauth_metadata:
          type: string
          description: JSON-encoded OAuth metadata (per_user_oauth mode).
        source_template_name:
          type: string
          description: >-
            Marketplace template this server was installed from; omitted for
            servers created by hand.
        test_error:
          type: string
          description: >-
            Error message from the last connection test; omitted when the last
            test succeeded or the server was never tested.
        tested_at:
          type: integer
          format: int64
          description: >-
            Time of the last connection test, Unix timestamp in milliseconds;
            omitted if the server was never tested.
        created_by:
          type: integer
          description: Member ID that created the server.
          format: int64
        created_at:
          type: integer
          format: int64
          description: Creation time. Unix timestamp in milliseconds.
        updated_at:
          type: integer
          format: int64
          description: Last update time. Unix timestamp in milliseconds.
      required:
        - server_id
        - account_id
        - team_id
        - can_edit
        - server_name
        - description
        - transport
        - status
        - connect_timeout
        - call_timeout
        - created_by
        - created_at
        - updated_at
        - environments
    ErrorResponse:
      type: object
      description: Response envelope for errors. `error` is required; `data` is absent.
      properties:
        request_id:
          type: string
          example: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
          description: >-
            Unique trace ID of this request; include it when reporting issues so
            logs can be located.
        error:
          $ref: '#/components/schemas/DutyError'
      required:
        - request_id
        - error
    ErrorCode:
      type: string
      description: >-
        Error code. Every failed response sets `error.code` to one of these
        stable strings; branch on it rather than on the HTTP status.


        | Code | HTTP | Meaning |

        |---|---|---|

        | `OK` | 200 | Reserved; never returned on a failed request. |

        | `InvalidParameter` | 400 | A parameter is missing, has the wrong type,
        or failed validation; `message` usually names the field. |

        | `BadRequest` | 400 | The request breaks a business rule or conflicts
        with the current state of an object; `message` says which. |

        | `InvalidContentType` | 400 | The body is not sent as
        `application/json`. |

        | `ResourceNotFound` | 400 | The referenced object does not exist in
        this account or was deleted. Returned as HTTP 400, not 404. |

        | `NoLicense` | 400 | The account's plan does not include the feature, a
        plan quota is used up, the plan has expired, or credits are
        insufficient. |

        | `ReferenceExist` | 400 | The object is still referenced by other
        objects, so it cannot be deleted. |

        | `Unauthorized` | 401 | The APP Key is missing, invalid, or deleted. |

        | `BalanceNotEnough` | 402 | Console-only (billing); not returned by
        Open API operations. |

        | `AccessDenied` | 403 | The APP Key's permission scope or the creator's
        role does not allow this operation or object. |

        | `RouteNotFound` | 404 | No operation matches the HTTP method and path.
        |

        | `MethodNotAllowed` | 405 | The path exists but not for this HTTP
        method. |

        | `UndonedOrderExist` | 409 | Console-only (billing); not returned by
        Open API operations. |

        | `EntityTooLarge` | 413 | The request body exceeds the size limit. |

        | `RequestLocked` | 423 | Console-only (sign-in protection); not
        returned by Open API operations. |

        | `RequestVerifyRequired` | 428 | Console-only (verification code); not
        returned by Open API operations. |

        | `DangerousOperation` | 428 | Console-only (MFA for high-risk actions);
        not returned by Open API operations. |

        | `RequestTooFrequently` | 429 | A rate limit was hit; wait for the
        `Flashcat-Request-Rate-Limit-Delay` response header (seconds) before
        retrying. |

        | `InternalError` | 500 | Unexpected server error; retry with backoff
        and include `request_id` when reporting. |

        | `ServiceUnavailable` | 503 | A backend dependency is overloaded or
        unavailable; retry with backoff. |
      enum:
        - OK
        - InvalidParameter
        - BadRequest
        - InvalidContentType
        - ResourceNotFound
        - NoLicense
        - ReferenceExist
        - Unauthorized
        - BalanceNotEnough
        - AccessDenied
        - RouteNotFound
        - MethodNotAllowed
        - UndonedOrderExist
        - EntityTooLarge
        - RequestLocked
        - RequestVerifyRequired
        - DangerousOperation
        - RequestTooFrequently
        - InternalError
        - ServiceUnavailable
      x-enumDescriptions:
        OK: Reserved; never returned on a failed request.
        InvalidParameter: >-
          A parameter is missing, has the wrong type, or failed validation;
          `message` usually names the field.
        BadRequest: >-
          The request breaks a business rule or conflicts with the current state
          of an object; `message` says which.
        InvalidContentType: The body is not sent as `application/json`.
        ResourceNotFound: >-
          The referenced object does not exist in this account or was deleted.
          Returned as HTTP 400, not 404.
        NoLicense: >-
          The account's plan does not include the feature, a plan quota is used
          up, the plan has expired, or credits are insufficient.
        ReferenceExist: >-
          The object is still referenced by other objects, so it cannot be
          deleted.
        Unauthorized: The APP Key is missing, invalid, or deleted.
        BalanceNotEnough: Console-only (billing); not returned by Open API operations.
        AccessDenied: >-
          The APP Key's permission scope or the creator's role does not allow
          this operation or object.
        RouteNotFound: No operation matches the HTTP method and path.
        MethodNotAllowed: The path exists but not for this HTTP method.
        UndonedOrderExist: Console-only (billing); not returned by Open API operations.
        EntityTooLarge: The request body exceeds the size limit.
        RequestLocked: >-
          Console-only (sign-in protection); not returned by Open API
          operations.
        RequestVerifyRequired: Console-only (verification code); not returned by Open API operations.
        DangerousOperation: >-
          Console-only (MFA for high-risk actions); not returned by Open API
          operations.
        RequestTooFrequently: >-
          A rate limit was hit; wait for the `Flashcat-Request-Rate-Limit-Delay`
          response header (seconds) before retrying.
        InternalError: >-
          Unexpected server error; retry with backoff and include `request_id`
          when reporting.
        ServiceUnavailable: A backend dependency is overloaded or unavailable; retry with backoff.
      example: InvalidParameter
  responses:
    BadRequest:
      description: Invalid request — usually a missing or malformed parameter.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingParameter:
              summary: Missing required parameter
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InvalidParameter
                  message: The specified parameter skill_id is not valid.
    Unauthorized:
      description: Missing or invalid app_key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingAppKey:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: Unauthorized
                  message: You are unauthorized.
    Forbidden:
      description: >-
        The app_key is valid, but its permission scope or the creator's role
        does not allow this operation or object.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            accessDenied:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: AccessDenied
                  message: Access Denied.
    TooManyRequests:
      description: >-
        Rate limit hit. Wait for the number of seconds in
        `Flashcat-Request-Rate-Limit-Delay`, then retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            rateLimited:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: RequestTooFrequently
                  message: Request too frequently.
      headers:
        Flashcat-Request-Rate-Limit-Delay:
          description: >-
            Seconds until the current rate-limit window resets. Absent when the
            request was rejected by the gateway's global protection limit.
          schema:
            type: integer
            minimum: 0
    ServerError:
      description: Unexpected server-side error. Include the request_id when reporting.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internal:
              value:
                request_id: 01HK8XQE3Z7JM2NTFQ5YJ8P9R4
                error:
                  code: InternalError
                  message: >-
                    We encountered an internal error, and it has been reported.
                    Please try again later.
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: app_key
      description: >-
        APP Key created in the Flashduty console under My → APP Key. Send it as
        the `app_key` query parameter or in the `Fd-App-Key` request header. Its
        effective access is the intersection of the key's permission scope and
        the creator's current role permissions. Keep it secret.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.