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

# Update server configuration

> Updates server name, description, instructions, or restrictions



## OpenAPI

````yaml put /api/servers/{serverId}
openapi: 3.0.1
info:
  title: MCP Server API
  description: >
    The Alloy MCP Server API enables you to create and manage MCP (Model Context
    Protocol) servers that provide secure, controlled access to platform
    integrations for AI assistants.


    ## Key Features

    - Dynamic tool discovery and execution

    - Fine-grained access restrictions

    - JWT-based user isolation

    - Self-sufficient token URLs

    - Support for 21+ platform connectors
  version: '2.0'
  contact:
    name: Alloy Support
    email: support@runalloy.com
    url: https://runalloy.com
servers:
  - url: https://mcp.runalloy.com
    description: Production server
  - url: http://localhost:3000
    description: Local development server
security:
  - bearerAuth: []
tags:
  - name: Server Management
    description: Create and manage MCP servers
  - name: MCP Protocol
    description: Execute MCP protocol operations
  - name: Tools
    description: Discover and execute tools
  - name: Resources
    description: Access server resources
  - name: Prompts
    description: Access prompt templates
paths:
  /api/servers/{serverId}:
    put:
      tags:
        - Server Management
      summary: Update server configuration
      description: Updates server name, description, instructions, or restrictions
      operationId: update-server
      parameters:
        - name: serverId
          in: path
          required: true
          description: Server ID
          schema:
            type: string
        - name: x-alloy-userid
          in: header
          description: User ID (optional with API key)
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                description:
                  type: string
                restrictions:
                  $ref: '#/components/schemas/ServerRestrictions'
      responses:
        '200':
          description: Server updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Server'
        '400':
          description: Invalid request
        '401':
          description: Unauthorized
        '404':
          description: Server not found
      security:
        - bearerAuth: []
components:
  schemas:
    ServerRestrictions:
      type: object
      properties:
        connectors:
          type: object
          properties:
            mode:
              type: string
              enum:
                - allowlist
                - blocklist
            allowedIds:
              type: array
              items:
                type: string
            blockedIds:
              type: array
              items:
                type: string
        actions:
          type: object
          properties:
            mode:
              type: string
              enum:
                - allowlist
                - blocklist
            allowedActions:
              type: array
              items:
                type: string
            blockedActions:
              type: array
              items:
                type: string
        users:
          type: object
          properties:
            mode:
              type: string
              enum:
                - allowlist
                - blocklist
            allowedIds:
              type: array
              items:
                type: string
            blockedIds:
              type: array
              items:
                type: string
    Server:
      type: object
      properties:
        serverId:
          type: string
          description: Unique server identifier
        name:
          type: string
          description: Server name
        description:
          type: string
          description: Server description
        url:
          type: string
          description: Base URL for API-authenticated access
        accessUrl:
          type: string
          description: Self-sufficient URL with embedded token
        restrictions:
          $ref: '#/components/schemas/ServerRestrictions'
        hasRestrictions:
          type: boolean
          description: Whether server has active restrictions
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT or API Key
      description: Use either an Alloy API key or JWT token

````