fix: declare http transport in mcp config

This commit is contained in:
Affaan Mustafa
2026-03-29 21:21:13 -04:00
parent dd675d4258
commit bcc88191d0
2 changed files with 15 additions and 0 deletions

View File

@@ -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');