mcp server done
Some checks failed
MCP Tests / mcp-tests (pull_request) Failing after 4s

This commit is contained in:
Danilo Reyes
2026-02-01 10:36:54 -06:00
parent ecf058aacf
commit 8946ade5e8
15 changed files with 214 additions and 190 deletions

View File

@@ -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 {