File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "mcpServers" : {
3+ "Playwright" : {
4+ "type" : " stdio" ,
5+ "command" : " npx" ,
6+ "args" : [
7+ " @playwright/mcp@latest"
8+ ]
9+ }
10+ }
11+ }
Original file line number Diff line number Diff line change @@ -617,9 +617,14 @@ <h4 class="text-sm font-bold text-black mb-2">Actions</h4>
617617 if ( mcpFile ) {
618618 try {
619619 let config = JSON . parse ( mcpFile ) ;
620- // Remove the specific MCP from config
621- if ( config . mcps && config . mcps [ mcpName ] ) {
622- delete config . mcps [ mcpName ] ;
620+ // Remove the specific MCP from config - use correct property name
621+ if ( config . mcpServers && config . mcpServers [ mcpName ] ) {
622+ delete config . mcpServers [ mcpName ] ;
623+ }
624+
625+ // If no MCPs left, keep the file with empty mcpServers object
626+ if ( ! config . mcpServers ) {
627+ config . mcpServers = { } ;
623628 }
624629
625630 // Update the file with cleaned config
You can’t perform that action at this time.
0 commit comments