Skip to content

Commit 5b28eec

Browse files
committed
fix: preserve MCP placeholder in CI check
Use a quoted heredoc for the hosted endpoint assertion so GitHub Actions validates the literal LEADMAGIC_API_KEY placeholder instead of expanding it in the shell. Made-with: Cursor
1 parent d375d3f commit 5b28eec

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/validate-plugin.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,19 @@ jobs:
4343

4444
- name: Check hosted MCP endpoint
4545
run: |
46-
node -e "const fs=require('node:fs');const data=JSON.parse(fs.readFileSync('mcp.json','utf8'));const server=data.mcpServers?.leadmagic;if(!server||server.type!=='http'||server.url!=='https://mcp.leadmagic.io/mcp'){throw new Error('mcp.json must point to the hosted LeadMagic MCP endpoint with explicit HTTP transport')}if(!server.headers||server.headers['x-leadmagic-key']!=='${LEADMAGIC_API_KEY}'){throw new Error('mcp.json must use LEADMAGIC_API_KEY interpolation')}"
46+
node <<'EOF'
47+
const fs = require('node:fs');
48+
const data = JSON.parse(fs.readFileSync('mcp.json', 'utf8'));
49+
const server = data.mcpServers?.leadmagic;
50+
51+
if (!server || server.type !== 'http' || server.url !== 'https://mcp.leadmagic.io/mcp') {
52+
throw new Error('mcp.json must point to the hosted LeadMagic MCP endpoint with explicit HTTP transport');
53+
}
54+
55+
if (!server.headers || server.headers['x-leadmagic-key'] !== '${LEADMAGIC_API_KEY}') {
56+
throw new Error('mcp.json must use LEADMAGIC_API_KEY interpolation');
57+
}
58+
EOF
4759
4860
- name: Check README references
4961
run: |

0 commit comments

Comments
 (0)