Skip to content
14 changes: 13 additions & 1 deletion DevProxy/Commands/DevProxyConfigOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,19 @@ public DevProxyConfigOptions()
return value;
}
};
var stdioCommand = new Command("stdio", "Proxy stdin/stdout/stderr of local executables")
var stdioCommand = new Command("stdio", """
Proxy stdin/stdout/stderr of local executables.
Dev Proxy intercepts and processes the stdio streams of the specified command,
applying configured plugins (mocking, error simulation, etc.) to the traffic.
Logs are written to a timestamped file (devproxy-stdio-YYYYMMDD-HHmmss.log)
to avoid interfering with the proxied streams.
Usage errors and exceptions are written to stderr.

Examples:
devproxy stdio npx -y @devproxy/mcp Proxy MCP server
Comment thread
waldekmastykarz marked this conversation as resolved.
devproxy stdio node server.js Proxy Node.js app
devproxy stdio -c myconfig.json node app.js With custom config
""")
{
stdioConfigFileOption,
// Add a catch-all argument to consume remaining args (command to execute)
Expand Down
14 changes: 13 additions & 1 deletion DevProxy/Commands/StdioCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,19 @@ public StdioCommand(
ILogger<StdioCommand> logger,
ILoggerFactory loggerFactory,
IEnumerable<IStdioPlugin> plugins) :
base("stdio", "Proxy stdin/stdout/stderr of local executables")
base("stdio", """
Proxy stdin/stdout/stderr of local executables.
Dev Proxy intercepts and processes the stdio streams of the specified command,
applying configured plugins (mocking, error simulation, etc.) to the traffic.
Logs are written to a timestamped file (devproxy-stdio-YYYYMMDD-HHmmss.log)
to avoid interfering with the proxied streams.
Usage errors and exceptions are written to stderr.

Examples:
devproxy stdio npx -y @devproxy/mcp Proxy MCP server
Comment thread
waldekmastykarz marked this conversation as resolved.
devproxy stdio node server.js Proxy Node.js app
devproxy stdio -c myconfig.json node app.js With custom config
""")
{
_logger = logger;
_loggerFactory = loggerFactory;
Expand Down
Loading