From bcc88191d0ad702b67f8580547401c81da74d800 Mon Sep 17 00:00:00 2001 From: Affaan Mustafa Date: Sun, 29 Mar 2026 21:21:13 -0400 Subject: [PATCH] fix: declare http transport in mcp config --- .mcp.json | 1 + tests/plugin-manifest.test.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/.mcp.json b/.mcp.json index 26886617..2051a33c 100644 --- a/.mcp.json +++ b/.mcp.json @@ -9,6 +9,7 @@ "args": ["-y", "@upstash/context7-mcp@2.1.4"] }, "exa": { + "type": "http", "url": "https://mcp.exa.ai/mcp" }, "memory": { diff --git a/tests/plugin-manifest.test.js b/tests/plugin-manifest.test.js index 9f76c72f..0b1e2234 100644 --- a/tests/plugin-manifest.test.js +++ b/tests/plugin-manifest.test.js @@ -216,6 +216,20 @@ test('.mcp.json includes at least github, context7, and exa servers', () => { assert.ok(servers.includes('exa'), 'Expected exa MCP server'); }); +test('.mcp.json HTTP transport servers declare type=http when they use url', () => { + for (const [name, server] of Object.entries(mcpConfig.mcpServers)) { + if (!server || typeof server !== 'object' || !('url' in server)) { + continue; + } + + assert.strictEqual( + server.type, + 'http', + `Expected ${name} MCP server to declare type=http when using url transport`, + ); + } +}); + // ── Codex marketplace file ──────────────────────────────────────────────────── // Per official docs: repo marketplace lives at $REPO_ROOT/.agents/plugins/marketplace.json console.log('\n=== .agents/plugins/marketplace.json ===\n');