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

# Get MCP connection details

> Returns what an AI client such as Claude, Cursor or ChatGPT needs to connect to the Affelios
MCP server: the server URL, the OAuth authorization server and client ID, and the scopes
it can request. The person connecting signs in with their Affelios Identity, and one grant
covers every program that Identity can access.



## OpenAPI

````yaml https://platform.affelios.com/swagger/v1/swagger.json get /api/v1/mcp/connection
openapi: 3.0.4
info:
  title: Affelios Platform API
  description: >-
    Send customers and transactions to Affelios, and read your affiliate
    program's data. Authenticate every request with an API key in the X-Api-Key
    header. Create keys in the dashboard under Settings > API keys.
  version: v1
servers:
  - url: https://platform.affelios.com
security:
  - ApiKey: []
tags:
  - name: Affiliates
    description: >-
      Affiliate accounts in your program, their collaborators and their
      commission plan assignments.
  - name: Customers
    description: >-
      Customers referred by affiliates. Create a customer with the click key
      from the landing page to credit the affiliate who referred them.
  - name: Mcp Connection
  - name: Testimonials
    description: Affiliate testimonials and the published list shown on public pages.
  - name: Transactions
    description: >-
      Customer activity such as deposits, revenue and wagering. Commission is
      calculated from transactions.
paths:
  /api/v1/mcp/connection:
    get:
      tags:
        - Mcp Connection
      summary: Get MCP connection details
      description: >-
        Returns what an AI client such as Claude, Cursor or ChatGPT needs to
        connect to the Affelios

        MCP server: the server URL, the OAuth authorization server and client
        ID, and the scopes

        it can request. The person connecting signs in with their Affelios
        Identity, and one grant

        covers every program that Identity can access.
      operationId: McpConnectionGet
      responses:
        '200':
          description: The MCP connection details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/McpConnectionResponse'
        '401':
          description: The X-Api-Key header is missing or the key is not valid.
components:
  schemas:
    McpConnectionResponse:
      type: object
      properties:
        url:
          type: string
          description: The MCP server URL to add to your AI client.
          nullable: true
        resource:
          type: string
          description: The OAuth resource identifier of the MCP server.
          nullable: true
        authorizationServer:
          type: string
          description: The OAuth authorization server the client signs in with.
          nullable: true
        scopes:
          type: array
          items:
            type: string
          description: The OAuth scopes the client can request.
          nullable: true
        clientId:
          type: string
          description: The OAuth client ID to use.
          nullable: true
        instructions:
          type: string
          description: Short connection instructions to show to the person connecting.
          nullable: true
      additionalProperties: false
      description: How to connect an AI client to the Affelios MCP server.
  securitySchemes:
    ApiKey:
      type: apiKey
      description: >-
        Your Affelios API key. Create one in the dashboard under Settings > API
        keys.
      name: X-Api-Key
      in: header

````

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