Runs a JSR/npm package or local script using the Deno runtime.
This is a drop-in replacement for deno run that integrates with
the Denox project configuration.
$ mix denox.run -A @modelcontextprotocol/server-github
$ mix denox.run --allow-net --allow-env=GITHUB_TOKEN npm:some-tool
$ mix denox.run -A scripts/server.ts -- --port 3000
Options
-A/--allow-all- grant all permissions--allow-net[=hosts]- allow network access--allow-env[=vars]- allow environment variable access--allow-read[=paths]- allow file system read access--allow-write[=paths]- allow file system write access--allow-run[=programs]- allow running subprocesses--allow-ffi- allow loading dynamic libraries--allow-sys- allow system info access--allow-hrtime- allow high-resolution time measurement
Arguments after -- are passed to the script.
Stdin is forwarded to the subprocess, making this suitable for stdio-based servers (e.g. MCP servers using JSON-RPC over stdio).