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:
parent
3fe859e21f
commit
5902011dc6
1 changed files with 6 additions and 0 deletions
6
packages/mcp-wrapper/default.nix
Normal file
6
packages/mcp-wrapper/default.nix
Normal 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 "$@"
|
||||||
|
''
|
||||||
Loading…
Add table
Reference in a new issue