> ## 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.

# Check how an MCP server signs in

> Probes an MCP server URL and reports whether it needs authentication, and whether it supports OAuth or needs a token. Use it before adding the server.




## OpenAPI

````yaml /openapi/tools.yaml post /mcp/discover-oauth
openapi: 3.1.0
info:
  title: Connie Tools API
  version: 1.0.0
  description: >
    Endpoints the Connie web app uses for Tools and Skills: the tool catalogue,
    connected accounts, tool permissions, your own MCP servers, and workspace
    skills. They authenticate with your signed-in browser session — see
    https://docs.connie.ai/api-reference/authentication. These are the app's own
    endpoints and can change when the app changes.
servers:
  - url: https://connie.ai/api
security:
  - sessionCookie: []
tags:
  - name: Catalogue
    description: Browse tools and read one tool's inputs, output and price.
  - name: Permissions
    description: Whether Connie runs a tool without asking, asks first, or never runs it.
  - name: Connected accounts
    description: The app accounts connected to the workspace and who can use them.
  - name: MCP servers
    description: MCP servers you add to the workspace from Tools → Add → MCP.
  - name: Skills
    description: Reusable instructions Connie follows in chat, with optional context files.
paths:
  /mcp/discover-oauth:
    post:
      tags:
        - MCP servers
      summary: Check how an MCP server signs in
      description: >
        Probes an MCP server URL and reports whether it needs authentication,
        and whether it supports OAuth or needs a token. Use it before adding the
        server.
      operationId: checkMcpServerAuth
      parameters:
        - $ref: '#/components/parameters/WorkspaceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - mcpUrl
              properties:
                mcpUrl:
                  type: string
                  format: uri
                token:
                  type: string
                  description: A token to test against the server.
      responses:
        '200':
          description: What the server needs.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  authRequired:
                    type: boolean
                  oauthSupported:
                    type: boolean
                  supported:
                    type: boolean
                    description: OAuth metadata was found.
                  needsCredentials:
                    type: boolean
                    description: Ask for a token instead of OAuth.
                  directConnect:
                    type: boolean
                    description: No authentication needed.
                  credentialsFailed:
                    type: boolean
                  serverError:
                    type: boolean
                  providerName:
                    type: string
                  logoUrl:
                    type:
                      - string
                      - 'null'
                  description:
                    type: string
                  error:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  parameters:
    WorkspaceId:
      name: workspaceId
      in: query
      required: true
      description: >
        Your workspace ID. Also accepted as `workspace_id`, the `x-workspace-id`
        header, or `workspaceId` in a JSON body. If you leave it out, the
        request silently runs against the first workspace you joined.
      schema:
        type: string
        format: uuid
  responses:
    BadRequest:
      description: Missing or invalid input.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: No valid session, or the session expired (`SESSION_EXPIRED`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: header
      name: Cookie
      description: >-
        The full Cookie header copied from a signed-in connie.ai browser
        request. See the Authentication page.

````

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