get_stream
Retrieve a specific Nginx Proxy Manager stream configuration by its unique ID to view or manage proxy settings.
Instructions
Get a specific stream by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream_id | Yes | The ID of the stream |
Implementation Reference
- src/npm_mcp/client.py:278-281 (handler)The actual implementation of the get_stream method that performs the API request to the Nginx Proxy Manager instance.
async def get_stream(self, stream_id: int) -> Stream: stream_id = _validate_int_id(stream_id, "stream_id") response = await self._request("GET", f"/api/nginx/streams/{stream_id}") return Stream(**response.json()) - src/npm_mcp/server.py:127-127 (registration)Registration of the get_stream tool in the MCP server.
Tool(name="get_stream", description="Get a specific stream by ID", inputSchema=_id_schema("stream_id", "The ID of the stream")), - src/npm_mcp/server.py:412-413 (handler)Handler in the MCP server that calls the NPMClient for the get_stream tool.
elif name == "get_stream": return _model_response(await npm_client.get_stream(arguments["stream_id"]))