servers

List servers: REST lists your servers, or one project's with project_reference; GraphQL and MCP list the servers of one project. Requires project.read.

Arguments

  • inputServersInput!required

  • input.projectReferenceString

  • input.limitInt

    Integer page size from 1 to 100; defaults to 20.

  • input.cursorID

    Server ID from this project's preceding page. Unknown cursors are rejected.

  • input.sortByServerSortBy

    Sort field. Defaults to created_at. One of name, status, created_at.

  • input.sortOrderServerSortOrder

    Sort order. Defaults to desc. One of asc, desc.

Responses

query Servers($input: ServersInput!) {  servers(input: $input) {    data {      id      shortId      userId      environmentIds      hostname      status      createdAt      updatedAt    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }  }}
{  "data": {    "servers": {      "data": [        {          "id": "string",          "shortId": "string",          "userId": "string",          "environmentIds": [            "string"          ],          "hostname": "string",          "status": "string",          "createdAt": "2026-01-01T00:00:00Z",          "updatedAt": "2026-01-01T00:00:00Z"        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      }    }  }}

The ServersConnection! in data.servers.