Moderation & Securitymcp:write

configure_antinuke

Configure Anti-Nuke protection across 17 modules, 1-click presets (standard, fortress, vault), alert channel, quarantine role, and Enterprise backup schedule (Server Owner or Trusted User only).

readOnlyHint: falseidempotentHint: truedestructiveHint: falseopenWorldHint: false

Overview

Configures the dedicated taicket_antinuke database across all 17 structural protection modules, 1-click presets, alert channels, quarantine role, vanity monitoring, and Enterprise backup schedules, writing versioned AntiNukeSecurityPolicy snapshots and AntiNukeSecurityLog entries.

Strictly enforces authorizeAntiNukeRequest (Discord Server Owner or active non-expired AntiNukeTrustedUser only). Regular Discord Administrators and Temp Admins are blocked. Trusted Staff management, Emergency Lockdown, False-Positive Reversal, and Structural Backup Restore are strictly dashboard-only on https://taicket.xyz.

Permissions

Required Scopes
mcp:write
Discord Role Access
Strictly Discord Server Owner or active non-expired AntiNukeTrustedUser. Regular Discord Admins and Temp Admins are denied.
Server-Side Guard
authorizeAntiNukeRequest (canEditConfig) + cross-guild channel check + delegation-safe quarantine role + Enterprise gate on backupSchedule
Subscription Tier
All 17 protection modules, presets, alert channel, and quarantine role are Free. Automated backup schedule requires Enterprise.

Dashboard-only security boundaries

Adding, editing, or removing Anti-Nuke Trusted Staff, Trusted Bots, Emergency Operators, or Owner-Only Trust Lock is blocked over MCP. Triggering or ending Emergency Server Lockdown is blocked over MCP. Executing Structural Backup Restore is blocked over MCP. Executing False-Positive Incident Reversal is blocked over MCP.

Input Schema

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

configure_antinuke.inputSchema.jsonjson
{
  "type": "object",
  "properties": {
    "guildId": {
      "type": "string",
      "pattern": "^\\d{17,22}$",
      "description": "Discord server (guild) snowflake ID."
    },
    "mode": {
      "type": "string",
      "enum": [
        "preview",
        "apply"
      ],
      "default": "apply",
      "description": "Use preview to inspect validated diffs before writing, or apply to save."
    },
    "enabled": {
      "type": "boolean",
      "description": "Enable or disable Anti-Nuke protection globally."
    },
    "preset": {
      "type": "string",
      "enum": [
        "standard",
        "fortress",
        "vault"
      ],
      "description": "Optional 1-click security preset applied across all 17 modules (standard, fortress, vault)."
    },
    "alertChannelId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Security alert channel ID for Anti-Nuke notices."
    },
    "quarantineRoleId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{17,22}$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Delegation-safe guild role used to quarantine contained accounts."
    },
    "ownerDmAlerts": {
      "type": "boolean",
      "description": "Send critical Anti-Nuke alerts to the Server Owner via DM."
    },
    "vanityMonitoringEnabled": {
      "type": "boolean",
      "description": "Monitor the server custom vanity invite link for tampering."
    },
    "expectedVanityCode": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ],
      "description": "Expected server vanity invite code (for example myserver)."
    },
    "degradedModePolicy": {
      "type": "string",
      "enum": [
        "conservative",
        "monitor_only"
      ],
      "description": "Behavior if database connectivity degrades during an event."
    },
    "modules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "moduleKey": {
            "type": "string",
            "enum": [
              "channel_protection",
              "category_protection",
              "thread_protection",
              "role_protection",
              "permission_protection",
              "security_role_protection",
              "ban_protection",
              "unban_protection",
              "kick_protection",
              "webhook_protection",
              "bot_protection",
              "integration_protection",
              "guild_protection",
              "vanity_protection",
              "invite_protection",
              "emoji_protection",
              "event_protection"
            ],
            "description": "One of the 17 Anti-Nuke protection module keys."
          },
          "enabled": {
            "type": "boolean",
            "description": "Enable or disable this specific protection module."
          },
          "maxActions": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "Action threshold before triggering (1 to 50)."
          },
          "windowSeconds": {
            "type": "integer",
            "minimum": 2,
            "maximum": 3600,
            "description": "Sliding detection window in seconds (2 to 3600)."
          },
          "responseLevel": {
            "type": "integer",
            "minimum": 0,
            "maximum": 5,
            "description": "Response severity level (0=Record, 1=Alert, 2=Investigate, 3=Stop, 4=Lockdown, 5=Stop/Lock/Repair)."
          },
          "containmentAction": {
            "type": "string",
            "enum": [
              "none",
              "strip_roles",
              "quarantine",
              "kick",
              "ban"
            ]
          },
          "containmentActions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "none",
                "strip_roles",
                "quarantine",
                "kick",
                "ban"
              ]
            },
            "maxItems": 4
          },
          "banAddedBot": {
            "type": "boolean",
            "description": "Applies only to bot_protection: immediately ban unapproved bots."
          },
          "autoRecovery": {
            "type": "boolean",
            "description": "Attempt automatic structural repair where supported by the module."
          },
          "logChannelId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{17,22}$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional per-module override alert channel ID."
          },
          "notifyOperators": {
            "type": "boolean",
            "description": "Notify operators when this module triggers."
          },
          "trustedAnomalyCeiling": {
            "type": "integer",
            "minimum": 2,
            "maximum": 200,
            "description": "Safety anomaly ceiling for trusted accounts (2 to 200)."
          }
        },
        "required": [
          "moduleKey"
        ],
        "additionalProperties": false
      },
      "maxItems": 17,
      "description": "Fine-grained overrides for any of the 17 Anti-Nuke protection modules."
    },
    "backupSchedule": {
      "type": "object",
      "properties": {
        "autoBackupEnabled": {
          "type": "boolean",
          "description": "Enable automated scheduled off-server backups (Enterprise)."
        },
        "scheduleIntervalHours": {
          "type": "integer",
          "minimum": 1,
          "maximum": 168,
          "description": "Hours between scheduled structural snapshots (1 to 168)."
        },
        "preIncidentEnabled": {
          "type": "boolean",
          "description": "Capture pre-incident snapshots when threats occur."
        },
        "incrementalEnabled": {
          "type": "boolean",
          "description": "Enable incremental structural snapshots."
        },
        "autoSurgicalRecovery": {
          "type": "boolean",
          "description": "Enable automatic surgical repair from snapshots."
        },
        "maxRetainedBackups": {
          "type": "integer",
          "minimum": 3,
          "maximum": 50,
          "description": "Maximum retained backup versions (3 to 50)."
        }
      },
      "additionalProperties": false,
      "description": "Enterprise-only off-server backup schedule and automatic repair settings."
    }
  },
  "required": [
    "guildId"
  ],
  "additionalProperties": false
}

Parameters

NameTypeRequiredDescription
guildIdstringRequired

Discord server (guild) snowflake ID.

modestringOptional (apply)

Use preview to inspect validated diffs before writing, or apply to save.

Allowed: preview | apply

enabledbooleanOptional

Enable or disable Anti-Nuke protection globally.

presetstringOptional

Optional 1-click security preset applied across all 17 modules (standard, fortress, vault).

Allowed: standard | fortress | vault

alertChannelIdstring | nullOptional

Security alert channel ID for Anti-Nuke notices.

quarantineRoleIdstring | nullOptional

Delegation-safe guild role used to quarantine contained accounts.

ownerDmAlertsbooleanOptional

Send critical Anti-Nuke alerts to the Server Owner via DM.

vanityMonitoringEnabledbooleanOptional

Monitor the server custom vanity invite link for tampering.

expectedVanityCodestring | nullOptional

Expected server vanity invite code (for example myserver).

degradedModePolicystringOptional

Behavior if database connectivity degrades during an event.

Allowed: conservative | monitor_only

modulesarray<object>Optional

Fine-grained overrides for any of the 17 Anti-Nuke protection modules.

backupScheduleobjectOptional

Enterprise-only off-server backup schedule and automatic repair settings.

Example

Preview enabling Anti-Nuke with the fortress preset and alert channel.

POST https://mcp.taicket.xyz/mcpjson
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "configure_antinuke",
    "arguments": {
      "guildId": "1200000000000000000",
      "mode": "preview",
      "enabled": true,
      "preset": "fortress",
      "alertChannelId": "1200000000000000019",
      "ownerDmAlerts": true
    }
  }
}

Response

Validated Anti-Nuke preview diff or applied policy version summary.

Structured Tool Resultjson
{
  "mode": "preview",
  "valid": true,
  "guildId": "1200000000000000000",
  "presetApplied": "fortress",
  "protectedAreas": 17,
  "changes": [
    {
      "tool": "configure_antinuke",
      "module": "antinuke",
      "field": "enabled",
      "before": false,
      "after": true
    }
  ]
}

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

  • Writes exclusively to the isolated taicket_antinuke database and increments policyVersion on every applied update.
  • Records a SHA-256 checksummed AntiNukeSecurityPolicy snapshot and AntiNukeSecurityLog entry on apply.
  • Rejects regular Discord Administrators and Temporary Admins with FORBIDDEN.
  • Rejects any payload attempting Trusted Staff edits, Emergency Lockdown, False-Positive Reversal, or Backup Restore with DASHBOARD_ONLY.