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

# Get MCP config

> Returns the app's editable MCP config and the tools it resolves to.

Every entity and agent the app has is served unless the config holds it back, so `tools` lists each tool the next publish could serve, with `exposed` telling you whether the config serves it. `pending_removal` lists tools the live server still has that the config no longer produces. A publish removes them.

This is limited to 240 requests a minute for each app. Some workspaces have a different limit.

<Note>This endpoint accepts a personal API key belonging to a user with access to the app, including a read-only key. A workspace API key for the app's workspace also works, including a read-only one, and acts as the workspace owner.</Note>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/platform/{app_id}/mcp/config
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/platform/{app_id}/mcp/config:
    get:
      summary: Get MCP config
      description: >-
        Returns the app's editable MCP config and the tools it resolves to.


        Every entity and agent the app has is served unless the config holds it
        back, so `tools` lists each tool the next publish could serve, with
        `exposed` telling you whether the config serves it. `pending_removal`
        lists tools the live server still has that the config no longer
        produces. A publish removes them.


        This is limited to 240 requests a minute for each app. Some workspaces
        have a different limit.


        <Note>This endpoint accepts a personal API key belonging to a user with
        access to the app, including a read-only key. A workspace API key for
        the app's workspace also works, including a read-only one, and acts as
        the workspace owner.</Note>
      operationId: get_app_mcp_config_api_apps_platform__app_id__mcp_config_get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app.
            title: App Id
          description: ID of the app.
          example: 6820f3a4e7b91d003c45a1f2
        - name: branch_id
          in: query
          required: false
          schema:
            type: string
            description: >-
              ID of the branch to work on, as returned by [List
              branches](/api-reference/list-branches). Omit it to work on the
              app's main branch.
            title: Branch Id
          description: >-
            ID of the branch to work on, as returned by [List
            branches](/api-reference/list-branches). Omit it to work on the
            app's main branch.
          example: 68f1a2b3c4d5e6f708192a3b
      responses:
        '200':
          description: The app's MCP config and its tools.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppMcpConfigResponse'
        '401':
          description: Missing or invalid credentials.
        '403':
          description: You don't have access to this app, or it doesn't exist.
        '404':
          description: >-
            App not found, or it's outside the workspace your credential is
            scoped to. With `branch_id`: no such branch on this app, or you
            can't see it (`error.code` is `branch_not_found`).
        '409':
          description: >-
            `branch_id` was sent but MCP config on a branch isn't available for
            you yet (`error.code` is `branch_writes_unavailable`).
        '429':
          description: Too many MCP config reads for this app in the last minute.
        '503':
          description: >-
            Database temporarily unavailable (`database_unavailable`): the data
            cluster did not answer in time. Retry after the `Retry-After`
            seconds.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StandardErrorEnvelope'
              examples:
                database_unavailable:
                  summary: database_unavailable
                  value:
                    error:
                      code: database_unavailable
                      message: Database temporarily unavailable, please retry
                      details: {}
      security:
        - PersonalAccessTokenAuth:
            - read_only
        - WorkspaceApiKeyAuth:
            - read_only
        - WorkspaceApiKeyBearerAuth:
            - read_only
components:
  schemas:
    AppMcpConfigResponse:
      properties:
        config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Config
          description: >-
            The editable config, or `null` when the app has no MCP server. It
            has `auth`, `login_path`, `consent_path`, and the `tools` object
            that [Update MCP config](/api-reference/update-mcp-config) replaces.
          example:
            auth: oauth
            tools:
              entity_overrides:
                Invoice:
                  operations: []
              excluded_agents:
                - support_bot
              functions: []
        tools:
          items:
            $ref: '#/components/schemas/AppMcpToolRow'
          type: array
          title: Tools
          description: Every tool the config can serve, and whether it does.
          default: []
        pending_removal:
          items:
            $ref: '#/components/schemas/AppMcpLiveToolRow'
          type: array
          title: Pending Removal
          description: >-
            Tools the live server still serves that the config no longer
            produces. The next publish removes them.
          default: []
      type: object
      title: AppMcpConfigResponse
      description: The app's editable MCP config and the tools it resolves to.
    StandardErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/StandardError'
          description: What went wrong.
      type: object
      required:
        - error
      title: StandardErrorEnvelope
      description: The error body returned in the standard envelope.
    AppMcpToolRow:
      properties:
        key:
          type: string
          title: Key
          description: >-
            Stable ID of the row. Two rows can share a `name`, but never a
            `key`.
          example: 'entity:Task:read:'
        name:
          type: string
          title: Name
          description: Name AI clients call the tool by.
          example: query_task
        kind:
          type: string
          enum:
            - entity
            - agent
            - function
          title: Kind
          description: >-
            Where the tool comes from. Either `"entity"`, `"agent"`, or
            `"function"` for a custom tool.
          example: entity
        source:
          type: string
          title: Source
          description: >-
            Entity, agent, or custom tool in the config that this row belongs
            to.
          example: Task
        operation:
          anyOf:
            - type: string
            - type: 'null'
          title: Operation
          description: >-
            Entity operation the tool performs, or `null` for agent and custom
            tools. One of `read`, `create`, `update`, or `delete`.
          example: read
        handler:
          anyOf:
            - type: string
            - type: 'null'
          title: Handler
          description: >-
            Backend function a custom tool runs, or the server route path it
            calls (starting with `/`), or `null` for other tools.
          example: sendInvoice
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
          description: Display title of the tool, or `null` when it has none.
          example: Query tasks
        description:
          type: string
          title: Description
          description: What the tool does, as AI clients see it.
          default: ''
          example: Find Task records by ID or filter.
        read_only_hint:
          type: boolean
          title: Read Only Hint
          description: Whether the tool is marked as only reading data.
          default: false
          example: true
        exposed:
          type: boolean
          title: Exposed
          description: Whether the config serves the tool.
          example: true
        published:
          type: boolean
          title: Published
          description: >-
            Whether the live server already matches `exposed`. It's `false`
            while a change waits for a publish.
          example: true
      type: object
      required:
        - key
        - name
        - kind
        - source
        - exposed
        - published
      title: AppMcpToolRow
      description: A tool the config serves or holds back.
    AppMcpLiveToolRow:
      properties:
        name:
          type: string
          title: Name
          description: Name AI clients call the tool by.
          example: query_invoice
        kind:
          type: string
          enum:
            - entity
            - agent
            - function
          title: Kind
          description: >-
            Where the tool comes from. Either `"entity"`, `"agent"`, or
            `"function"` for a custom tool.
          example: entity
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
          description: Display title of the tool, or `null` when it has none.
          example: Query invoices
        description:
          type: string
          title: Description
          description: What the tool does, as AI clients see it.
          default: ''
          example: Find Invoice records by ID or filter.
        read_only_hint:
          type: boolean
          title: Read Only Hint
          description: Whether the tool is marked as only reading data.
          default: false
          example: true
      type: object
      required:
        - name
        - kind
      title: AppMcpLiveToolRow
      description: A tool only the live server still has.
    StandardError:
      properties:
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable cause of the failure. Match on this, not on
            `message`.
          example: not_found
        message:
          type: string
          title: Message
          description: Human-readable explanation. It isn't a stable contract.
          example: App not found
        details:
          additionalProperties: true
          type: object
          title: Details
          description: >-
            Structured context for the failure, or an empty object when there's
            none.
          example: {}
      type: object
      required:
        - code
        - message
      title: StandardError
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: >-
        Personal access token, sent as `Authorization: Bearer <token>`. Each
        operation lists the permission it needs: `read_only` or `full_access`. A
        full-access token can call every operation. A read-only token can call
        only the operations that list `read_only`; anything else returns 403
        `read_only_credential_route_not_allowed`.
    WorkspaceApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: >-
        Workspace API key, sent as `api_key: <key>`. Each operation that accepts
        one lists what the key needs: a permission, `read_only` or
        `full_access`, like a personal access token, or a scope. A key without
        the scope gets 403 `workspace_api_key_scope_required`.
    WorkspaceApiKeyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        Workspace API key, sent as `Authorization: Bearer <key>`. Accepted
        wherever `api_key` is, with the same permission.

````

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