Expand redMCP safe issue operations and HTTP handling
This commit is contained in:
@@ -11,12 +11,12 @@ $options = getopt('', ['host:', 'port:', 'path:', 'pid-file:', 'debug-log:', 'st
|
||||
if (isset($options['help'])) {
|
||||
fwrite(
|
||||
STDOUT,
|
||||
"Usage: redmcp-http-server.php [--host 0.0.0.0] [--port 8765] [--path /mcp] [--pid-file /tmp/redmcp-http-server.pid] [--debug-log /tmp/redmcp-mcp.log] [--status|--stop] [--force]\n"
|
||||
"Usage: redmcp-http-server.php [--host 127.0.0.1] [--port 8765] [--path /mcp] [--pid-file /tmp/redmcp-http-server.pid] [--debug-log /tmp/redmcp-mcp.log] [--status|--stop] [--force]\n"
|
||||
);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
$host = (string) ($options['host'] ?? '0.0.0.0');
|
||||
$host = (string) ($options['host'] ?? '127.0.0.1');
|
||||
$port = (int) ($options['port'] ?? 8765);
|
||||
$path = (string) ($options['path'] ?? '/mcp');
|
||||
$pidFile = (string) ($options['pid-file'] ?? '/tmp/redmcp-http-server.pid');
|
||||
|
||||
Reference in New Issue
Block a user