Merge pull request #33773 from koalaty-code/fix-mcp-actions-middleware

fix(backend-defaults): fixes actions registry http middleware conflicts
This commit is contained in:
Fredrik Adelöw
2026-04-07 13:02:57 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-defaults': patch
---
DefaultActionsRegistryService: add json middleware to /.backstage/actions/ routes only
@@ -90,7 +90,7 @@ export class DefaultActionsRegistryService implements ActionsRegistryService {
createRouter(): Router {
const router = PromiseRouter();
router.use(json());
router.use('/.backstage/actions/', json());
router.get('/.backstage/actions/v1/actions', async (req, res) => {
const credentials = await this.httpAuth.credentials(req);