LibreChat/e2e/playwright.config.mcp-apps.ts
Dustin Healy 7b27e7941e 🧩 feat: MCP Apps support (#13831)
* feat: add MCP Apps support

* fix: preserve MCP App results and enforce sandbox policy

* fix: bind persisted MCP Apps to their server configuration

* fix: complete MCP Apps runtime integration

* fix: type the optional MCP App binding codec explicitly

* test: provide MCP Apps policy in bridge mocks

* fix: pass admitted App policy to the tool call owner

* fix: align MCP Apps CI contracts

* test: preserve MCP abort reasons in recovery mocks

* fix: preserve MCP compatibility across policy profiles

* test: use profiled MCP catalog generations

* test: expect the standard MCP session profile

* fix: remove the unused MCP abort import

* test: expect profiled MCP fixture arguments

* test: seed profiled MCP manager fixtures

* Fix request-header bearer resolution after canary merge

* Preserve MCP App views across canary message updates

* Document message-owned MCP App placement

* ci: Recheck MCP Apps Against Canary Base

---------

Co-authored-by: Lia <lia@librechat.ai>
(cherry picked from commit a98d40f61c)

Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/13831
2026-10-01 03:46:16 +00:00

23 lines
824 B
TypeScript

import { defineConfig } from '@playwright/test';
import mockConfig from './playwright.config.mock';
if (process.env.E2E_MCP_APPS !== 'true') {
throw new Error('The MCP Apps browser fixture requires E2E_MCP_APPS=true');
}
const phase = process.env.E2E_MCP_APPS_PHASE ?? 'standalone';
if (!['standalone', 'true', 'false', 'omitted', 'quota'].includes(phase)) {
throw new Error(`Unsupported E2E_MCP_APPS_PHASE: ${phase}`);
}
export default defineConfig({
...mockConfig,
globalSetup: phase === 'standalone' || phase === 'true' ? mockConfig.globalSetup : undefined,
globalTeardown:
phase === 'standalone' || phase === 'quota' ? mockConfig.globalTeardown : undefined,
testMatch: /mcp-apps\.spec\.ts/,
outputDir: `specs/.test-results/mcp-apps-${phase}`,
fullyParallel: false,
workers: 1,
retries: 0,
});