Skip to content

Commit fd658b8

Browse files
Drop duplicate agent-device from Wawona project MCP.
Cursor merges User and project mcp.json; listing agent-device in both showed two Connected rows. Keep it only in the User heavy set and set WAWONA_ROOT for vphone discovery.
1 parent 745a42b commit fd658b8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎modules/apps/_ide-mcp.nix‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ let
236236
env = {
237237
PATH = agentDevicePath;
238238
AGENT_DEVICE_NO_UPDATE_NOTIFIER = "1";
239+
# vphone lab profile + guest-ip resolution
240+
WAWONA_ROOT = "${home}/Wawona/Wawona";
241+
SSH_ASKPASS_REQUIRE = "never";
239242
}
240243
// lib.optionalAttrs pkgs.stdenv.isDarwin {
241244
DEVELOPER_DIR = "/Applications/Xcode.app/Contents/Developer";
@@ -353,11 +356,13 @@ let
353356
}
354357
// lib.optionalAttrs cfg.guildforge.enable { guildforge = guildforgeMcpServer; };
355358

359+
# No agent-device here: Cursor merges User (~/.cursor/mcp.json) + project
360+
# mcp.json. Listing it in both shows two "agent-device" rows (User + Wawona).
361+
# Global heavy set already installs it once via userMcpServers.
356362
wawonaMcpServers =
357363
leanMcpServers
358364
// instrumentsMcpServer
359-
// lib.optionalAttrs cfg.lldb.enable { lldb = lldbMcpServer; }
360-
// lib.optionalAttrs cfg.agentDevice.enable { agent-device = agentDeviceMcpServer; };
365+
// lib.optionalAttrs cfg.lldb.enable { lldb = lldbMcpServer; };
361366

362367
userMcpServers = heavyMcpServers;
363368

0 commit comments

Comments
 (0)