mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-31 01:02:22 +00:00
forCopilotFormat only checked for type == "stdio" to add back args, missing the case where a server already has type = "local" (e.g. set directly by a third-party module). This caused args to be absent in the generated mcp-config.json, failing validation. Also, running forCopilotFormat as an extraTransform meant it ran inside transformMcpServer, which then filtered out args = [] in its cleanup pass. Move forCopilotFormat to run after transformMcpServer so the empty args list is preserved in the output. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
39 lines
643 B
JSON
39 lines
643 B
JSON
{
|
|
"mcpServers": {
|
|
"database": {
|
|
"args": [
|
|
"-y",
|
|
"@bytebase/dbhub"
|
|
],
|
|
"command": "npx",
|
|
"env": {
|
|
"DATABASE_URL": "postgresql://user:pass@localhost:5432/db"
|
|
},
|
|
"tools": [
|
|
"*"
|
|
],
|
|
"type": "local"
|
|
},
|
|
"fetch": {
|
|
"args": [],
|
|
"command": "mcp-server-fetch",
|
|
"tools": [
|
|
"*"
|
|
],
|
|
"type": "local"
|
|
},
|
|
"filesystem": {
|
|
"args": [
|
|
"-y",
|
|
"@modelcontextprotocol/server-filesystem",
|
|
"/tmp"
|
|
],
|
|
"command": "npx",
|
|
"tools": [
|
|
"*"
|
|
],
|
|
"type": "local"
|
|
}
|
|
}
|
|
}
|