claude: drop the Context7 MCP server #1501
No files matched your search
@@ -44,12 +44,6 @@ in
|
|||||||
userExtraDirs.${user} = [ ".claude" ];
|
userExtraDirs.${user} = [ ".claude" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
age.secrets."claude/context7-api-key" = {
|
|
||||||
rekeyFile = ./context7-api-key.age;
|
|
||||||
owner = user;
|
|
||||||
mode = "0400";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Lets agents read, write and rekey agent-tier secrets (*.agent.age) with
|
# Lets agents read, write and rekey agent-tier secrets (*.agent.age) with
|
||||||
# agent-secret. See the "Secret management" section of README.md.
|
# agent-secret. See the "Secret management" section of README.md.
|
||||||
age.secrets."claude/agent-identity" = {
|
age.secrets."claude/agent-identity" = {
|
||||||
@@ -72,23 +66,6 @@ in
|
|||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
home.file.".claude/CLAUDE.md".source = ./global-instructions.md;
|
home.file.".claude/CLAUDE.md".source = ./global-instructions.md;
|
||||||
|
|
||||||
# Merge Context7 MCP server into ~/.claude.json at activation time
|
|
||||||
home.activation.claude-mcp-servers = ''
|
|
||||||
apiKey=$(${pkgs.coreutils}/bin/cat ${lib.escapeShellArg config.age.secrets."claude/context7-api-key".path})
|
|
||||||
target="$HOME/.claude.json"
|
|
||||||
[ -L "$target" ] && target=$(${pkgs.coreutils}/bin/readlink -f "$target")
|
|
||||||
[ -f "$target" ] || echo '{}' > "$target"
|
|
||||||
|
|
||||||
${pkgs.jq}/bin/jq \
|
|
||||||
--arg key "$apiKey" \
|
|
||||||
'.mcpServers.context7 = {
|
|
||||||
"type": "http",
|
|
||||||
"url": "https://mcp.context7.com/mcp",
|
|
||||||
"headers": { "CONTEXT7_API_KEY": $key }
|
|
||||||
}' "$target" > "$target.tmp"
|
|
||||||
${pkgs.coreutils}/bin/mv "$target.tmp" "$target"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Disable zoxide cd hook inside Claude Code subshells to avoid cd breakage.
|
# Disable zoxide cd hook inside Claude Code subshells to avoid cd breakage.
|
||||||
# Claude Code sets CLAUDECODE=1 in all subprocesses it spawns (Bash tool,
|
# Claude Code sets CLAUDECODE=1 in all subprocesses it spawns (Bash tool,
|
||||||
# hooks, MCP, etc.), so we check for that and strip the cd function back out
|
# hooks, MCP, etc.), so we check for that and strip the cd function back out
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 be++Eg R6GWNg8hPXwVjLdIekQc7K5uDY7bpzya8Dg6C/gv6Gw
|
|
||||||
upVWOUVc6pHC1pU942slPTI3HuWyRTMzuX4GGw9+8yk
|
|
||||||
-> q>~-grease
|
|
||||||
zOQ+H7OAGXglKEkb6KS71PI6okOmkilfyA
|
|
||||||
--- 0glPWbFajXTgxfJygSaLOIXwcZ+0HsG9t56xDORsFq0
|
|
||||||
Nr²$jýPêUUÜÇ˜Ë MP30ÕóÈÚ�á¬Þ=+ÐÏÞ¶␍)„¹Ó2gÌÄ␍°€ØÓF€õIo}<ô-Ám€Š Ô`ÚÞ¶Gtm
|
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,8 +0,0 @@
|
|||||||
age-encryption.org/v1
|
|
||||||
-> ssh-ed25519 2Uo1TA UFSmDgGaWkCw2waBCeo49IcAkBijmJG4683a1MxyUBQ
|
|
||||||
Buz6pGeWKPRLl85MoWvsKcS+L2EpIMlCgRVHB5wXihM
|
|
||||||
-> ~vOF$q-grease }'W{ q;&8** [7
|
|
||||||
UZa1ASf96Z8QsO32ZSwLVpwwMcGzoKWud2xOINck9Rxc29naM9sFTG64mrQOyOYK
|
|
||||||
f52b2VloEc1RY67wyuiZx38
|
|
||||||
--- uDTKEPAij0a1UQr1XYiJH4xTPfveydciEZLJg8dLIBM
|
|
||||||
AÄøAµšÃn¾(©€Ú'xŽÑ!MWïaFuob¹Y�ÓVwʃÛ/¶¹ƒöS>8œ/Ý9ÄÛÞ ’§äÄÇa“%ÏÜèùuí#ñݨ{Í
|
|
||||||
Reference in new issue
Block a user