enable_stream
Activate a stream proxy configuration in Nginx Proxy Manager to route network traffic through the specified stream ID.
Instructions
Enable a stream
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream_id | Yes | The ID of the stream to enable |
Implementation Reference
- src/npm_mcp/client.py:302-305 (handler)Implementation of the `enable_stream` method in the NPM client.
async def enable_stream(self, stream_id: int) -> None: stream_id = _validate_int_id(stream_id, "stream_id") await self._request("POST", f"/api/nginx/streams/{stream_id}/enable") - src/npm_mcp/server.py:162-162 (registration)Tool registration for `enable_stream`.
Tool(name="enable_stream", description="Enable a stream", inputSchema=_id_schema("stream_id", "The ID of the stream to enable")), - src/npm_mcp/server.py:426-428 (handler)Tool handler dispatch logic for `enable_stream`.
elif name == "enable_stream": await npm_client.enable_stream(arguments["stream_id"]) return _msg_response("Stream enabled successfully")