feat: add mcp-npx wrapper for Node.js MCP servers

Provides npx with Node.js in PATH for MCP server execution.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Christopher Mühl 2026-02-28 01:26:28 +01:00
parent 3fe859e21f
commit 5902011dc6
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -0,0 +1,6 @@
{ pkgs }:
pkgs.writeShellScriptBin "mcp-npx" ''
# Wrapper that provides npx with Node.js in PATH
exec ${pkgs.nodejs_22}/bin/npx "$@"
''