feat: installed sleep-mcp server
This commit is contained in:
parent
ca9f54d795
commit
cf330b1cbb
2 changed files with 17 additions and 1 deletions
|
@ -74,6 +74,7 @@ in {
|
||||||
nixos.enable = true;
|
nixos.enable = true;
|
||||||
eslint.enable = true;
|
eslint.enable = true;
|
||||||
vitest.enable = true;
|
vitest.enable = true;
|
||||||
|
sleep.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,13 @@
|
||||||
&& profile.extraExtensions.claudeDev.mcp.vitest.enable
|
&& profile.extraExtensions.claudeDev.mcp.vitest.enable
|
||||||
) (lib.attrValues config.programs.vscode.profiles);
|
) (lib.attrValues config.programs.vscode.profiles);
|
||||||
|
|
||||||
anyProfileHasMcp = anyProfileHasMcpNixos || anyProfileHasMcpEslint || anyProfileHasMcpVitest;
|
anyProfileHasMcpSleep = lib.any (
|
||||||
|
profile:
|
||||||
|
profile.extraExtensions.claudeDev.enable
|
||||||
|
&& profile.extraExtensions.claudeDev.mcp.sleep.enable
|
||||||
|
) (lib.attrValues config.programs.vscode.profiles);
|
||||||
|
|
||||||
|
anyProfileHasMcp = anyProfileHasMcpNixos || anyProfileHasMcpEslint || anyProfileHasMcpVitest || anyProfileHasMcpSleep;
|
||||||
in {
|
in {
|
||||||
options.programs.vscode.profiles = lib.mkOption {
|
options.programs.vscode.profiles = lib.mkOption {
|
||||||
type = lib.types.attrsOf (lib.types.submodule ({config, ...}: {
|
type = lib.types.attrsOf (lib.types.submodule ({config, ...}: {
|
||||||
|
@ -49,6 +55,9 @@ in {
|
||||||
vitest = {
|
vitest = {
|
||||||
enable = lib.mkEnableOption "enable Vitest MCP server for Claude Dev";
|
enable = lib.mkEnableOption "enable Vitest MCP server for Claude Dev";
|
||||||
};
|
};
|
||||||
|
sleep = {
|
||||||
|
enable = lib.mkEnableOption "enable Sleep MCP server for Claude Dev";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -87,6 +96,12 @@ in {
|
||||||
command = "${pkgs.nodejs}/bin/npx";
|
command = "${pkgs.nodejs}/bin/npx";
|
||||||
args = ["-y" "@djankies/vitest-mcp"];
|
args = ["-y" "@djankies/vitest-mcp"];
|
||||||
};
|
};
|
||||||
|
})
|
||||||
|
// (lib.optionalAttrs anyProfileHasMcpSleep {
|
||||||
|
sleep-mcp = {
|
||||||
|
command = "${pkgs.nodejs}/bin/npx";
|
||||||
|
args = ["-y" "sleep-mcp"];
|
||||||
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
force = true;
|
force = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue