Skip to main content
Glama
VoiceOS Discord MCP Server

VoiceOS Discord MCP Server

by CharityDEX

VoiceOS Discord MCP 서버

이것은 Composio의 DISCORDBOT 툴킷을 통해 VoiceOS가 Discord 메시지를 읽고 쓸 수 있게 해주는 독립형 TypeScript MCP 서버입니다.

VoiceOS는 여전히 이를 로컬 stdio MCP 서버로 실행하지만, Discord 인증 및 토큰 처리는 Composio에 위임됩니다.

기능

  • connect_discord_bot: Discord 봇/계정 인증을 위한 Composio Connect 링크를 반환합니다.

  • list_discord_servers: Composio 기반 봇 흐름을 위한 길드/서버 검색 방법을 설명합니다.

  • list_discord_channels: 알려진 Discord 길드/서버 ID에 대한 채널 목록을 표시합니다.

  • read_discord_messages: Discord 채널 ID에서 최근 메시지를 가져옵니다.

  • send_discord_message: Discord 채널 ID로 메시지를 보냅니다.

  • reply_discord_message: 특정 Discord 메시지 ID에 답장합니다.

쓰기 작업은 MCP 도구 정의에 명확하게 설명되어 있어 VoiceOS가 Discord로 무언가를 보내기 전에 확인 알림을 표시할 수 있습니다.

Related MCP server: MCP-Discord

요구 사항

  • Node.js 20+

  • Composio API 키

  • 로컬 테스트를 위한 안정적인 사용자 ID

프로덕션 VoiceOS의 경우, 사용자 ID는 로그인한 VoiceOS 계정에서 자동으로 주입되어야 합니다. 사용자가 수동으로 결정하거나 입력해서는 안 됩니다.

설치

npm install

환경 구성

로컬 .env 파일을 생성합니다:

COMPOSIO_API_KEY=your_composio_api_key
VOICEOS_USER_ID=local-test-user
COMPOSIO_TOOLKIT=DISCORDBOT
# Recommended/required for reliable DISCORDBOT channel and message tools.
COMPOSIO_AUTH_CONFIG_ID=your_discordbot_auth_config_id

COMPOSIO_AUTH_CONFIG_ID는 Discord 클라이언트 ID, 클라이언트 시크릿, 봇 토큰 및 권한 정수를 포함하는 사용자 지정 Composio DISCORDBOT 인증 구성을 가리켜야 합니다. 기본 Composio 관리 OAuth 연결은 서버 채널/메시지 엔드포인트에 필요한 봇 토큰이 부족한 상태에서도 ACTIVE로 표시될 수 있으며, 이로 인해 Discord 401 Unauthorized 응답이 발생합니다.

채널 검색을 위한 선택적 서버 ID:

DISCORD_GUILD_IDS=server_id_1,server_id_2

DISCORD_GUILD_IDS는 현재 Composio 기반 MCP가 채널 목록을 DISCORDBOT_LIST_GUILD_CHANNELS에 매핑하는데, 이는 길드/서버 ID가 필요하기 때문에 유용합니다.

로컬 실행

npm run start

VoiceOS에 연결

  1. VoiceOS 설정을 엽니다.

  2. Custom Integrations로 이동합니다.

  3. Add를 클릭합니다.

  4. 통합 이름을 지정합니다(예: Discord).

  5. 실행 명령을 붙여넣습니다:

/Users/makslas/Desktop/Development-Repos/VoiceOS-Discord-MCP/run-discord-mcp.sh
  1. Connect를 클릭합니다.

인증 흐름

MCP가 VoiceOS에 연결된 후 다음을 요청하세요:

Connect Discord

VoiceOS는 connect_discord_bot을 호출하여 Composio Connect 링크를 엽니다. COMPOSIO_AUTH_CONFIG_ID가 설정된 경우, 링크는 Composio의 기본 관리 OAuth 구성 대신 해당 인증 구성에 대해 생성됩니다.

사용자가 인증하기 전에 Discord 작업을 시도하면 MCP는 인증 필요 메시지를 반환합니다. 일반적인 Discord 작업은 의도적으로 Composio를 자동으로 열지 않으며, 이는 인증 재시도 루프를 방지합니다.

Discord Bot authentication is required before I can access Discord.

Please explicitly ask: `Connect Discord` when you want me to open the Composio connection page.

도구 세부 정보

connect_discord_bot

DISCORDBOT을 위한 Composio Connect 링크를 생성합니다.

VoiceOS에 다음을 요청할 때 사용하세요:

Connect Discord

list_discord_servers

DISCORD_GUILD_IDS가 구성된 경우 해당 길드에 대한 세부 정보를 가져옵니다. 그렇지 않으면 Composio DISCORDBOT 채널 목록을 보려면 길드/서버 ID가 필요함을 설명합니다.

list_discord_channels

서버/길드에 대한 Discord 채널 목록을 표시합니다.

매개변수:

  • guild_id: 선택적 Discord 서버/길드 ID. 생략하면 도구는 DISCORD_GUILD_IDS를 사용합니다.

  • text_only: 기본값은 true이며, 읽기/보내기 메시지 워크플로에 적합한 텍스트 채널만 반환합니다.

VoiceOS에 다음을 요청할 때 사용하세요:

What Discord channels do you have access to in server GUILD_ID?

read_discord_messages

DISCORDBOT_LIST_MESSAGES를 통해 채널에서 최근 메시지를 읽습니다.

매개변수:

  • channel_id: Discord 채널 ID.

  • channel_name: general과 같은 Discord 채널 이름. channel_id가 생략될 때 사용됩니다.

  • guild_id: channel_name을 확인하는 데 사용되는 선택적 Discord 서버/길드 ID. 생략하면 도구는 DISCORD_GUILD_IDS를 사용합니다.

  • limit: 가져올 메시지 수(1~100). 기본값은 10입니다.

  • before: 페이지 매김을 위한 선택적 메시지 ID. 이 메시지 이전의 메시지를 가져옵니다.

  • after: 페이지 매김을 위한 선택적 메시지 ID. 이 메시지 이후의 메시지를 가져옵니다.

  • around: 페이지 매김을 위한 선택적 메시지 ID. 이 메시지 주변의 메시지를 가져옵니다.

  • author_filter: 선택적 사용자 ID, 사용자 이름 또는 표시 이름 필터.

send_discord_message

DISCORDBOT_CREATE_MESSAGE를 통해 채널로 메시지를 보냅니다.

매개변수:

  • channel_id: Discord 채널 ID.

  • channel_name: general과 같은 Discord 채널 이름. channel_id가 생략될 때 사용됩니다.

  • guild_id: channel_name을 확인하는 데 사용되는 선택적 Discord 서버/길드 ID. 생략하면 도구는 DISCORD_GUILD_IDS를 사용합니다.

  • content: 정확한 메시지 내용. 최대 2000자.

  • tts: 텍스트 음성 변환으로 보낼지 여부. 기본값은 false입니다.

  • allowed_mentions: 멘션 파싱 정책. none, users, users_and_roles, everyone 중 하나. 기본값은 none입니다.

reply_discord_message

message_reference와 함께 DISCORDBOT_CREATE_MESSAGE를 사용하여 특정 메시지에 답장합니다.

매개변수:

  • channel_id: 원본 메시지가 포함된 Discord 채널 ID.

  • channel_name: general과 같은 Discord 채널 이름. channel_id가 생략될 때 사용됩니다.

  • guild_id: channel_name을 확인하는 데 사용되는 선택적 Discord 서버/길드 ID. 생략하면 도구는 DISCORD_GUILD_IDS를 사용합니다.

  • message_id: 답장할 Discord 메시지 ID.

  • content: 정확한 답장 내용. 최대 2000자.

  • allowed_mentions: 멘션 파싱 정책. none, users, users_and_roles, everyone 중 하나. 기본값은 none입니다.

Discord DM 제한 사항

Composio DISCORDBOT은 봇이 액세스할 수 있는 채널 메시징, 메시지 읽기, 답장, 길드 채널 목록 표시 및 봇이 생성한 DM을 지원합니다.

사용자의 기존 개인 DM에 대한 광범위한 액세스 권한은 부여하지 않습니다. 그룹 DM 작업은 gdm.join 권한이 있는 사용자 OAuth2 액세스 토큰이 필요하며 Discord API 제한 사항의 적용을 받습니다.

프로덕션 VoiceOS 사용자 ID

프로덕션의 경우, VoiceOS는 내부 로그인 사용자 ID를 Composio에 자동으로 전달해야 합니다. 사용자가 수동으로 사용자 ID를 입력해서는 안 됩니다.

Discord 이메일을 기본 Composio user_id로 사용하지 마십시오:

  • 연결 링크는 Discord OAuth가 완료되기 전에 사용자 ID가 필요합니다.

  • Discord 이메일은 범위에 따라 사용하지 못할 수 있습니다.

  • 이메일은 변경될 수 있습니다.

  • 한 명의 VoiceOS 사용자가 나중에 여러 Discord 계정을 연결할 수 있습니다.

보안 참고 사항

  • .env를 커밋하지 마십시오.

  • COMPOSIO_API_KEY를 커밋하지 마십시오.

  • Discord 봇 토큰이나 연결된 계정 자격 증명을 커밋하지 마십시오.

  • allowed_mentions의 기본값은 none이므로 생성된 메시지가 실수로 사용자, 역할, @everyone 또는 @here를 핑하지 않습니다.

Available Tools

6 tools
connect_discord_botA

Create a Composio Connect Link for authenticating the Discord bot/account connection. Use this whenever the user asks to connect Discord, or whenever another Discord tool reports that authentication is required.

Inputs: no named parameters.

list_discord_channelsA

List Discord channels that the Composio DISCORDBOT connection can discover. Provide a server/guild ID when known. If authentication is missing, return a Composio Connect Link. Use this when the user asks what Discord channels or chats are available.

Inputs: guild_id, text_only.

list_discord_serversC

Explain how to list Discord servers/guilds for this Composio DISCORDBOT integration. DISCORDBOT channel discovery requires a guild/server ID; if authentication is missing, this returns a Composio Connect Link.

Inputs: no named parameters.

read_discord_messagesA

Read recent messages from a specific Discord channel by channel ID. Use this when the user asks what is happening in a Discord channel or wants context from recent Discord messages. This is a read-only action.

Inputs: channel_id, channel_name, guild_id, limit, +4 more.

reply_discord_messageA

Reply to a specific Discord message ID in a channel. This is a write action and should be shown to the user as a VoiceOS confirmation pill before execution. Confirm the channel ID, message ID, and exact reply content with the user before calling this tool.

Inputs: message_id (required), content (required), channel_id, channel_name, +2 more.

send_discord_messageA

Send a new message to a specific Discord channel by channel ID. This is a write action and should be shown to the user as a VoiceOS confirmation pill before execution. Confirm the channel ID and exact message content with the user before calling this tool.

Inputs: content (required), channel_id, channel_name, guild_id, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools have distinct purposes (connect, list channels, read, send, reply), but list_discord_servers is ambiguous as it 'explains how to list' rather than listing, potentially overlapping with list_discord_channels.

    Naming Consistency5/5

    All tools consistently follow verb_noun pattern (e.g., connect_discord_bot, list_discord_channels), with clear and predictable naming.

    Tool Count4/5

    6 tools is reasonable for a Discord bot integration covering auth, listing, reading, and writing. Slightly narrow but not excessive.

    Completeness3/5

    Covers core operations but list_discord_servers only explains rather than actually retrieving servers, creating a functional gap. Missing update/delete message and server management tools.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to interact with a Discord account to read channels, send and manage messages, handle DMs and reactions, search messages, and update status.
      1
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to interact with the Discord platform, including managing servers, channels, roles, members, messages, forums, reactions, and webhooks through Discord bot capabilities.
      3,822 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to interact with the Discord platform, including servers, members, roles, channels, categories, forum posts, messages, reactions, and webhooks. It supports logging in a bot, reading and searching messages, and creating, editing, or deleting Discord resources through natural language.
      3,822 npm
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to interact with the Discord platform by managing servers, channels, roles, forum posts, messages, reactions, and webhooks through a Discord bot.
      3,822 npm
      MIT