Developer GuideGuidelines
Contributing
Repository isolation boundaries, editorial and code style standards, Core Brain documentation synchronization, and PR verification checklist.
Strict workspace isolation rules
The Taicket monorepo houses multiple live production services. Contributions to the MCP platform must stay strictly isolated inside mcp/, nginx/mcp.taicket.xyz.conf, the single taicket-mcp block in ecosystem.config.cjs, and TicketBot/MCP-Platform-Architecture.md.
| Directory / File | MCP Contribution Policy |
|---|---|
| mcp/** and mcp/docs-site/** | Primary development scope for MCP server, tests, and documentation site. |
| dashboard/, bot/, docs/, profile/, tournament/, activity/, club/ | Strictly read-only reference. Zero edits allowed in MCP pull requests. |
| nginx/mcp.taicket.xyz.conf | Dedicated MCP Nginx config only. Never modify other files in nginx/. |
| ecosystem.config.cjs | Modify only the taicket-mcp app block. Never alter existing app definitions. |
| TicketBot/MCP-Platform-Architecture.md | Update immediately whenever MCP architecture, tools, or security rules change. |
Editorial and code compliance rules
- Zero em dashes in source code:: Do not place Unicode em dashes (U+2014) anywhere inside TypeScript, JavaScript, JSON, or Nginx files, including comments and UI strings. Use hyphens with spaces ( - ), colons, or commas.
- Zero banned marketing or AI-filler phrases:: Keep prose direct, concrete, and technical. Avoid filler phrases, hype adjectives, AI persona wording, and AI badges across UI views and docs.
- Zero placeholders:: Never commit placeholder markers, incomplete JSON blocks, or mocked security checks.
- Discord Unix timestamps in bot payloads:: Any timestamp rendered by deploy_discord_panel inside Components V2 containers must use native Discord Unix timestamp syntax (<t:TIMESTAMP:F>, <t:TIMESTAMP:R>) with discord-container-kit, flags: 32768, .accent(color), and Type 14 separators.
- Never launch the Discord bot process:: Automated scripts, tests, and contributors working on mcp/ must never start or restart the live Discord bot process.
Pull request verification checklist
Required pre-PR verification commandsbash
# 1. Regenerate docs tool manifest if any tool schema changed
npm --prefix mcp run build:docs-manifest
# 2. Type-check MCP server and docs site
npm --prefix mcp run typecheck
npm --prefix mcp/docs-site run typecheck
# 3. Execute all 5 Vitest suites (including docs-quality.test.ts)
npm --prefix mcp test
# 4. Run full production build
npm --prefix mcp run build:all
# 5. Confirm zero modifications to protected sibling apps
git status --short