Skip to main content
Glama

Twitch MCP Server

by mtane0412
chat.ts906 B
import { ApiClient } from '@twurple/api'; import { formatResponse } from '../../utils/twitch.js'; export async function handleGetGlobalEmotes(apiClient: ApiClient) { const emotes = await apiClient.chat.getGlobalEmotes(); return formatResponse( emotes.map(emote => ({ id: emote.id, name: emote.name, urls: { url1x: emote.getImageUrl(1), url2x: emote.getImageUrl(2), url4x: emote.getImageUrl(4), }, })) ); } export async function handleGetGlobalBadges(apiClient: ApiClient) { const badges = await apiClient.chat.getGlobalBadges(); return formatResponse( badges.map(badge => ({ id: badge.id, versions: Object.fromEntries( badge.versions.map(version => [ version.id, { title: version.title, imageUrl: version.getImageUrl(1), }, ]) ), })) ); }

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/mtane0412/twitch-mcp-server'

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