Files
Sauci/e2e/specs/mcp.spec.ts
jjbrunton 01bb8225ae chore(harness): make repository agent-ready
Add concise routed context, task-aware agent roles, focused skills, and structured learning promotion.\n\nUnify local development and workspace tooling, add layered test and E2E verification, harden MCP authentication, and gate deployment behind verification and explicit production promotion.
2026-08-27 20:58:48 +01:00

12 lines
462 B
TypeScript

import { expect, test } from '@playwright/test';
const mcp = process.env.MCP_URL ?? 'http://127.0.0.1:3002';
test('MCP health is available while tool access requires auth', async ({ request }) => {
const health = await request.get(`${mcp}/health`);
expect(health.ok()).toBe(true);
expect(await health.json()).toMatchObject({ status: 'ok', service: 'sauci-mcp' });
const tools = await request.post(`${mcp}/mcp`);
expect(tools.status()).toBe(401);
});