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

# The MCP servers an App reaches and their grant state



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml get /common/apps/{id}/mcp
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /common/apps/{id}/mcp:
    get:
      tags:
        - common
      summary: The MCP servers an App reaches and their grant state
      parameters:
        - name: id
          in: path
          description: App ID
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/tykmcp.AppMCPSummary'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.ErrorResponse'
components:
  schemas:
    tykmcp.AppMCPSummary:
      type: object
      properties:
        connections:
          type: array
          description: |-
            Connections lists, per connection the App touches, whether a key can
            be minted now and why not otherwise.
          items:
            $ref: '#/components/schemas/tykmcp.AppMCPConnectionState'
        credentials:
          type: array
          items:
            $ref: '#/components/schemas/models.MCPCredentialResponse'
        servers:
          type: array
          items:
            $ref: '#/components/schemas/tykmcp.AppMCPServerView'
    api.ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              detail:
                type: string
              title:
                type: string
      description: Error response model
    tykmcp.AppMCPConnectionState:
      type: object
      properties:
        can_mint:
          type: boolean
        connection_id:
          type: integer
        connection_name:
          type: string
        credential_id:
          type: string
        reason:
          type: string
    models.MCPCredentialResponse:
      type: object
      properties:
        alias:
          type: string
        app_id:
          type: integer
        app_name:
          type: string
        applied_policy_ids:
          type: array
          items:
            type: string
        connection_id:
          type: integer
        connection_name:
          type: string
        created_at:
          type: string
        desired_policy_ids:
          type: array
          items:
            type: string
        drift:
          type: string
        drift_detail:
          type: string
        expires_at:
          type: string
        external_policy_ids:
          type: array
          items:
            type: string
        id:
          type: string
        key_hint:
          type: string
        last_error:
          type: string
        last_synced_at:
          type: string
        lock_version:
          type: integer
        minted_at:
          type: string
        minted_by_user_id:
          type: integer
        purpose:
          type: string
        revealed_at:
          type: string
        revealed_to_user_id:
          type: integer
        revoke_mode:
          type: string
        revoke_reason:
          type: string
        revoked_at:
          type: string
        revoked_by_user_id:
          type: integer
        status:
          type: string
        tyk_key_hash:
          type: string
        updated_at:
          type: string
    tykmcp.AppMCPServerView:
      type: object
      properties:
        auth_mode:
          type: string
        brokerable:
          type: boolean
        connection_id:
          type: integer
        connection_name:
          type: string
        endpoint_url:
          type: string
        endpoint_urls:
          type: object
          additionalProperties:
            type: string
        grant_kind:
          type: string
        grant_open:
          type: boolean
        header_name:
          type: string
        id:
          type: integer
        kind:
          type: string
        name:
          type: string
        prm:
          $ref: '#/components/schemas/models.MCPProtectedResourceMetadata'
        slug:
          type: string
    models.MCPProtectedResourceMetadata:
      type: object
      properties:
        authorization_servers:
          type: array
          items:
            type: string
        auto_derive_scopes:
          type: boolean
        resource:
          type: string
        scopes_supported:
          type: array
          items:
            type: string
        url:
          type: string
          description: URL is the absolute metadata URL when the endpoint URL is known.
        well_known_path:
          type: string

````