mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
mcp/
This commit is contained in:
parent
fbe8e4968b
commit
11c6076b76
4 changed files with 28 additions and 20 deletions
|
|
@ -38,6 +38,15 @@ let
|
|||
''
|
||||
else
|
||||
skillPath;
|
||||
|
||||
mcpDir = ./mcp;
|
||||
mcpServers = lib.mapAttrs'
|
||||
(fileName: _:
|
||||
lib.nameValuePair
|
||||
(lib.removeSuffix ".nix" fileName)
|
||||
(import (mcpDir + "/${fileName}"))
|
||||
)
|
||||
(builtins.readDir mcpDir);
|
||||
in
|
||||
{
|
||||
# Packages often used by Claude Code CLI.
|
||||
|
|
@ -65,14 +74,7 @@ in
|
|||
else pkgs.claude-code;
|
||||
|
||||
# Basic settings for Claude Code
|
||||
settings = {
|
||||
# theme = "dark";
|
||||
permissions = {
|
||||
defaultMode = "bypassPermissions";
|
||||
};
|
||||
# Disable Claude from adding itself as co-author to commits
|
||||
includeCoAuthoredBy = false;
|
||||
};
|
||||
settings = import ./settings.nix;
|
||||
|
||||
# System prompt / memory
|
||||
memory.text = builtins.readFile ./memory.md;
|
||||
|
|
@ -83,17 +85,7 @@ in
|
|||
# Automatically discovered agents from subagents/ directory
|
||||
agents = agents;
|
||||
|
||||
# MCP servers configuration
|
||||
# Works well without Nix; so be it.
|
||||
mcpServers = {
|
||||
"nixos-mcp" = {
|
||||
command = "uvx";
|
||||
args = [ "mcp-nixos" ];
|
||||
};
|
||||
"chrome-devtools" = {
|
||||
command = "npx";
|
||||
args = [ "chrome-devtools-mcp@latest" ];
|
||||
};
|
||||
};
|
||||
# Automatically discovered MCP servers from mcp/ directory
|
||||
mcpServers = mcpServers;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
4
modules/home/claude-code/mcp/chrome-devtools.nix
Normal file
4
modules/home/claude-code/mcp/chrome-devtools.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
command = "npx";
|
||||
args = [ "chrome-devtools-mcp@latest" ];
|
||||
}
|
||||
4
modules/home/claude-code/mcp/nixos-mcp.nix
Normal file
4
modules/home/claude-code/mcp/nixos-mcp.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
command = "uvx";
|
||||
args = [ "mcp-nixos" ];
|
||||
}
|
||||
8
modules/home/claude-code/settings.nix
Normal file
8
modules/home/claude-code/settings.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
# theme = "dark";
|
||||
permissions = {
|
||||
defaultMode = "bypassPermissions";
|
||||
};
|
||||
# Disable Claude from adding itself as co-author to commits
|
||||
includeCoAuthoredBy = false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue