Skip to main content
Glama
scenario.yaml1.8 kB
# Starts MCPX with an invalid mcp.json # Verifies the UI shows the Configuration Error banner and that the message # mentions an MCP servers path (e.g., "mcpServers.time"). name: "Init with invalid MCP file test" image: us-central1-docker.pkg.dev/prj-common-442813/mcpx/mcpx:v0.2.17-66354a7 env: {} dependentContainers: [] configMount: config cleanConfigMount: false verboseOutput: false disableTest: false expectErrorsOnStartup: false steps: - name: Load Control-Plane UI kind: browser toolName: browser_navigate payload: url: http://localhost:5173 expected: mode: regex value: "Ran Playwright code" - name: Wait for “Configuration Error” banner kind: browser toolName: browser_wait_for payload: text: "Configuration Error" time: 20 expected: mode: contains value: "Waited for Configuration Error" - name: Verify invalid MCP config message kind: browser toolName: browser_evaluate payload: function: | () => { const text = (document.body.innerText || document.body.textContent || ''); const hay = text.toLowerCase(); const hasHeader = hay.includes('configuration error'); const hasValidation = hay.includes('configuration validation failed'); const mentionsInvalid = hay.includes('invalid input'); const mentionsMcpServers = /mcpservers\.[\w.-]+/i.test(text); if (hasHeader && hasValidation && mentionsMcpServers) { return 'ok-invalid-mcp'; } // Debug payload if something shifts return JSON.stringify({ hasHeader, hasValidation, mentionsInvalid, mentionsMcpServers, sample: text.slice(0,200) }); } expected: mode: contains value: ok-invalid-mcp

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheLunarCompany/lunar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server