Skip to content

mcp-nix ? #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Malix-Labs opened this issue May 19, 2025 · 6 comments
Closed

mcp-nix ? #24

Malix-Labs opened this issue May 19, 2025 · 6 comments

Comments

@Malix-Labs
Copy link

Hello folks

I've been using mcp-nixos for some time now and find it very helpful

But now, I've been wondering if I could use it on a non-nixos linux distribution or even on nix-darwin

Is it possible?

Otherwise, could this mcp be extended to support those uses or it would need to be a completely new one?
I figure at least there would be shared components

@jamesbrink
Copy link
Member

Absolutely. There’s no dependency on nixos, you just need python and uvx

@Malix-Labs
Copy link
Author

Malix-Labs commented May 19, 2025

I was not really thinking about dependencies but more about: nix on Linux and Darwin doesn't have the same resources and tools, right?

Looking at the repo, I thought it would only be of use with NixOS (name, description, and readme)

@jamesbrink
Copy link
Member

I might need to document it better, but the MCP server uses the official nixos package search for all Linux nix/Nixos packages and options. It has no real knowledge of the differences from say using nix on Ubuntu vs NixOS. As far as Darwin goes it uses the nix-Darwin docs.. same with home manager.

So if I’m using it with cursor for example, as long the agent has context of the configuration/setup it shouldn’t have too much trouble. If the configuration is for Darwin, it will be able to see what packages are available for Darwin and cpu architecture. Furthermore it will be able to leverage any relevant nix-Darwin options and instinctively know to use those and not the nixos options. Hopefully this makes sense im half asleep lol

@jamesbrink
Copy link
Member

Closing the issue, but if I did not address the question properly feel free to re-open

@Malix-Labs
Copy link
Author

You answered my question properly, but indeed the documentation (name, description, and readme) mislead me into thinking this mcp was only to be used for NixOS and not any other Nix environment

@jamesbrink
Copy link
Member

Thanks for the feedback, I will try to cleanup the README.. its a bit ridiculous

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants