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

# Get OAuth URL for custom MCP server

> Fetches OAuth metadata from .well-known or registry. Supports DCR or manual credentials. Selects safe scopes. Generates a unique custom-{timestamp}-{random} provider ID.




## OpenAPI

````yaml /openapi/tools.yaml post /mcp/connect/custom
openapi: 3.1.0
info:
  title: Connie Tools API
  version: 1.0.0
  description: >
    API for the Tools module â€” the connectivity layer that manages OAuth
    integrations, MCP (Model Context Protocol) servers, and webhooks.

    **Important:** "Tools" here refers to the module that *connects* external
    services and manages integrations â€” not to the built-in AI tools (like CRM
    operations, web browsing, etc.) that are documented in the AI & Brain
    module. Think of this module as the "connectors" layer: it handles OAuth
    flows, MCP server connections, and webhook ingestion.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Integrations
    description: Manage connected integration accounts
  - name: MCP Connections
    description: Model Context Protocol server connections and OAuth flows
  - name: MCP Registry
    description: MCP server registry management
  - name: MCP Tools
    description: Tool-level enable/disable management for MCP servers
  - name: Integration Providers
    description: Available integration provider catalog
  - name: Webhooks
    description: Inbound webhook handlers for external services
paths:
  /mcp/connect/custom:
    post:
      tags:
        - MCP Connections
      summary: Get OAuth URL for custom MCP server
      description: >
        Fetches OAuth metadata from .well-known or registry. Supports DCR or
        manual credentials. Selects safe scopes. Generates a unique
        custom-{timestamp}-{random} provider ID.
      operationId: getCustomMcpOAuthUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - endpoint
                - useOAuth
              properties:
                endpoint:
                  type: string
                  format: uri
                clientId:
                  type: string
                clientSecret:
                  type: string
                scopes:
                  type: array
                  items:
                    type: string
                useOAuth:
                  type: boolean
      responses:
        '200':
          description: OAuth URL
          content:
            application/json:
              schema:
                type: object
                properties:
                  authUrl:
                    type: string
                    format: uri
                  state:
                    type: string
components:
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

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