SecurityRBAC

Permission Boundaries

1:1 dashboard RBAC parity, field-level DTO projections, permanent dashboard-only blocks for privilege escalation and emergency controls, and read-only billing.

Exact 1:1 dashboard RBAC parity

Taicket MCP replicates the live authorization checks in dashboard/src/lib/permissions.js, dashboard/src/lib/security.js, and dashboard/src/lib/antinuke/access.js inside mcp/src/security/permissions.ts. Granting mcp:write or mcp:destructive to an AI client never elevates a user beyond their real-time Discord and Taicket permissions.

Guard FunctionWho PassesExplicitly BlockedProtected Tools / Modules
checkRealAdminGuild / checkServerSettingsAccessDiscord Guild Owner, ADMINISTRATOR (0x8), or MANAGE_GUILD (0x20)Temp Admins, delegated staff, regular membersconfigure_server_settings (Branding, Linked Main Server, Delegated Interviewers)
checkManageGuildReal Discord Admin OR guild-verified GuildConfig.tempAdminUserIds memberNon-admin users, unverified accounts, blacklisted usersStandard module configuration tools across core support, moderation, community, and utility
authorizeAntiNukeRequestDiscord Guild Owner, active non-expired AntiNukeTrustedUser, or AntiNukeGuildConfig.emergencyOperatorIdsRegular Discord Administrators, Manage Guild users, and Temp Adminsconfigure_antinuke, Anti-Nuke config/log inspection
checkInterviewAccessManage Guild admins OR users in InterviewConfig delegated interviewer roles/usersUnauthorized members; delegated interviewers blocked from admin config mutationsconfigure_interviews, interview record reads
checkServerDashboardAccessManage Guild admins OR delegated Server Dashboard leadership/staff rolesNon-admin staff blocked from leadership role mutation and admin fieldsconfigure_server_dashboard, staff insights
checkComponentBuilderAccessManage Guild admins OR delegated Component Builder role holdersMembers outside delegated builder access listconfigure_automation_and_utility (component-builder), deploy_discord_panel

Field-level RBAC projections

Tool-level gating alone is insufficient when one configuration document holds both operational fields and privileged administrative fields. Every read tool and configuration response passes through field-level RBAC projections before serialization.

  • Temp Admin redaction:: Temporary admins can manage permitted operational modules, but tempAdminUserIds, linkedMainServer, and botBranding are stripped from get_server_configuration responses and rejected on write.
  • Delegated Interviewer projection:: Delegated interviewers can inspect permitted interview workflows and questions according to their role, but never receive or mutate InterviewConfig administrative settings.
  • Anti-Nuke strict isolation:: Callers who fail authorizeAntiNukeRequest receive zero Anti-Nuke configuration fields, backup schedules, or incident logs, even when inspecting guild-wide overviews.
  • Server Dashboard leadership boundary:: Non-admin Server Dashboard staff cannot view or modify leadership role definitions or automation killswitch settings.
Field-level projection applied to guild configuration readstypescript
export function projectGuildConfigForCaller(
  rawConfig: GuildConfigDoc,
  profile: GuildPermissionProfile
): SanitizedGuildConfig {
  const base: SanitizedGuildConfig = {
    guildId: rawConfig.guildId,
    ticketRoutingMode: rawConfig.ticketRoutingMode,
    slaEnabled: rawConfig.slaEnabled,
    transcriptChannelId: rawConfig.transcriptChannelId,
  };

  if (profile.isRealAdmin) {
    base.botBranding = rawConfig.botBranding ?? null;
    base.linkedMainServer = rawConfig.linkedMainServer ?? null;
    // tempAdminUserIds is never editable via MCP and is omitted from non-admin views.
  }

  return base;
}

Permanent dashboard-only security boundaries

Certain privilege escalation controls, emergency kill-switches, and live member-impacting actions are permanently blocked over MCP. Any attempt to invoke them returns DASHBOARD_ONLY with a direct link to the Taicket web dashboard.

Blocked CapabilityRisk EliminatedRequired Surface
Temp Admin delegation (tempAdminUserIds)Prevents prompt-injected privilege escalation granting persistent dashboard accesshttps://taicket.xyz/dashboard/{guildId}/settings
Anti-Nuke Trusted Staff & Emergency OperatorsPrevents an AI session from whitelisting an attacker inside Anti-Nukehttps://taicket.xyz/dashboard/{guildId}/antinuke
Anti-Nuke Emergency LockdownPrevents mass channel/role freeze triggered by untrusted chat inputhttps://taicket.xyz/dashboard/{guildId}/antinuke
Anti-Nuke Structural Backup RestorePrevents destructive server-wide channel/role overwrite restore over MCPhttps://taicket.xyz/dashboard/{guildId}/antinuke
Live member actions (unbans, appeals, balances, XP, jail release, transcript deletes, active giveaway edits)Keeps MCP scoped to server setup, configuration, and read-only diagnosticshttps://taicket.xyz dashboard or Discord commands

Read-only billing and zero-bypass tier enforcement

Subscription state is strictly read-only over MCP. No tool has a write code path to GuildSubscription, SubscriptionSlot, or PromoCode. Users can inspect their active tier (Free, Pro, or Enterprise), feature unlock states, and monthly AI usage quotas via get_available_features and get_server_configuration.

All 18 tier-gated surfaces in mcp/src/security/premium.ts enforce exact 1:1 parity with dashboard/src/lib/subscription.js. Attempting to configure a Pro or Enterprise capability on a lower tier returns TIER_UPGRADE_REQUIRED with a link to https://taicket.xyz/dashboard/{guildId}/premium.

Related documentation