stop_stream
Stop the current active stream managed through Restream MCP Server. Use this tool to end streaming sessions across multiple platforms like YouTube, Twitch, and Facebook.
Instructions
Stop the current active stream
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:300-310 (handler)MCP tool handler execution block for 'stop_stream' tool: invokes restreamClient.stopStream() and returns a success message.case 'stop_stream': { await restreamClient.stopStream(); return { content: [ { type: 'text', text: 'Stream stopped successfully', }, ], }; }
- src/restream-client.ts:181-187 (handler)Core implementation of stopStream method: sends POST request to Restream API endpoint '/user/stream/stop' to stop the current stream.async stopStream(): Promise<void> { try { await this.axiosInstance.post('/user/stream/stop'); } catch (error) { throw this.handleError(error, 'Failed to stop stream'); } }
- src/index.ts:158-166 (registration)Tool registration definition including name 'stop_stream', description, and input schema (no parameters required).{ name: 'stop_stream', description: 'Stop the current active stream', inputSchema: { type: 'object', properties: {}, required: [], }, },