Deployment & Reportingmcp:deploy

deploy_discord_panel

Deploy or update Components V2 panels (flags: 32768) in verified guild channels, send safe test dispatches, or synchronize AI rules channels.

readOnlyHint: falseidempotentHint: falsedestructiveHint: falseopenWorldHint: true

Overview

Publishes or refreshes live Discord Components V2 container messages (built with discord-container-kit using flags: 32768, Type 14 Separators, accent colors, and Discord Unix timestamps) into channels verified to belong to guildId.

Supports ticket_panel, ai_ticket_panel (Panels 1 to 3 only), verification_panel, reaction_role_panel, booster_panel, match_together_lobby, component_builder_item, safe test dispatches (greeting_test, bump_reminder_test, activity_reward_test, starboard_test), and Pro/Enterprise rules channel synchronization (ai_tickets_sync_rules, aimod_sync_rules).

Permissions

Required Scopes
mcp:deploy
Discord Role Access
Real Admin or active Temp Admin (delegated Component Builder role permitted for component_builder_item).
Server-Side Guard
checkManageGuild or checkComponentBuilderAccess + verifyChannelBelongsToGuild + role-delegation check + tier gates
Subscription Tier
Matches the target module tier (ai_ticket_panel and rules sync require Pro+; AI Panels 2 and 3 require Enterprise; custom Verification containers require Pro+).

Input Schema

JSON Schema enforced by the server prior to RBAC and tier validation. Unknown properties are rejected strictly.

deploy_discord_panel.inputSchema.jsonjson
{
  "type": "object",
  "properties": {
    "guildId": {
      "type": "string",
      "pattern": "^\\d{17,22}$",
      "description": "Discord server (guild) snowflake ID."
    },
    "target": {
      "type": "string",
      "enum": [
        "ticket_panel",
        "ai_ticket_panel",
        "verification_panel",
        "reaction_role_panel",
        "booster_panel",
        "match_together_lobby",
        "component_builder_item",
        "greeting_test",
        "bump_reminder_test",
        "activity_reward_test",
        "starboard_test",
        "ai_tickets_sync_rules",
        "aimod_sync_rules"
      ],
      "description": "Panel, test dispatch, or rules channel synchronization target."
    },
    "channelId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Destination Discord text or announcement channel snowflake ID belonging to guildId."
    },
    "itemId": {
      "type": "string",
      "maxLength": 120,
      "description": "Specific panel ID, AI panel slot (ai-default, ai-panel-2, ai-panel-3), reaction role panel ID, component ID, starboard board ID, or greeting test slot."
    },
    "messageId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional existing bot Discord message ID to edit in place instead of posting a new message."
    },
    "forceRedeploy": {
      "type": "boolean",
      "default": false,
      "description": "Set true to publish a new panel message even if an earlier message ID is already saved for this panel."
    }
  },
  "required": [
    "guildId",
    "target"
  ],
  "additionalProperties": false
}

Parameters

NameTypeRequiredDescription
guildIdstringRequired

Discord server (guild) snowflake ID.

targetstringRequired

Panel, test dispatch, or rules channel synchronization target.

Allowed: ticket_panel | ai_ticket_panel | verification_panel | reaction_role_panel | booster_panel | match_together_lobby | component_builder_item | greeting_test | bump_reminder_test | activity_reward_test | starboard_test | ai_tickets_sync_rules | aimod_sync_rules

channelIdstring | nullOptional

Destination Discord text or announcement channel snowflake ID belonging to guildId.

itemIdstringOptional

Specific panel ID, AI panel slot (ai-default, ai-panel-2, ai-panel-3), reaction role panel ID, component ID, starboard board ID, or greeting test slot.

messageIdstring | nullOptional

Optional existing bot Discord message ID to edit in place instead of posting a new message.

forceRedeploybooleanOptional (false)

Set true to publish a new panel message even if an earlier message ID is already saved for this panel.

Example

Deploy a configured Standard Ticket panel into a verified text channel.

POST https://mcp.taicket.xyz/mcpjson
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "deploy_discord_panel",
    "arguments": {
      "guildId": "1200000000000000000",
      "target": "ticket_panel",
      "channelId": "1200000000000000010",
      "itemId": "panel_general_support",
      "forceRedeploy": false
    }
  }
}

Response

Discord message delivery confirmation or idempotent already-deployed warning.

Structured Tool Resultjson
{
  "deployed": true,
  "updatedInPlace": false,
  "target": "ticket_panel",
  "guildId": "1200000000000000000",
  "panelId": "panel_general_support",
  "channelId": "1200000000000000010",
  "messageId": "1400000000000000999",
  "flags": 32768
}

Errors

Error CodeConditionResolution
UNAUTHORIZEDMissing, expired, or revoked Bearer access token or scoped Personal Access Token.Re-authenticate through OAuth 2.1 or create a fresh token in https://mcp.taicket.xyz/account.
FORBIDDENToken lacks the required OAuth scope, the guild is outside allowedGuildIds, or caller lacks live Discord RBAC permissions.Grant the required scope during consent or confirm your Discord server role permissions.
RATE_LIMITEDCaller exceeded the per-user sliding-window request limit.Wait for the Retry-After window before issuing another request.
VALIDATION_ERRORInput arguments failed Zod schema validation or contained invalid Discord snowflakes.Inspect the parameter schema and supply valid Discord snowflake IDs and field types.
CROSS_GUILD_RESOURCEA referenced channel, category, or role does not belong to the specified guildId.Call get_server_topology for the target server and reference only resources returned for that guild.
TIER_UPGRADE_REQUIREDThe requested module, quota, or option requires a Pro or Enterprise subscription.Review current plan limits with get_server_configuration or upgrade at https://taicket.xyz/dashboard/{guildId}/premium.
NOT_FOUNDThe requested panel, item, command, or setup plan was not found for this server.Inspect current resources with get_server_configuration and supply a valid ID.
DISCORD_API_ERRORDiscord REST API returned an error or the Taicket bot is not in the target server.Confirm Taicket is installed in the server via get_discord_servers and retry.

Behavior

  • Enforces a dedicated deploy rate limit of 10 deployments per minute per user and appends a hash-chained audit entry.
  • Verifies every target channel belongs to guildId via verifyChannelBelongsToGuild before calling Discord REST API.
  • Updates existing panel messages in place when deploying to the same channel, and returns an alreadyDeployed warning instead of duplicating panels unless forceRedeploy is true.
  • Validates external media URLs through the DNS-rebinding-pinned fetcher and magic-byte verifier, and rejects AI Support Panel 4.