Governance & Planningmcp:read

preview_setup

Dry-run a multi-module setup plan, validating RBAC, channels, roles, and tier gates, and issue a 15-minute planId plus browser approval URL when destructive or structural changes are included.

readOnlyHint: trueidempotentHint: truedestructiveHint: falseopenWorldHint: false

Overview

Accepts one or more module configuration or structural setup operations for a single Discord server and executes every validation check without mutating Discord or MongoDB.

Stores an immutable snapshot with a SHA-256 payloadHash in the isolated MCP database (15-minute TTL). If any operation deletes resources or creates Discord channels or roles, sets requiresHumanApproval=true and returns an approvalUrl pointing to https://mcp.taicket.xyz/oauth/approve-action.

Permissions

Required Scopes
mcp:read
Discord Role Access
Caller must satisfy the live RBAC check for every module included in operations.
Server-Side Guard
Per-operation RBAC + cross-guild channel check + role delegation check + 18-surface tier validation
Subscription Tier
Available on Free, Pro, and Enterprise; validates exact tier limits for every requested operation.

Input Schema

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

preview_setup.inputSchema.jsonjson
{
  "type": "object",
  "properties": {
    "guildId": {
      "type": "string",
      "pattern": "^\\d{17,22}$",
      "description": "Discord server (guild) snowflake ID."
    },
    "summary": {
      "type": "string",
      "maxLength": 300,
      "description": "Plain-language summary of what this setup plan configures."
    },
    "operations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tool": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "Target configure_* or deploy_discord_panel tool name."
          },
          "params": {
            "type": "object",
            "additionalProperties": {},
            "description": "Tool-specific configuration payload."
          }
        },
        "required": [
          "tool",
          "params"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 15,
      "description": "Ordered list of module operations to validate and preview."
    }
  },
  "required": [
    "guildId",
    "operations"
  ],
  "additionalProperties": false
}

Parameters

NameTypeRequiredDescription
guildIdstringRequired

Discord server (guild) snowflake ID.

summarystringOptional

Plain-language summary of what this setup plan configures.

operationsarray<object>Required

Ordered list of module operations to validate and preview.

Example

Preview configuring standard tickets and greetings together before applying.

POST https://mcp.taicket.xyz/mcpjson
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "preview_setup",
    "arguments": {
      "guildId": "1200000000000000000",
      "summary": "Configure support ticket routing and welcome channel",
      "operations": [
        {
          "tool": "configure_ticket_system",
          "params": {
            "action": "update_settings",
            "transcriptChannelId": "1200000000000000011",
            "defaultAssignmentMode": "manual"
          }
        },
        {
          "tool": "configure_greetings",
          "params": {
            "enabled": true,
            "welcomeChannelId": "1200000000000000015"
          }
        }
      ]
    }
  }
}

Response

Validated diff preview, issued planId, expiry timestamp, and approval requirements.

Structured Tool Resultjson
{
  "planId": "plan_01JEV4W9N8K2M3Q7R5T6Y8Z0AB",
  "guildId": "1200000000000000000",
  "status": "pending",
  "requiresHumanApproval": false,
  "approvalUrl": null,
  "expiresAt": "2026-12-05T14:15:00.000Z",
  "changes": [
    {
      "tool": "configure_ticket_system",
      "module": "tickets",
      "field": "transcriptChannelId",
      "before": null,
      "after": "1200000000000000011"
    }
  ]
}

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.
DASHBOARD_ONLYThe requested privilege delegation, emergency lockdown, backup restore, live member action, or billing mutation is blocked over MCP.Complete this operation directly on https://taicket.xyz using your Discord browser session.

Behavior

  • Performs zero database writes to Taicket module databases and zero Discord mutations.
  • Computes a deterministic SHA-256 payloadHash bound to the exact operations array, caller userId, and guildId.
  • For destructive or structural plans, emits approvalUrl and confirmationToken requirements that cannot be bypassed by the AI client.