discord-ops
Provides comprehensive tools for interacting with Discord, including messaging, channel management, moderation, roles, webhooks, audit logs, threads, guilds, invites, permissions, search, and more, with multi-guild project routing, notification routing, bot personas, and smart channel resolution.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@discord-opssend a message to #general in my-app project: Hello team!"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
discord-ops
Agency-grade Discord MCP server with multi-guild project routing.
Features
49 MCP tools — messaging, channels, moderation, roles, webhooks, audit log, threads, guilds, invites, permissions, search, 23 templates, OG embed unfurling, project introspection
Multi-guild project routing —
send_message({ project: "my-app", channel: "builds" })instead of raw channel IDsNotification routing — map notification types (
ci_build,deploy,error) to channels per projectOwner pings — configure project owners so releases, errors, and alerts auto-mention the right people
Bot personas — named bots with identity metadata, per-channel bot assignment, and per-bot tool profiles
Multi-bot support — manage multiple Discord bots from a single MCP server with per-project tokens
Tool profiles — load only the tools an agent needs; cut schema overhead by 85% with slim profiles
Smart channel resolution — channel params accept channel name or snowflake ID, with 4-layer fuzzy fallback
Auto-embed for send_message — every message gets a branded embed by default;
raw: truefor plain textOG metadata unfurling —
send_embedfetches Open Graph metadata server-side and renders rich link previewsFlexible token configuration — configurable default token env var, optional default when all projects use per-project tokens
Config validation —
discord-ops validatedetects duplicate guilds, missing tokens, invalid channel refs without connecting to DiscordHTTP/SSE + stdio transports — stdio for Claude Code, HTTP/SSE for remote MCP clients
HTTP transport auth — bearer token auth via
DISCORD_OPS_HTTP_TOKENwith constant-time comparisonDry-run mode — simulate destructive operations without calling Discord API
Interactive setup wizard —
discord-ops setupsupports single-bot and multi-bot configurationSecurity hardening — rate limiting, permission pre-flight checks, snowflake ID validation, self-protection guards
Lazy login — tools enumerate before Discord connects; first tool call triggers login
Zod validation — all inputs validated before execution
Error sanitization — tokens, webhook URLs, and snowflake IDs stripped from error output
Audit logging — every tool call logged to stderr
Quick Start
# Install
npm install -g discord-ops
# Interactive setup (creates ~/.discord-ops.json)
discord-ops setup
# Or manual setup
export DISCORD_TOKEN="your-bot-token"
discord-ops health
# Start MCP server (stdio)
discord-ops
# Start MCP server (HTTP/SSE)
discord-ops serve --port 3000Claude Code Integration
Add to your project's .mcp.json. Use npx with @latest so every session automatically uses the latest published release — without it, npx may serve a stale cached version indefinitely:
{
"mcpServers": {
"discord-ops": {
"command": "npx",
"args": ["-y", "discord-ops@latest"],
"env": {
"DISCORD_TOKEN": "${DISCORD_TOKEN}"
}
}
}
}The ${VAR} syntax is Claude Code's native env var interpolation — it reads the value from your shell environment at startup. Export your bot token in ~/.zshrc (or .bashrc) and it will be available to all projects without hardcoding it in any file.
Multi-org setup (per-project tokens)
When each project has its own bot, pass all token env vars and let ~/.discord-ops.json handle which project uses which:
{
"mcpServers": {
"discord-ops": {
"command": "npx",
"args": ["-y", "discord-ops@latest"],
"env": {
"ORG_A_DISCORD_TOKEN": "${ORG_A_DISCORD_TOKEN}",
"ORG_B_DISCORD_TOKEN": "${ORG_B_DISCORD_TOKEN}"
}
}
}
}Each project in ~/.discord-ops.json declares "token_env": "ORG_A_DISCORD_TOKEN" and discord-ops routes automatically. No default DISCORD_TOKEN needed when all projects have token_env set.
Single-org shorthand
If all your projects share one bot, just pass that token:
{
"mcpServers": {
"discord-ops": {
"command": "npx",
"args": ["-y", "discord-ops@latest"],
"env": {
"DISCORD_TOKEN": "${DISCORD_TOKEN}"
}
}
}
}Custom token env var name
If another tool already claims DISCORD_TOKEN, use DISCORD_OPS_TOKEN_ENV to point at a different name:
{
"mcpServers": {
"discord-ops": {
"command": "npx",
"args": ["-y", "discord-ops@latest"],
"env": {
"DISCORD_OPS_TOKEN_ENV": "MY_BOT_TOKEN",
"MY_BOT_TOKEN": "${MY_BOT_TOKEN}"
}
}
}
}Project Routing
The killer feature: route messages by project name and channel alias instead of raw IDs.
Global config (~/.discord-ops.json)
{
"projects": {
"my-app": {
"guild_id": "123456789012345678",
"channels": {
"dev": "CHANNEL_ID",
"builds": "CHANNEL_ID",
"alerts": "CHANNEL_ID",
"releases": "CHANNEL_ID"
},
"default_channel": "dev"
}
},
"default_project": "my-app",
"notification_routing": {
"ci_build": "builds",
"deploy": "builds",
"release": "releases",
"error": "alerts",
"dev": "dev"
}
}Per-project bot tokens
Projects can specify their own bot token via token_env:
{
"projects": {
"org-a": {
"guild_id": "111111111111111111",
"channels": { "dev": "CHANNEL_ID" },
"default_channel": "dev",
"token_env": "ORG_A_DISCORD_TOKEN"
},
"org-b": {
"guild_id": "222222222222222222",
"channels": { "dev": "CHANNEL_ID" },
"default_channel": "dev",
"token_env": "ORG_B_DISCORD_TOKEN"
}
}
}When all projects have token_env, the default DISCORD_TOKEN is optional. Each project connects with its own bot.
Bot personas
Give bots names, roles, and per-channel assignment. This is ideal when your Discord server runs multiple bots with distinct personas (e.g., a community helper vs. a tech ops bot).
{
"bots": {
"claire": {
"name": "Claire",
"role": "Community helper",
"description": "Handles support and community channels",
"token_env": "CLAIRE_TOKEN",
"default_profile": "messaging"
},
"courier": {
"name": "Clarity Courier",
"role": "Technical operations",
"token_env": "COURIER_TOKEN",
"default_profile": "full"
}
},
"projects": {
"clarity-house": {
"guild_id": "123456789012345678",
"bot": "courier",
"channels": {
"general": "111111111111111111",
"support": { "id": "222222222222222222", "bot": "claire" },
"dev-ops": "333333333333333333",
"ai-testing": { "id": "444444444444444444", "bot": "claire" }
},
"default_channel": "dev-ops",
"tool_profile": "full"
}
}
}How it works:
bots— named bot definitions with identity metadata andtoken_envproject.bot— default bot for the project (all channels use this bot unless overridden)Channel
botoverride — individual channels can use a different bot:{ "id": "...", "bot": "claire" }default_profile— per-bot tool profile (restricts which tools a bot can use at runtime)Token resolution — channel bot → project bot → project
token_env→ defaultDISCORD_TOKENBot persona in routing — resolved targets include
bot: { name, role }metadata for agent contextBackwards compatible —
botsis optional; channels accept both"ID"and{ "id": "ID", "bot": "name" }formats
Use list_bots to see all configured bots, their project assignments, channel overrides, and connection status.
Owner pings
Configure project owners so that releases, errors, and alerts automatically prepend @mentions. This ensures the right people are always paged for critical events without hardcoding mentions in every message.
{
"projects": {
"my-app": {
"guild_id": "123456789012345678",
"channels": { "releases": "CHANNEL_ID", "alerts": "CHANNEL_ID" },
"owners": ["820027414902079548"],
"notify_owners_on": ["release", "error", "alert"]
}
}
}notify_owners_on values: any notification type (release, error, alert, ci_build, deploy, etc.)
Safety: "dev" is hardcoded to never trigger owner pings regardless of config — dev noise stays quiet.
When a send_message or send_embed call uses a matching notification_type, the owner mentions are automatically prepended to the message. No other changes needed.
Smart channel resolution
The channel param accepts a channel name or snowflake ID anywhere a channel is needed. Resolution happens in four layers:
Exact alias match —
"builds"hits thebuildsalias in your project configFuzzy alias match —
"build"or"blds"resolves to the closest aliasLive Discord API lookup —
"general"resolves even with no configured aliasError — if none of the above find a match
This means you can pass channel: "general" and it will work even for channels that aren't in your config. You can also pass a raw snowflake ID directly — channel: "1234567890" bypasses alias resolution entirely.
Per-project config (.discord-ops.json in repo root)
{
"project": "my-app",
"notification_routing": {
"ci_build": "builds",
"deploy": "builds"
}
}Usage
# By project + channel alias
send_message({ project: "my-app", channel: "builds", content: "Build passed!" })
# By notification type (auto-routed to channel, owner pinged if configured)
send_message({ project: "my-app", notification_type: "release", content: "v1.0.0 shipped" })
# Direct channel ID (always works)
send_message({ channel_id: "123456789", content: "Hello" })
# Channel by name (live lookup — no alias needed)
send_message({ project: "my-app", channel: "general", content: "Hello" })Messaging
Auto-embed
send_message automatically wraps messages in a polished embed with a color bar, description, and timestamp. Pass raw: true to send plain text instead.
# Branded embed (default)
send_message({ project: "my-app", channel: "dev", content: "Deploy complete" })
# Plain text
send_message({ project: "my-app", channel: "dev", content: "pong", raw: true })send_embed — OG metadata unfurling
send_embed fetches Open Graph metadata server-side from any URL and renders a rich preview embed. All OG fields can be overridden.
send_embed({
url: "https://www.npmjs.com/package/discord-ops/v/0.14.0",
project: "my-app",
channel: "releases",
title: "discord-ops v0.14.0",
description: "Owner pings, smart channel resolution, category editing",
color: 5763719,
footer: "Released April 3, 2026"
})Useful for sharing GitHub PRs, npm releases, blog posts, or any URL with rich previews — the bot fetches the metadata so Discord's CDN doesn't cache-bust client-side unfurls.
Tools
Messaging (12 tools)
Tool | Description |
| Send a message with project routing (auto-embed by default) |
| Fetch OG metadata from a URL and post a rich embed |
| Fetch recent messages (supports ISO 8601 timestamps) |
| Edit a bot message |
| Delete a message |
| React to a message |
| Pin a message in a channel |
| Unpin a message |
| Search messages by content, author, or date range |
| Send a styled embed using a built-in template |
| List available templates with required variables |
| Ping project owners based on notification type |
Channels (9 tools)
Tool | Description |
| List guild channels |
| Get channel details |
| Create a channel |
| Edit channel name, topic, category, or position (text, voice, and categories) |
| Delete a channel |
| Bulk-delete messages (max 100, < 14 days old) |
| Set or disable slowmode |
| Move a channel to a different category or position |
| Set channel permission overrides for a role or member |
Moderation (4 tools)
Tool | Description |
| Kick a member from a guild |
| Ban a user from a guild |
| Unban a user |
| Timeout (mute) a member |
Roles (5 tools)
Tool | Description |
| List guild roles |
| Create a new role |
| Edit role properties |
| Delete a role |
| Add or remove a role from a member |
Webhooks (6 tools)
Tool | Description |
| Create a webhook on a channel |
| Get webhook details |
| List webhooks for a guild or channel |
| Edit webhook properties |
| Delete a webhook |
| Send a message via webhook |
Audit (1 tool)
Tool | Description |
| Query guild audit log with filters |
Guilds & Members (6 tools)
Tool | Description |
| List bot's guilds |
| Get guild details |
| Get all active invites for a guild |
| Create an invite link for a channel |
| List guild members |
| Get member details |
Threads (3 tools)
Tool | Description |
| Create a thread |
| List active threads |
| Archive (and optionally lock) a thread |
System (3 tools)
Tool | Description |
| Bot status, version, connected guilds, and permission audit |
| List all projects with guild mappings, token status, and validation |
| List all bot personas with project assignments and channel overrides |
Tool Profiles
Load only the tools an agent needs. Reduces schema token overhead by up to 85% for narrow use cases.
Built-in profiles
Profile | Tools | Description |
| 49 | All tools (default) |
| 7 | get_messages, send_message, add_reaction, create_thread, health_check, list_projects, list_bots |
| 7 | get_messages, list_channels, list_members, get_guild, health_check, list_projects, list_bots |
| 7 | get_messages, kick_member, ban_member, timeout_member, delete_message, purge_messages, query_audit_log |
| 5 | add_reaction, delete_message, edit_message, get_messages, send_message |
| 7 | create_channel, delete_channel, edit_channel, get_channel, list_channels, purge_messages, set_slowmode |
| 6 | create_webhook, delete_webhook, edit_webhook, execute_webhook, get_webhook, list_webhooks |
Using profiles
# Via CLI flag
discord-ops --profile monitoring
# Load specific tools
discord-ops --tools "send_message,send_template,health_check"
# Combined (profile as base + add tools)
discord-ops --profile readonly --tools "send_message"Per-project profile config
Profiles can be set per project in ~/.discord-ops.json so each agent gets only what it needs:
{
"projects": {
"my-app": {
"guild_id": "123456789012345678",
"channels": { "dev": "CHANNEL_ID", "alerts": "CHANNEL_ID" },
"tool_profile": "monitoring",
"tool_profile_add": ["send_message"],
"tool_profile_remove": ["list_members"]
}
}
}tool_profile— base profile to use for this projecttool_profile_add— add tools not included in the base profiletool_profile_remove— remove tools from the base profile
CLI
discord-ops Start MCP server (stdio transport)
discord-ops serve Start MCP server (HTTP/SSE transport)
discord-ops run <tool> --args '{…}' Run any tool directly (no AI/MCP required)
discord-ops setup Interactive setup wizard (single + multi-bot)
discord-ops health Run health check + permission audit
discord-ops validate Validate config without connecting to Discord
discord-ops --profile Load a built-in tool profile (monitoring/readonly/moderation/full)
discord-ops --tools Load specific tools by name (comma-separated)
discord-ops --dry-run Simulate destructive operations
discord-ops --help Show help
discord-ops --version Show versionrun — call any tool without an AI agent
The run subcommand executes any discord-ops tool directly from the shell — no MCP client, no AI. Pass all tool input as a single JSON string via --args.
# Send a plain message
npx discord-ops@latest run send_message \
--args '{"project":"my-app","channel":"general","content":"Deployment complete."}'
# Send a rich release announcement
npx discord-ops@latest run send_template \
--args '{
"project": "my-app",
"channel": "releases",
"template": "release",
"vars": {
"name": "my-app",
"version": "v1.2.0",
"author_name": "My Org",
"highlights": "• New feature A\n• Bug fix B",
"npm": "my-app@latest",
"npm_url": "https://www.npmjs.com/package/my-app",
"link": "https://github.com/my-org/my-app/releases/tag/v1.2.0",
"footer": "Published 2026-04-03"
}
}'Any tool name accepted by the MCP server works here — send_message, send_template, send_embed, list_channels, etc. The same input schema applies; validation errors are printed with field paths and exit code 1.
Environment Variables
Variable | Required | Description |
| No* | Default Discord bot token (*required unless all projects have |
| No | Override which env var holds the default token (default: |
| No | Per-project bot tokens (configured via |
| No | Path to global config file, or inline JSON string (default: |
| No |
|
| No | Enable dry-run mode (any truthy value) |
| No | Enable dry-run mode (any truthy value, alias) |
| No | Bearer token for HTTP transport authentication (strongly recommended) |
Token resolution
Channel-level bot — if the channel has a
botoverride, use that bot'stoken_envProject-level bot — if the project has a
bot, use that bot'stoken_envProject-level
token_env— project's own token env varDefault token —
DISCORD_TOKEN(or custom viaDISCORD_OPS_TOKEN_ENV)
If DISCORD_OPS_TOKEN_ENV is set, its value names the env var holding the default token (e.g., DISCORD_OPS_TOKEN_ENV=MY_BOT_TOKEN reads MY_BOT_TOKEN). If all projects have token_env or bot set, no default token is needed.
CI/CD Integration
Use discord-ops run in GitHub Actions (or any CI) to post rich Discord notifications after a publish, deploy, or build — no AI agent required.
Config shape for CI
In CI you typically have one bot token and one project. Pass a minimal config as an inline JSON string via DISCORD_OPS_CONFIG. No file writing needed.
When storing as a GitHub secret, minify to a single line — multiline strings break secret injection. The shape (pretty-printed for readability):
{
"projects": {
"my-app": {
"guild_id": "123456789012345678",
"channels": {
"releases": "987654321098765432",
"builds": "111222333444555666"
},
"default_channel": "releases"
}
},
"default_project": "my-app"
}No
token_envneeded — omitting it means the project usesDISCORD_TOKEN(the default).ownersandnotify_owners_onare optional — include them if you want owner pings on errors.Channel values are Discord snowflake IDs. Channel names (aliases) resolve to these IDs.
GitHub Actions example
Store two secrets in your repo:
BOOKED_DISCORD_BOT_TOKEN— your bot tokenDISCORD_OPS_CONFIG— the config JSON minified to a single line (multiline strings break GitHub secrets)
{"projects":{"my-app":{"guild_id":"123456789012345678","channels":{"releases":"987654321098765432"},"default_channel":"releases"}},"default_project":"my-app"}- name: Notify Discord
run: |
npx discord-ops@latest run send_template --args '{
"project": "my-app",
"channel": "releases",
"template": "release",
"vars": {
"name": "my-app",
"version": "${{ steps.version.outputs.version }}",
"author_name": "My Org",
"highlights": "${{ steps.changelog.outputs.highlights }}",
"npm": "my-app@latest",
"npm_url": "https://www.npmjs.com/package/my-app",
"link": "${{ steps.release.outputs.url }}",
"footer": "Published ${{ steps.date.outputs.date }}"
}
}'
env:
DISCORD_TOKEN: ${{ secrets.BOOKED_DISCORD_BOT_TOKEN }}
DISCORD_OPS_CONFIG: ${{ secrets.DISCORD_OPS_CONFIG }}DISCORD_TOKEN is the default token variable — no additional configuration needed. The bot token from your secret is used directly.
HTTP Transport Security
When running discord-ops serve, the HTTP endpoint is unauthenticated by default with a loud startup warning. Set DISCORD_OPS_HTTP_TOKEN to require bearer auth:
DISCORD_OPS_HTTP_TOKEN=your-secret-token discord-ops serve --port 3000All requests must include:
Authorization: Bearer your-secret-tokenThe health endpoint (GET /health) is always exempt from auth — load balancers and Docker healthchecks can reach it without a token.
Token comparison uses constant-time comparison to prevent timing attacks.
Dry-Run Mode
Enable dry-run to simulate destructive operations (delete, ban, kick, etc.) without actually calling the Discord API:
# Via CLI flag
discord-ops --dry-run
# Via environment variable
DISCORD_OPS_DRY_RUN=1 discord-ops
# Via env alias
DRY_RUN=true discord-opsIn dry-run mode, destructive tools return a simulated success response showing what would have happened.
Message Templates
23 built-in templates with cutting-edge Discord features. Use send_template with project routing.
Features across all templates:
Author branding — every template has a configurable
author_name+author_iconat the topLink buttons — clickable buttons below embeds (View Logs, Open PR, Runbook, etc.)
Discord timestamps — dates auto-convert to each user's timezone with live countdowns
Native polls — real Discord polls with progress bars and vote tracking
Multi-embed dashboards — up to 10 embeds per message for service status boards
Footer icons — status indicator icons (green/red) next to footer text
Clickable titles — embed titles link directly to URLs
Syntax-highlighted code — code examples with language-specific highlighting
Progress bars — visual Unicode block progress indicators
DevOps Templates (11)
Template | Description | Key Features |
| Version release with install + link buttons | Author, link buttons, clickable title |
| Deploy success/failure with logs button | Footer icon, view/logs buttons |
| CI result with build link button | Footer icon, clickable title |
| Incident alert with severity colors | Discord timestamps, status page button |
| Resolution with postmortem button | Discord timestamps, postmortem link |
| Maintenance with live timezone countdowns | Discord timestamps, countdown, status button |
| Service status (operational/degraded/outage) | Footer icon, dashboard button |
| PR review with diff stats + PR button | Clickable title, additions/deletions |
| Multi-embed service status board (up to 9 svc) | Multi-embed, per-service color cards |
| On-call handoff with shift timestamps | Discord timestamps, runbook button |
| Configurable alert (info/warn/error/critical) | Level-based colors, metric thresholds |
Team & Community Templates (12)
Template | Description | Key Features |
| Celebrate wins with images | Author, thumbnail, image |
| Welcome members with onboarding buttons | Discord timestamps, handbook/onboarding links |
| Recognize work with avatar thumbnail | Thumbnail, nomination attribution |
| Block-quoted inspirational text | Block quote formatting, author avatar |
| Announcement with deadline countdown | Discord timestamps, countdown, link button |
| Changelog with 7 section types | Deprecated, performance, security sections |
| Milestone with target date countdown | Discord timestamps, progress tracking |
| Pro tip with syntax-highlighted code | Language-specific code blocks, doc button |
| Native Discord poll with vote tracking | Native poll API, multiselect, duration |
| Visual progress bar with deadline | Unicode progress bar, countdown |
| Daily standup summary | Yesterday/today/blockers sections |
| Sprint retrospective | Went-well/improve/actions, velocity |
Examples
Release announcement:
send_template({
template: "release",
vars: {
version: "v0.14.0",
name: "discord-ops",
highlights: "• Owner pings\n• Smart channel resolution\n• Category channel editing",
npm: "npm install discord-ops@0.14.0",
npm_url: "https://www.npmjs.com/package/discord-ops/v/0.14.0",
link: "https://github.com/bookedsolidtech/discord-ops/pull/20",
footer: "Released April 3, 2026",
author_name: "Booked Solid Technology"
},
project: "my-app",
channel: "releases"
})Native Discord Poll:
send_template({
template: "poll",
vars: {
question: "Best language for MCP servers?",
options: "TypeScript|Rust|Go|Python",
duration: "48",
multiselect: "true"
},
project: "my-app",
channel: "dev"
})Multi-Embed Status Dashboard:
send_template({
template: "dashboard",
vars: {
services: "API|Database|CDN|Auth|Queue",
statuses: "operational|operational|degraded|operational|outage",
title: "Production Status",
url: "https://status.example.com"
},
project: "my-app",
channel: "alerts"
})On-call handoff:
send_template({
template: "oncall",
vars: {
outgoing: "alice",
incoming: "bob",
shift_start: "2026-04-04T09:00:00Z",
notes: "Payment service latency elevated — watch grafana/d/payments",
active_incidents: "INC-342: elevated error rate on /checkout",
runbook_url: "https://wiki.example.com/oncall",
mention: "<@BOB_USER_ID>"
},
project: "my-app",
channel: "team-chat"
})All templates support project routing (project, channel, notification_type, channel_id) and author branding (author_name, author_icon).
Advanced Config Reference
Full ~/.discord-ops.json schema with all options:
{
"bots": {
"my-bot": {
"name": "My Bot",
"role": "General purpose",
"description": "Handles all operations",
"token_env": "MY_BOT_TOKEN",
"default_profile": "full"
}
},
"projects": {
"my-app": {
"guild_id": "123456789012345678",
"token_env": "MY_APP_DISCORD_TOKEN",
"bot": "my-bot",
"channels": {
"dev": "CHANNEL_ID",
"builds": "CHANNEL_ID",
"releases": "CHANNEL_ID",
"alerts": "CHANNEL_ID",
"support": { "id": "CHANNEL_ID", "bot": "my-bot" }
},
"default_channel": "dev",
"owners": ["USER_SNOWFLAKE_ID"],
"notify_owners_on": ["release", "error", "alert"],
"tool_profile": "full",
"profile_add": [],
"profile_remove": [],
"notification_routing": {
"ci_build": "builds",
"deploy": "builds",
"release": "releases",
"error": "alerts"
}
}
},
"default_project": "my-app",
"notification_routing": {
"ci_build": "builds",
"deploy": "builds",
"release": "releases",
"error": "alerts",
"dev": "dev"
}
}Global fields:
Field | Description |
| Named bot personas with |
| Project used when no |
| Global notification type → channel alias routing |
Project fields:
Field | Description |
| Discord server (guild) snowflake ID |
| Env var name for this project's bot token |
| Default bot persona for this project (references a key in |
| Alias → channel ID or |
| Channel used when no |
| User snowflake IDs to mention on matching notification types |
| Notification types that trigger owner pings ( |
| Base tool profile for this project ( |
| Additional tools to load on top of the base profile |
| Tools to exclude from the base profile |
| Per-project override of global notification → channel routing |
Per-project profiles are enforced at runtime — all tools stay registered on the MCP server, but tool calls are filtered when the resolved project or bot has a profile set. This means agents can discover all tools via MCP schema, but per-project restrictions are applied on each call.
Multi-Organization Troubleshooting
Validating your config
Run discord-ops validate to check your config without connecting to Discord. It detects:
Missing
token_envvalues (env var not set)Bot references (
project.bot, channelbot) pointing to undefined botsInvalid
default_profileortool_profilevaluesMissing bot
token_envenvironment variablesDuplicate guild IDs across projects with different tokens
default_channelreferencing a nonexistent aliasdefault_projectpointing to a nonexistent projectNotification routing to nonexistent channel aliases
Common issues
"No token available for project X" The project needs a token. Either:
Set its
token_envenv var (e.g.,export ORG_A_TOKEN=...)Set a default token via
DISCORD_TOKENUse
DISCORD_OPS_TOKEN_ENVto point at a custom env var
Bot can't access a guild
If a project uses token_env for a different bot, that bot must be invited to the project's guild. Run discord-ops health to see which guilds each bot can access.
Migrating from single-bot to multi-bot
Add
token_envto projects that need their own botSet the corresponding env vars
Run
discord-ops validateto verifyRun
discord-ops healthto test connections
Token rotation
Update the env var value and restart the MCP server. No config changes needed — token_env reads from the environment at runtime.
Channel not found
Channel resolution tries 4 layers in order: exact alias → fuzzy alias → live Discord name lookup → error. If a channel is still not found, verify the bot has access to the channel and list_channels returns it.
Development
git clone https://github.com/bookedsolidtech/discord-ops.git
cd discord-ops
npm install
npm run build
npm test
# Local CI
./scripts/act-ci.sh --localLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/bookedsolidtech/discord-ops'
If you have feedback or need assistance with the MCP directory API, please join our Discord server