mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-20 06:04:22 +00:00
chore: cursor agent, aerospace
This commit is contained in:
parent
d25c1e0ce3
commit
c1ac8e87b9
4 changed files with 35 additions and 3 deletions
28
home/cursor.nix
Normal file
28
home/cursor.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue