Skip to content
Navigation

List a person's MCP connections

GET
https://api.nicer.travel/agent/users/{userId}/mcp/connections

Lists one person's MCP connections, newest first, for Nicer staff: the client's name and client id, the host it receives its codes at (redirectHost), the server each opens (surface), the most it may do (access), and when it was connected, last used and ends. Connections that have ended are left out. Never a token. A caller without the superadmin platform role gets 403 ERROR_FORBIDDEN; a token minted from a connection gets 403 ERROR_MCP_SESSION_REQUIRED.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • userId
    string
    required

Returns

200

OK

JSON
  • items
    array of
    object
    required

    The connections that have not ended, newest first. A connection past its expiresAt is not listed.

    • connectionId
      string
      required

      The connection's id: the hex of its tokens' bytes 16 to 24, 16 characters.

      minLength: 1
    • clientName
      string
      required

      The AI client's name as the client states it in its metadata (client_name); Nicer does not verify it. Its client id when it states none.

      minLength: 1
    • clientId
      string
      required

      The client's OAuth client_id: the HTTPS address of its client metadata document, or the id Nicer gave it when it registered.

      minLength: 1
    • redirectHost
      string
      required

      Where the client receives its code, as a person reads it: the host of its redirect URI, such as an assistant's website or 127.0.0.1. Redirect URIs are HTTPS or loopback HTTP only.

      minLength: 1
    • surface
      ADVISOR
      or
      INTERNAL
      required

      Which MCP server the connection opens. ADVISOR is mcp.<env>/mcp, acting as the person in the agencies they belong to and never with staff rights. INTERNAL is mcp.<env>/internal, for Nicer staff only, in every agency.

    • access
      READ
      or
      WRITE
      or
      MONEY
      required

      The most the connection may do, as the person picked it on the consent page. READ runs tools that change nothing; WRITE also runs tools that change records, make unpaid payment links and record the person's own bookkeeping; MONEY also runs tools that hold and book travel, cancel with refunds and change the agency's books. Most assistants ask you before each of these; Nicer does not ask again.

    • createdAt
      string
      required

      When the connection was made: when the client traded the code the person approved.

      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
    • lastUsedAt
      required

      When the connection last signed in to an MCP server; null if it never has.

      Any of the following:

      • string
      • null
    • expiresAt
      string
      required

      When the connection ends unless the client refreshes it first: when its refresh token stops working. Each refresh moves it 30 days ahead, except that an INTERNAL connection ends 90 days after createdAt at most.

      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close