Thats close but not yet complete.
I meant that you have to combine them in this way. You see there is a single "mcpServers": {
entry and the two servers "server-name": {
and "server-name2": {
are joined by },
the comma after first server
here again two servers (apologies, i corrected the change)
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "mcp-server"],
"env": {
"API_KEY": "value"
}
},
"server-name2": {
"command": "npx",
"args": ["-y", "mcp-server2"],
"env": {
"API_KEY": "value"
}
}
}
}