Skip to content

Feature: Read flake inputs from local nix store #57

@dhnaranjo

Description

@dhnaranjo

Whattup friend.

While working on my configuration, I've noticed that the agent frequently searches GitHub or other repository locations for information about flake inputs (like home-manager, flake-parts, etc.). However, all of these inputs are already present in the local Nix store after they've been added to my flake.

Proposed Enhancement:

Add an MCP tool that can access and query these flake inputs directly from the filesystem/Nix store. This would provide several benefits:

  1. Faster responses - No need to download or fetch from web APIs
  2. More accurate results - Reading directly from the exact versions pinned in the flake lock file
  3. Fewer external dependencies - Reduced reliance on search APIs and network requests
  4. Better offline support - Works without internet connectivity once inputs are fetched

The tool could leverage the fact that flake inputs are stored in /nix/store and are accessible locally, providing immediate access to the actual source code and documentation of the dependencies already in use.

Is this something that could be added to the mcp-nixos server?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions