There is currently a global MCP configuration file for all MCP servers.
Some servers like the Postgres one require connection strings.
Those are normally project dependent. I have to change them manually every time I change project.
Additionally I do not want to store sensitive data in MCP configuration.
Would be great if environment variables are supported like
{
"mcpServers": {
"postgresql": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"${MY_CONNECT_STRING}"
]
}
}
}