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

# Test MCP Server

> Connect to an MCP server with the given settings and list its tools, before saving it on an agent. Nothing is stored.



## OpenAPI

````yaml POST /agents/mcp-servers/test
openapi: 3.1.0
info:
  title: RevRing Voice AI API
  description: >-
    RevRing Voice AI platform API for managing AI voice agents, phone calls, SIP
    trunks, and analytics. Build intelligent voice applications that can handle
    inbound and outbound phone calls with AI-powered conversational agents.
  version: 1.0.0
  contact:
    name: RevRing Support
    url: https://revring.ai
servers:
  - url: https://api.revring.ai/v1
    description: Production API
security:
  - apiKeyAuth: []
tags:
  - name: Messaging Connections
    description: Connect messaging providers so agents can send text messages
  - name: Messages
    description: Send text messages and read your message log
  - name: Conversations
    description: List and clear managed conversation threads
  - name: SIP Trunks
    description: Manage SIP trunks for connecting agents to the phone network
  - name: Agents
    description: Manage AI voice agents and their configuration
  - name: Agent Folders
    description: Organize agents into folders for dashboard navigation
  - name: Calls
    description: Manage and query phone calls
  - name: Analytics
    description: Get analytics and metrics about your calls
  - name: Knowledge Bases
    description: >-
      Manage knowledge bases and sources for agent retrieval-augmented
      generation
  - name: Test Suites
    description: Manage test suites, test cases, and test runs for agent evaluation
  - name: Voices
    description: Browse the voices available to your organization for agent speech
  - name: Webhooks
    description: Webhook delivery settings for your organization
  - name: Alerts
    description: Alert rules on call metrics, delivered to a webhook or Slack
  - name: Contacts
    description: What your agents remember about people
  - name: Integrations
    description: Calendars your agents book on
paths:
  /agents/mcp-servers/test:
    post:
      tags:
        - Agents
      summary: Test MCP Server
      description: >-
        Connect to an MCP server with the given settings and list its tools,
        before saving it on an agent. Nothing is stored.
      operationId: testMcpServer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpServer'
      responses:
        '200':
          description: The server's tools
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      tools:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            description:
                              type: string
        '400':
          description: Invalid settings
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '422':
          description: >-
            The server could not be reached or did not list its tools
            (`mcp_unreachable`)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
components:
  schemas:
    McpServer:
      type: object
      description: An MCP server whose tools the agent can use
      properties:
        name:
          type: string
          maxLength: 64
          description: Label, unique on the agent
        url:
          type: string
          format: uri
          description: Server address (https only)
        headers:
          type: array
          nullable: true
          maxItems: 20
          items:
            type: object
            properties:
              key:
                type: string
              value:
                type: string
            required:
              - key
              - value
          description: Sent with every request to the server
        allowedTools:
          type: array
          nullable: true
          items:
            type: string
          description: Only these tools, by name; omit to use every tool the server lists
        transport:
          type: string
          nullable: true
          enum:
            - streamable_http
            - sse
          description: Omit to use SSE only for URLs ending in /sse
        timeoutSeconds:
          type: integer
          nullable: true
          minimum: 1
          maximum: 120
          description: How long one tool call may take (default 20)
      required:
        - name
        - url
  responses:
    UnauthorizedError:
      description: Authentication required or API key invalid
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: unauthorized
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Generate API keys from the RevRing
        dashboard.

````

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