MCP Server
devenv mcp launches a Model Context Protocol (MCP) server that exposes devenv functionality to AI assistants.
Usage
Stdio mode (default)
The server communicates over stdin/stdout. This is the mode used when an AI tool spawns devenv as a subprocess.
HTTP mode
Starts the MCP server as an HTTP service. The default port is 8080.
Available tools
The MCP server provides:
- search_packages — search for packages in the nixpkgs input.
- search_options — search for devenv configuration options.
Integration with Claude Code
See Claude Code integration for instructions on configuring Claude Code to use the devenv MCP server automatically.