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

# List Mcp Server Instance Consumers

> List agents in the workspace that attach this MCP instance, with their enabled tools.

A read-only reverse lookup over the agents' ``tools`` JSON. Which tools need
confirmation is not read from that JSON — it lives in approval policy rules,
the single source of truth — so it is resolved from there per agent.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/mcp-server-instances/{instance_id}/consumers
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.0
servers: []
security:
  - bearer: []
paths:
  /v1/mcp-server-instances/{instance_id}/consumers:
    get:
      tags:
        - v1
        - protected
        - mcp-server-instances
      summary: List Mcp Server Instance Consumers
      description: >-
        List agents in the workspace that attach this MCP instance, with their
        enabled tools.


        A read-only reverse lookup over the agents' ``tools`` JSON. Which tools
        need

        confirmation is not read from that JSON — it lives in approval policy
        rules,

        the single source of truth — so it is resolved from there per agent.
      operationId: >-
        list_mcp_server_instance_consumers_v1_mcp_server_instances__instance_id__consumers_get
      parameters:
        - in: path
          name: instance_id
          required: true
          schema:
            format: uuid
            title: Instance Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/MCPInstanceConsumer'
                title: >-
                  Response List Mcp Server Instance Consumers V1 Mcp Server
                  Instances  Instance Id  Consumers Get
                type: array
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    MCPInstanceConsumer:
      description: >-
        An agent that has this MCP instance attached, and which of its tools it
        enabled.
      properties:
        agent_id:
          format: uuid
          title: Agent Id
          type: string
        agent_name:
          title: Agent Name
          type: string
        agent_slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Slug
        confirm_tools:
          items:
            type: string
          title: Confirm Tools
          type: array
        enabled_tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Enabled Tools
      required:
        - agent_id
        - agent_name
      title: MCPInstanceConsumer
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    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

````