list_channels
View all connected streaming platforms and their current status to manage your multi-platform broadcast setup.
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 handler for 'list_channels' that invokes restreamClient.getChannels() and formats the result as a text response.case 'list_channels': { const channels = await restreamClient.getChannels(); return { content: [ { type: 'text', text: JSON.stringify(channels, null, 2), }, ], }; }
- src/index.ts:52-59 (registration)Tool registration definition including name, description, and input schema (empty object).name: 'list_channels', description: 'List all connected streaming channels/platforms (YouTube, Twitch, Facebook, etc.) with their connection status', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/restream-client.ts:90-97 (helper)Core implementation of channel listing via GET request to Restream API '/user/channels' endpoint.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'); } }