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 Function | Who Passes | Explicitly Blocked | Protected Tools / Modules |
|---|---|---|---|
| checkRealAdminGuild / checkServerSettingsAccess | Discord Guild Owner, ADMINISTRATOR (0x8), or MANAGE_GUILD (0x20) | Temp Admins, delegated staff, regular members | configure_server_settings (Branding, Linked Main Server, Delegated Interviewers) |
| checkManageGuild | Real Discord Admin OR guild-verified GuildConfig.tempAdminUserIds member | Non-admin users, unverified accounts, blacklisted users | Standard module configuration tools across core support, moderation, community, and utility |
| authorizeAntiNukeRequest | Discord Guild Owner, active non-expired AntiNukeTrustedUser, or AntiNukeGuildConfig.emergencyOperatorIds | Regular Discord Administrators, Manage Guild users, and Temp Admins | configure_antinuke, Anti-Nuke config/log inspection |
| checkInterviewAccess | Manage Guild admins OR users in InterviewConfig delegated interviewer roles/users | Unauthorized members; delegated interviewers blocked from admin config mutations | configure_interviews, interview record reads |
| checkServerDashboardAccess | Manage Guild admins OR delegated Server Dashboard leadership/staff roles | Non-admin staff blocked from leadership role mutation and admin fields | configure_server_dashboard, staff insights |
| checkComponentBuilderAccess | Manage Guild admins OR delegated Component Builder role holders | Members outside delegated builder access list | configure_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.
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 Capability | Risk Eliminated | Required Surface |
|---|---|---|
| Temp Admin delegation (tempAdminUserIds) | Prevents prompt-injected privilege escalation granting persistent dashboard access | https://taicket.xyz/dashboard/{guildId}/settings |
| Anti-Nuke Trusted Staff & Emergency Operators | Prevents an AI session from whitelisting an attacker inside Anti-Nuke | https://taicket.xyz/dashboard/{guildId}/antinuke |
| Anti-Nuke Emergency Lockdown | Prevents mass channel/role freeze triggered by untrusted chat input | https://taicket.xyz/dashboard/{guildId}/antinuke |
| Anti-Nuke Structural Backup Restore | Prevents destructive server-wide channel/role overwrite restore over MCP | https://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 diagnostics | https://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.