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

# Pre-check a custom MCP server's OAuth/DCR support

> Read-only probe (no row created): runs OAuth discovery and reports whether
the server advertises RFC 7591 dynamic client registration, so the connect UI
can hide the manual client_id fields. ``server_url`` is SSRF-validated in the
service layer.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/integrations/connections/custom-mcp/discover
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/integrations/connections/custom-mcp/discover:
    post:
      tags:
        - integrations
      summary: Pre-check a custom MCP server's OAuth/DCR support
      description: >-
        Read-only probe (no row created): runs OAuth discovery and reports
        whether

        the server advertises RFC 7591 dynamic client registration, so the
        connect UI

        can hide the manual client_id fields. ``server_url`` is SSRF-validated
        in the

        service layer.
      operationId: discoverCustomMcp
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomMcpDiscoverRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomMcpDiscoverResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CustomMcpDiscoverRequest:
      properties:
        server_url:
          type: string
          title: Server Url
        transport:
          anyOf:
            - type: string
            - type: 'null'
          title: Transport
      additionalProperties: false
      type: object
      required:
        - server_url
      title: CustomMcpDiscoverRequest
      description: >-
        Body for ``POST /v1/integrations/connections/custom-mcp/discover``.


        A read-only pre-check (no DB row) so the connect UI can detect whether a

        server supports OAuth Dynamic Client Registration before asking for a

        client_id. ``transport`` is accepted for symmetry with the connect body
        but

        is advisory — discovery probes well-known HTTP endpoints
        transport-agnostically.
    CustomMcpDiscoverResponse:
      properties:
        supports_dcr:
          type: boolean
          title: Supports Dcr
        authorize_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Authorize Url
        token_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Token Url
        scopes:
          items:
            type: string
          type: array
          title: Scopes
      type: object
      required:
        - supports_dcr
      title: CustomMcpDiscoverResponse
      description: >-
        Returned by ``POST /v1/integrations/connections/custom-mcp/discover``.


        ``supports_dcr`` is the signal the UI needs: ``True`` ⇒ hide the manual

        client_id fields (the server advertises an RFC 7591 registration
        endpoint);

        ``False`` ⇒ no discoverable metadata, so the user must supply a
        client_id.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````