nix/home/cursor.nix
Harivansh Rathi c1ac8e87b9
Some checks are pending
quality / changes (push) Waiting to run
quality / Flake Check (push) Blocked by required conditions
quality / Nix Format Check (push) Blocked by required conditions
quality / Deploy netty (push) Blocked by required conditions
chore: cursor agent, aerospace
2026-04-17 15:18:47 -04:00

28 lines
787 B
Nix

{ pkgs, ... }:
let
jsonFormat = pkgs.formats.json { };
# Cursor reads ~/.cursor/mcp.json on startup for every CLI session. Declaring
# it here keeps the MCP surface in-repo and reviewable.
cursorMcp = jsonFormat.generate "cursor-mcp.json" {
mcpServers = {
rube = {
url = "https://rube.composio.dev/mcp?agent=cursor";
headers = { };
};
context7 = {
command = "npx";
args = [
"-y"
"@upstash/context7-mcp@latest"
];
};
};
};
in
{
# Cursor CLI mutates ~/.cursor/cli-config.json directly (auth, privacy cache,
# per-session slash-command state), so we intentionally do NOT manage that
# file here. Only MCP config is declarative.
home.file.".cursor/mcp.json".source = cursorMcp;
}