Run Multiple Instances of the Same Remote Server
mainTo run multiple instances of the same remote server with different configurations (e.g., different Atlassian tenants), use the --resource flag. This isolates OAuth sessions so that each combination of server URL, resource, and custom headers maintains separate token storage.
{
"mcpServers": {
"atlassian_tenant1": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.atlassian.com/v1/sse",
"--resource",
"https://tenant1.atlassian.net/"
]
},
"atlassian_tenant2": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.atlassian.com/v1/sse",
"--resource",
"https://tenant2.atlassian.net/"
]
}
}
}