list_channels
Retrieve all connected streaming channels (YouTube, Twitch, Facebook, etc.) and their current connection status to manage multi-platform streaming setups.
Instructions
List all connected streaming channels/platforms (YouTube, Twitch, Facebook, etc.) with their connection status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:205-215 (handler)MCP tool execution handler for 'list_channels': calls restreamClient.getChannels() and returns the result as JSON text content.case 'list_channels': { const channels = await restreamClient.getChannels(); return { content: [ { type: 'text', text: JSON.stringify(channels, null, 2), }, ], }; }
- src/index.ts:51-59 (registration)Registers the 'list_channels' tool in the MCP tools list, including its name, description, and empty input schema.{ name: 'list_channels', description: 'List all connected streaming channels/platforms (YouTube, Twitch, Facebook, etc.) with their connection status', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/index.ts:54-58 (schema)Input schema for 'list_channels' tool: no required parameters.inputSchema: { type: 'object', properties: {}, required: [], },
- src/restream-client.ts:89-96 (helper)Core implementation: Fetches channels from Restream API endpoint '/user/channels' using authenticated axios request.*/ async getChannels(): Promise<Channel[]> { try { const response = await this.axiosInstance.get<{ channels: Channel[] }>('/user/channels'); return response.data.channels || []; } catch (error) { throw this.handleError(error, 'Failed to fetch channels'); }