stop_stream
Stop the current active stream on Restream MCP Server. Use this tool to end streaming sessions across 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 server handler for the 'stop_stream' tool call. Delegates execution to 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)Primary implementation of the stop stream functionality via POST to Restream API /user/stream/stop endpoint.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 (schema)Tool definition including name, description, and input schema (no parameters required). Used for tool listing and validation.{ name: 'stop_stream', description: 'Stop the current active stream', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/index.ts:183-185 (registration)Registration of the list tools handler that exposes the stop_stream tool via the tools array.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });