Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Work in progress Quiet

96682[FEATURE] Add MCP system extension and endpoint

Oli Bartsch CR 0 V -1 Nightmare +3436 −2 updated 10/14/26, 15:29

Commit message

Agents reach applications through the Model Context Protocol (MCP). The
new system extension typo3/cms-mcp provides the endpoint for it: the
backend route /typo3/mcp, the checks at its edge and a protocol layer
of its own. The extension offers no tools yet and accepts no
credentials, so every request is answered with 401 until an
authenticator for the "mcp" realm is registered.

The entry middleware runs in the backend stack after routing and before
the backend user authentication, so no cookie is evaluated. It answers
only when scheme, host, port and path match the configured resource URI
and refuses origins outside the configured list. It asks the
authentication pipeline for the "mcp" realm before it reads the body,
allows POST with a JSON body up to a configured size only and hands the
body to the protocol layer.

The protocol layer serves two revisions of MCP at one endpoint: the
stateless revision 2026-07-28 with server/discover, and 2025-11-25 with
initialize, without sessions. It parses a body once, decides the
revision in one place, validates the Mcp-* headers against the body and
dispatches tools/list and tools/call to an internal tool provider.
Exception texts never reach the client.

All classes are internal. The endpoint stays disabled as long as no
resource URI is configured.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/82/96682/2 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/82/96682/2 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V -1 Blocked
    • core-ci -1 CI

Relation chain 3

  1. 96682 [FEATURE] Add MCP system extension and endpoint This change

  2. main 96556[TASK] Add authentication pipeline contracts This change is based on it Merged Oli Bartsch CR +2 V +2 Expert +1264 −2

    The chain has patch set 5 of 8, the changes above it need a rebase.

  3. main 96393[TASK] Add auth principal and local identity provider This change is based on it Merged Benni Mack CR +2 V +2 Hard +856 −44

    The chain has patch set 10 of 14, the changes above it need a rebase.

Issues 1

Files 46

Show 26 more files

Review log 24

  1. Oli Bartsch uploaded patch set 1 10/14/26, 13:26

  2. core-ci voted on patch set 1 V -1 10/14/26, 13:34 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111107

  3. Georg Ringer updated the commit message in patch set 2 V -1 10/14/26, 15:20

  4. core-ci voted on patch set 2 V -1 10/14/26, 15:29 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111120