This commit is contained in:
@@ -6,21 +6,10 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
python = pkgs.python3.withPackages (
|
||||
ps:
|
||||
builtins.attrValues {
|
||||
inherit (ps)
|
||||
click
|
||||
pytest
|
||||
black
|
||||
ruff
|
||||
;
|
||||
}
|
||||
);
|
||||
packages = builtins.attrValues {
|
||||
inherit python;
|
||||
inherit (pkgs) codex; # codex-cli from openai
|
||||
};
|
||||
packages = [
|
||||
pkgs.codex
|
||||
inputs.self.packages.${pkgs.system}.nixos-mcp
|
||||
];
|
||||
in
|
||||
{
|
||||
options = {
|
||||
@@ -34,17 +23,15 @@ in
|
||||
};
|
||||
devShells.mcp = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
description = "MCP dev shell for this repo";
|
||||
default = pkgs.mkShell {
|
||||
inherit packages;
|
||||
name = "mcp-dev-shell";
|
||||
shellHook = ''
|
||||
export CODEX_HOME=$PWD/.codex
|
||||
export PYTHONPATH=$PWD/scripts/mcp-server/src
|
||||
alias mcp-run="python -m mcp_server.server"
|
||||
echo "MCP shell ready: codex + python + PYTHONPATH set"
|
||||
echo "MCP shell ready: codex + nixos-mcp"
|
||||
'';
|
||||
};
|
||||
description = "MCP + Codex shell for this repo";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.my.dev.mcp.enable {
|
||||
|
||||
Reference in New Issue
Block a user