streaming
Twitch MCP Integration for OpenAI Agents SDK
Connect Twitch to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Twitch to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
Twitch MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-twitch": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=twitch",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=twitch --write=deny Why Use KosmoKrator Here
Expose only Twitch instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Twitch Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the Twitch integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__twitch__twitch_list_streams | twitch.twitch_list_streams | Read | List live streams on Twitch. Filter by game, language, or specific users. Returns stream title, viewer count, and broadcaster info. |
integration__twitch__twitch_get_user | twitch.twitch_get_user | Read | Get information about a Twitch user by user ID or login name. Returns display name, bio, profile image, and account details. |
integration__twitch__twitch_list_games | twitch.twitch_list_games | Read | Get information about Twitch games/categories by ID or name. Returns game name, box art URL, and IGDB ID. |
integration__twitch__twitch_get_game | twitch.twitch_get_game | Read | Get information about a specific Twitch game/category by its ID. Returns game name, box art URL, and IGDB ID. |
integration__twitch__twitch_list_channels | twitch.twitch_list_channels | Read | List channel information on Twitch. Filter by broadcaster ID. Returns channel description, game, and broadcast settings. |
integration__twitch__twitch_get_channel | twitch.twitch_get_channel | Read | Get information about a specific Twitch channel by broadcaster ID. Returns channel title, game, description, and broadcast settings. |
integration__twitch__twitch_search_categories | twitch.twitch_search_categories | Read | Search for games/categories on Twitch by name. Returns matching categories with IDs you can use to filter streams. |
integration__twitch__twitch_get_current_user | twitch.twitch_get_current_user | Read | Get information about the currently authenticated Twitch user. Returns display name, bio, profile image, and account type. |