Güvenlik ve İzinler Orta
Katı MCP Yapılandırması
Sessizce düşük kaliteye geçmek yerine herhangi bir MCP sunucusu bağlanamadığında hemen hata verin
Komut
$ "color:#7C5CFC">claude -p "Run audit" \ "color:#d97757">--mcp-config ./mcp-config.json \ "color:#d97757">--strict-mcp-config \ "color:#d97757">--output-format json
Yanıt
// Without --strict-mcp-config: broken server silently skipped // With --strict-mcp-config: immediate error exit
Ayrıştırma Kodu
059669">">// Use --strict-mcp-config 059669">">in CI where silent degradation is unacceptable 059669">">// Check init event 059669">">for server status: 059669">">const init = JSON.parse(lines[0]); init.mcp_servers.forEach(s => { 059669">">if (s.status !== 059669059669">">'connected') 059669">">throw new Error(059669">`MCP ${s.name} failed`); });
Tuzaklar
! --strict-mcp-config olmadan bozuk sunucular sessizce atlanır — Claude 'bu yeteneğim yok' deyinceye kadar fark etmezsiniz
! Beklenen tüm araçların mevcut olması gereken CI/CD için kritiktir