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

# Set Mcp Server Instance Sharing

> Share the connection with the workspace, or make it its owner's again.



## OpenAPI

````yaml /api-reference/openapi.json put /v1/workspaces/{workspace}/mcp-server-instances/{instance_id}/sharing
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.2
servers: []
security:
  - bearer: []
paths:
  /v1/workspaces/{workspace}/mcp-server-instances/{instance_id}/sharing:
    put:
      tags:
        - v1
        - protected
        - mcp-server-instances
      summary: Set Mcp Server Instance Sharing
      description: Share the connection with the workspace, or make it its owner's again.
      operationId: >-
        set_mcp_server_instance_sharing_v1_mcp_server_instances__instance_id__sharing_put
      parameters:
        - in: path
          name: instance_id
          required: true
          schema:
            format: uuid
            title: Instance Id
            type: string
        - description: Slug of the workspace the request acts in
          in: path
          name: workspace
          required: true
          schema:
            description: Slug of the workspace the request acts in
            maxLength: 120
            pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$
            title: Workspace
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectionSharingRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MCPServerInstanceResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ConnectionSharingRequest:
      properties:
        shared:
          title: Shared
          type: boolean
      required:
        - shared
      title: ConnectionSharingRequest
      type: object
    MCPServerInstanceResponse:
      properties:
        auth_config_id:
          anyOf:
            - format: uuid
              type: string
            - type: string
            - type: 'null'
          title: Auth Config Id
        cost:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Cost
        created_at:
          format: date-time
          title: Created At
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        events:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Events
        id:
          format: uuid
          title: Id
          type: string
        is_owner:
          default: false
          title: Is Owner
          type: boolean
        json_spec:
          additionalProperties: true
          title: Json Spec
          type: object
        last_dispatch:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Last Dispatch
        managed_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Managed By
        name:
          title: Name
          type: string
        personal:
          default: false
          title: Personal
          type: boolean
        server_spec_id:
          title: Server Spec Id
          type: string
        tools:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Tools
        transport:
          $ref: '#/components/schemas/MCPTransport'
        updated_at:
          format: date-time
          title: Updated At
          type: string
        verification:
          additionalProperties: true
          title: Verification
          type: object
      required:
        - id
        - name
        - description
        - server_spec_id
        - transport
        - json_spec
        - verification
        - created_at
        - updated_at
      title: MCPServerInstanceResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    MCPTransport:
      description: >-
        How a connection is reached: the instance's ``transport`` column, set
        once at creation.
      enum:
        - url
        - docker
        - command
        - bundle
      title: MCPTransport
      type: string
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````

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