Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: [], }, },
  • Input schema for 'list_channels' tool: no required parameters.
    inputSchema: { type: 'object', properties: {}, required: [], },
  • 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'); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shaktech786/restream-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server