---
id: object/codeunit/8356
type: object
title: Codeunit 8356 "MCP Upgrade"
summary: Codeunit 8356 "MCP Upgrade" in System Application (System.MCP). 4 public procedures, 1 event subscribers. Introduced in BC28, still in BC30, changed in BC29-30.
tier: official
language: en
tags:
  - codeunit
  - system application
versions:
  introduced: "28"
  last_changed: "30"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 6cdc3e335b05af0096d8de4f716a927b2d6e25f0e20088e34593fb0b13b3f532
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/MCP/src/Configuration/Codeunits/MCPUpgrade.Codeunit.al
    title: src/System Application/App/MCP/src/Configuration/Codeunits/MCPUpgrade.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12207
    - change/bcapps/10008
    - change/bcapps/8085
    - change/bcapps/8634
object_type: codeunit
object_id: 8356
name: MCP Upgrade
namespace: System.MCP
app: System Application
extends: null
first_version: "28"
last_version: "30"
present_in:
  - "28"
  - "29"
  - "30"
changed_in:
  - "29"
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 9
  events: 0
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 0
  implements: 0
---

# Codeunit 8356 "MCP Upgrade"

> Codeunit 8356 "MCP Upgrade" in System Application (System.MCP). 4 public procedures, 1 event subscribers. Introduced in BC28, still in BC30, changed in BC29-30.

System Application · System.MCP · BC28-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/MCP/src/Configuration/Codeunits/MCPUpgrade.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Subtype | Upgrade |

## Event subscriptions

- RegisterUpgradeTags subscribes to Codeunit "Upgrade Tag" OnGetPerDatabaseUpgradeTags

## Procedures

- `UpgradeMCPAPIToolVersion()` (internal)
- `UpgradeMCPSystemDefaultAsDefault()` (internal)
- `EnableApiToolsOnExistingConfigurations()` (internal)
- `UpgradeRegisterMCPCapability()` (internal)

Plus 4 local procedures.

## Triggers

OnUpgradePerDatabase

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 9999 "Upgrade Tag"](../codeunit/9999.md) (8 calls: `EnableApiToolsOnExistingConfigurations → HasDatabaseUpgradeTag`, `EnableApiToolsOnExistingConfigurations → SetUpgradeTag`, `UpgradeMCPAPIToolVersion → HasDatabaseUpgradeTag`, …)
- [Codeunit 8351 "MCP Config Implementation"](../codeunit/8351.md) (2 calls: `UpgradeMCPAPIToolVersion → GetHighestAPIPageVersion`, `UpgradeMCPAPIToolVersion → IsAPIPage`)
- [Codeunit 8358 "MCP Copilot Cap. Reg."](../codeunit/8358.md) (1 call: `UpgradeRegisterMCPCapability → RegisterMCPCapability`)

## Recent changes

- 2026-10-07 [#12207 [MCP] Prepare Data Query Tools for billing](../../changes/bcapps/12207.md) (main, BC30, feature)
- 2026-08-20 [#10008 [MCP] Add codeunit APIs as MCP tools in MCP configuration](../../changes/bcapps/10008.md) (main, BC30, feature)
- 2026-07-27 [#8085 [MCP] Server Features in MCP configuration: API Tools, Dynamic Tool Mode, Data Query Tools (Preview)](../../changes/bcapps/8085.md) (main, BC30, feature)
- 2026-07-21 [#8634 [MCP] Register MCP server as a Copilot capability](../../changes/bcapps/8634.md) (main, BC30, feature)

## Across versions

- Present in: BC28-30
- Changed (declaration) in: BC29-30

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "MCP Upgrade")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
