MCP Server
devenv mcp launches a Model Context Protocol (MCP) server that exposes devenv functionality to AI assistants.
Stdio mode (default)
Section titled “Stdio mode (default)”$ devenv mcpThe server communicates over stdin/stdout. This is the mode used when an AI tool spawns devenv as a subprocess.
HTTP mode
Section titled “HTTP mode”$ devenv mcp --http$ devenv mcp --http 9090Starts the MCP server as an HTTP service. The default port is 8080.
Available tools
Section titled “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
Section titled “Integration with Claude Code”See Claude Code integration for instructions on configuring Claude Code to use the devenv MCP server automatically.

