@cubis/foundry 0.3.32 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +23 -0
- package/bin/cubis.js +461 -37
- package/mcp/README.md +17 -0
- package/mcp/catalogs/default.json +14 -0
- package/mcp/powers/atlassian-mcp/POWER.md +91 -0
- package/mcp/powers/atlassian-mcp/SKILL.md +88 -0
- package/mcp/powers/building-mcp-server-on-cloudflare/POWER.md +261 -0
- package/mcp/powers/building-mcp-server-on-cloudflare/SKILL.md +258 -0
- package/mcp/powers/datadog-automation/POWER.md +238 -0
- package/mcp/powers/datadog-automation/SKILL.md +235 -0
- package/mcp/powers/github-automation/POWER.md +230 -0
- package/mcp/powers/github-automation/SKILL.md +227 -0
- package/mcp/powers/mcp-builder/POWER.md +179 -0
- package/mcp/powers/mcp-builder/SKILL.md +176 -0
- package/mcp/powers/mcp-developer/POWER.md +88 -0
- package/mcp/powers/mcp-developer/SKILL.md +85 -0
- package/mcp/powers/postman/POWER.md +243 -0
- package/mcp/powers/postman/SKILL.md +240 -0
- package/mcp/powers/sentry-automation/POWER.md +235 -0
- package/mcp/powers/sentry-automation/SKILL.md +232 -0
- package/mcp/skills/atlassian-mcp/SKILL.md +88 -0
- package/mcp/skills/building-mcp-server-on-cloudflare/SKILL.md +258 -0
- package/mcp/skills/datadog-automation/SKILL.md +235 -0
- package/mcp/skills/github-automation/SKILL.md +227 -0
- package/mcp/skills/mcp-builder/SKILL.md +176 -0
- package/mcp/skills/mcp-developer/SKILL.md +85 -0
- package/mcp/skills/postman/SKILL.md +240 -0
- package/mcp/skills/sentry-automation/SKILL.md +232 -0
- package/package.json +2 -1
- package/workflows/powers/architecture/POWER.md +12 -46
- package/workflows/powers/architecture/SKILL.md +12 -46
- package/workflows/powers/atlassian-mcp/POWER.md +11 -81
- package/workflows/powers/atlassian-mcp/SKILL.md +11 -81
- package/workflows/powers/building-mcp-server-on-cloudflare/POWER.md +12 -252
- package/workflows/powers/building-mcp-server-on-cloudflare/SKILL.md +12 -252
- package/workflows/powers/code-review-checklist/POWER.md +11 -99
- package/workflows/powers/code-review-checklist/SKILL.md +11 -99
- package/workflows/powers/csharp-pro/POWER.md +43 -0
- package/workflows/powers/csharp-pro/SKILL.md +40 -0
- package/workflows/powers/database-design/POWER.md +47 -5
- package/workflows/powers/database-design/SKILL.md +45 -4
- package/workflows/powers/database-optimizer/POWER.md +11 -23
- package/workflows/powers/database-optimizer/SKILL.md +5 -5
- package/workflows/powers/datadog-automation/POWER.md +12 -229
- package/workflows/powers/datadog-automation/SKILL.md +12 -229
- package/workflows/powers/debugging-wizard/POWER.md +12 -78
- package/workflows/powers/debugging-wizard/SKILL.md +12 -78
- package/workflows/powers/deployment-procedures/POWER.md +11 -231
- package/workflows/powers/deployment-procedures/SKILL.md +11 -231
- package/workflows/powers/drift-flutter/POWER.md +51 -0
- package/workflows/powers/drift-flutter/SKILL.md +2 -2
- package/workflows/powers/github-automation/POWER.md +12 -221
- package/workflows/powers/github-automation/SKILL.md +12 -221
- package/workflows/powers/golang-pro/POWER.md +38 -66
- package/workflows/powers/golang-pro/SKILL.md +38 -66
- package/workflows/powers/java-pro/POWER.md +43 -0
- package/workflows/powers/java-pro/SKILL.md +40 -0
- package/workflows/powers/javascript-pro/POWER.md +37 -67
- package/workflows/powers/javascript-pro/SKILL.md +37 -67
- package/workflows/powers/kotlin-pro/POWER.md +43 -0
- package/workflows/powers/kotlin-pro/SKILL.md +40 -0
- package/workflows/powers/mcp-builder/POWER.md +12 -170
- package/workflows/powers/mcp-builder/SKILL.md +12 -170
- package/workflows/powers/mcp-developer/POWER.md +11 -78
- package/workflows/powers/mcp-developer/SKILL.md +11 -78
- package/workflows/powers/nextjs-developer/POWER.md +41 -148
- package/workflows/powers/nextjs-developer/SKILL.md +41 -148
- package/workflows/powers/nextjs-react-expert/POWER.md +10 -281
- package/workflows/powers/nextjs-react-expert/SKILL.md +10 -281
- package/workflows/powers/nodejs-best-practices/POWER.md +33 -317
- package/workflows/powers/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/powers/postman/POWER.md +11 -233
- package/workflows/powers/postman/SKILL.md +11 -233
- package/workflows/powers/python-patterns/POWER.md +11 -431
- package/workflows/powers/python-patterns/SKILL.md +11 -431
- package/workflows/powers/python-pro/POWER.md +38 -66
- package/workflows/powers/python-pro/SKILL.md +38 -66
- package/workflows/powers/react-best-practices/POWER.md +35 -118
- package/workflows/powers/react-best-practices/SKILL.md +35 -118
- package/workflows/powers/react-expert/POWER.md +38 -66
- package/workflows/powers/react-expert/SKILL.md +38 -66
- package/workflows/powers/rust-engineer/POWER.md +10 -75
- package/workflows/powers/rust-engineer/SKILL.md +10 -75
- package/workflows/powers/rust-pro/POWER.md +36 -163
- package/workflows/powers/rust-pro/SKILL.md +36 -163
- package/workflows/powers/sentry-automation/POWER.md +12 -226
- package/workflows/powers/sentry-automation/SKILL.md +12 -226
- package/workflows/powers/server-management/POWER.md +11 -151
- package/workflows/powers/server-management/SKILL.md +11 -151
- package/workflows/powers/tdd-workflow/POWER.md +12 -140
- package/workflows/powers/tdd-workflow/SKILL.md +12 -140
- package/workflows/powers/testing-patterns/POWER.md +11 -168
- package/workflows/powers/testing-patterns/SKILL.md +11 -168
- package/workflows/powers/typescript-pro/POWER.md +43 -70
- package/workflows/powers/typescript-pro/SKILL.md +43 -70
- package/workflows/powers/vercel-ai/POWER.md +43 -0
- package/workflows/powers/vercel-ai/SKILL.md +40 -0
- package/workflows/powers/vercel-ai-gateway/POWER.md +11 -69
- package/workflows/powers/vercel-ai-gateway/SKILL.md +11 -69
- package/workflows/powers/vercel-ai-sdk/POWER.md +11 -49
- package/workflows/powers/vercel-ai-sdk/SKILL.md +11 -49
- package/workflows/powers/vercel-caching/POWER.md +10 -72
- package/workflows/powers/vercel-caching/SKILL.md +10 -72
- package/workflows/powers/vercel-cli/POWER.md +11 -75
- package/workflows/powers/vercel-cli/SKILL.md +11 -75
- package/workflows/powers/vercel-delivery/POWER.md +45 -0
- package/workflows/powers/vercel-delivery/SKILL.md +42 -0
- package/workflows/powers/vercel-deployments/POWER.md +10 -90
- package/workflows/powers/vercel-deployments/SKILL.md +10 -90
- package/workflows/powers/vercel-domains/POWER.md +10 -69
- package/workflows/powers/vercel-domains/SKILL.md +10 -69
- package/workflows/powers/vercel-firewall/POWER.md +10 -61
- package/workflows/powers/vercel-firewall/SKILL.md +10 -61
- package/workflows/powers/vercel-flags/POWER.md +10 -62
- package/workflows/powers/vercel-flags/SKILL.md +10 -62
- package/workflows/powers/vercel-functions/POWER.md +10 -70
- package/workflows/powers/vercel-functions/SKILL.md +10 -70
- package/workflows/powers/vercel-routing/POWER.md +10 -68
- package/workflows/powers/vercel-routing/SKILL.md +10 -68
- package/workflows/powers/vercel-runtime/POWER.md +43 -0
- package/workflows/powers/vercel-runtime/SKILL.md +40 -0
- package/workflows/powers/vercel-security/POWER.md +43 -0
- package/workflows/powers/vercel-security/SKILL.md +40 -0
- package/workflows/powers/vulnerability-scanner/POWER.md +11 -266
- package/workflows/powers/vulnerability-scanner/SKILL.md +11 -266
- package/workflows/scripts/generate-powers.mjs +95 -202
- package/workflows/skills/atlassian-mcp/SKILL.md +11 -81
- package/workflows/skills/building-mcp-server-on-cloudflare/SKILL.md +12 -252
- package/workflows/skills/catalogs/core.json +30 -0
- package/workflows/skills/catalogs/web-backend.json +70 -0
- package/workflows/skills/csharp-pro/SKILL.md +40 -0
- package/workflows/skills/datadog-automation/SKILL.md +12 -229
- package/workflows/skills/github-automation/SKILL.md +12 -221
- package/workflows/skills/golang-pro/SKILL.md +38 -66
- package/workflows/skills/java-pro/SKILL.md +40 -0
- package/workflows/skills/javascript-pro/SKILL.md +37 -67
- package/workflows/skills/kotlin-pro/SKILL.md +40 -0
- package/workflows/skills/mcp-builder/SKILL.md +12 -170
- package/workflows/skills/mcp-developer/SKILL.md +11 -78
- package/workflows/skills/nextjs-developer/SKILL.md +41 -148
- package/workflows/skills/nextjs-react-expert/SKILL.md +5 -11
- package/workflows/skills/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/skills/postman/SKILL.md +11 -233
- package/workflows/skills/python-pro/SKILL.md +38 -66
- package/workflows/skills/react-best-practices/SKILL.md +35 -118
- package/workflows/skills/react-expert/SKILL.md +38 -66
- package/workflows/skills/rust-pro/SKILL.md +36 -163
- package/workflows/skills/sentry-automation/SKILL.md +12 -226
- package/workflows/skills/skills_index.json +43 -57
- package/workflows/skills/typescript-pro/SKILL.md +43 -70
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/backend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/code-archaeologist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/database-architect.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/debugger.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/devops-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/documentation-writer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/explorer-agent.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/frontend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/game-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/mobile-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/orchestrator.md +28 -400
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/penetration-tester.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/performance-optimizer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/product-manager.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/product-owner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/project-planner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/qa-automation-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/security-auditor.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/seo-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/test-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/vercel-expert.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +7 -6
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/backend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/code-archaeologist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/database-architect.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/debugger.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/devops-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/documentation-writer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/explorer-agent.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/game-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/orchestrator.md +28 -400
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/penetration-tester.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/performance-optimizer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-manager.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-owner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/project-planner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/qa-automation-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/security-auditor.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/seo-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/test-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/agents/vercel-expert.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +7 -6
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/backend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/code-archaeologist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/database-architect.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/debugger.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/devops-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/documentation-writer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/explorer-agent.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/frontend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/game-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/mobile-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/orchestrator.md +28 -400
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/penetration-tester.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/performance-optimizer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/product-manager.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/product-owner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/project-planner.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/qa-automation-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/security-auditor.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/seo-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/test-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/vercel-expert.md +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/AGENTS.md +7 -6
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/csharp-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/golang-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/java-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/javascript-pro/SKILL.md +37 -67
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/kotlin-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/nextjs-developer/SKILL.md +41 -148
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/nextjs-react-expert/SKILL.md +6 -12
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/python-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/react-best-practices/SKILL.md +35 -118
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/react-expert/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/rust-pro/SKILL.md +36 -163
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +43 -57
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/typescript-pro/SKILL.md +43 -70
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/csharp-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/golang-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/java-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/javascript-pro/SKILL.md +37 -67
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/kotlin-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/nextjs-developer/SKILL.md +41 -148
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/nextjs-react-expert/SKILL.md +6 -12
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/python-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/react-best-practices/SKILL.md +35 -118
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/react-expert/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/rust-pro/SKILL.md +36 -163
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/skills_index.json +43 -57
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/typescript-pro/SKILL.md +43 -70
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/csharp-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/golang-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/java-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/javascript-pro/SKILL.md +37 -67
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/kotlin-pro/SKILL.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/nextjs-developer/SKILL.md +41 -148
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/nextjs-react-expert/SKILL.md +6 -12
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/nodejs-best-practices/SKILL.md +33 -317
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/python-pro/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/react-best-practices/SKILL.md +35 -118
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/react-expert/SKILL.md +38 -66
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/rust-pro/SKILL.md +36 -163
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/skills_index.json +43 -57
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/typescript-pro/SKILL.md +43 -70
- package/workflows/workflows/agent-environment-setup/shared/agents/backend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/code-archaeologist.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/database-architect.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/debugger.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/devops-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/documentation-writer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/explorer-agent.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/frontend-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/game-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/mobile-developer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/orchestrator.md +28 -400
- package/workflows/workflows/agent-environment-setup/shared/agents/penetration-tester.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/performance-optimizer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/product-manager.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/product-owner.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/project-planner.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/qa-automation-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/security-auditor.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/seo-specialist.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/test-engineer.md +1 -1
- package/workflows/workflows/agent-environment-setup/shared/agents/vercel-expert.md +1 -1
- package/workflows/powers/sub-agents/scripts/run_subagent.py.bak +0 -512
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/authentication-patterns.md +0 -0
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/common-workflows.md +0 -0
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/confluence-operations.md +0 -0
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/jira-queries.md +0 -0
- /package/{workflows → mcp}/powers/atlassian-mcp/steering/mcp-server-setup.md +0 -0
- /package/{workflows → mcp}/powers/building-mcp-server-on-cloudflare/steering/examples.md +0 -0
- /package/{workflows → mcp}/powers/building-mcp-server-on-cloudflare/steering/oauth-setup.md +0 -0
- /package/{workflows → mcp}/powers/building-mcp-server-on-cloudflare/steering/troubleshooting.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/LICENSE.txt +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/reference/evaluation.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/reference/mcp_best_practices.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/reference/node_mcp_server.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/reference/python_mcp_server.md +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/scripts/connections.py +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/scripts/evaluation.py +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/scripts/example_evaluation.xml +0 -0
- /package/{workflows → mcp}/powers/mcp-builder/scripts/requirements.txt +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/protocol.md +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/python-sdk.md +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/resources.md +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/tools.md +0 -0
- /package/{workflows → mcp}/powers/mcp-developer/steering/typescript-sdk.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/bloc-state.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/engineering-principles.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/gorouter-navigation.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/performance.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/project-structure.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/riverpod-state.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-expert/steering/widget-patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/log_redaction.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/network_hardening.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/secret-scanning.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/secure_storage_policy.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/steering/vulnerability-patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-security-reviewer/templates/security_review_response.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/golden-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/integration-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/property-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/riverpod-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/test-utilities.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/unit-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/flutter-test-master/steering/widget-testing.md +0 -0
- /package/{workflows → mcp}/powers/postman/git-commit/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/git-commit/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/steering/guard_patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/steering/tab_preservation.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/templates/guard_redirect.md +0 -0
- /package/{workflows → mcp}/powers/postman/gorouter-restoration/templates/stateful_shell_skeleton.md +0 -0
- /package/{workflows → mcp}/powers/postman/mcp.json +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/communication.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/data.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/decomposition.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/observability.md +0 -0
- /package/{workflows → mcp}/powers/postman/microservices-architect/steering/patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/authentication.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/controllers-routing.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/dtos-validation.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/migration-from-express.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/secure-sessions.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/services-di.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/strangler-fig-pattern.md +0 -0
- /package/{workflows → mcp}/powers/postman/nestjs-expert/steering/testing-patterns.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/steering/colors.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/steering/components.md +0 -0
- /package/{workflows → mcp}/powers/postman/oneup-design/steering/spacing.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/POWER.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/SKILL.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/crud-templates.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-express.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-fastapi.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-nestjs.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/framework-raw-openapi.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/openapi-checklist.md +0 -0
- /package/{workflows → mcp}/powers/postman/openapi-docs/steering/stoplight-ui.md +0 -0
- /package/{workflows → mcp}/powers/postman/steering/steering.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/authentication-patterns.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/common-workflows.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/confluence-operations.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/jira-queries.md +0 -0
- /package/{workflows → mcp}/skills/atlassian-mcp/references/mcp-server-setup.md +0 -0
- /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/examples.md +0 -0
- /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/oauth-setup.md +0 -0
- /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/tool-patterns.md +0 -0
- /package/{workflows → mcp}/skills/building-mcp-server-on-cloudflare/references/troubleshooting.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/LICENSE.txt +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/reference/evaluation.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/reference/mcp_best_practices.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/reference/node_mcp_server.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/reference/python_mcp_server.md +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/scripts/connections.py +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/scripts/evaluation.py +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/scripts/example_evaluation.xml +0 -0
- /package/{workflows → mcp}/skills/mcp-builder/scripts/requirements.txt +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/protocol.md +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/python-sdk.md +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/resources.md +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/tools.md +0 -0
- /package/{workflows → mcp}/skills/mcp-developer/references/typescript-sdk.md +0 -0
- /package/{workflows → mcp}/skills/postman/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/bloc-state.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/engineering-principles.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/gorouter-navigation.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/performance.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/project-structure.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/riverpod-state.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-expert/references/widget-patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/log_redaction.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/network_hardening.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/secret-scanning.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/secure_storage_policy.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/references/vulnerability-patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-security-reviewer/templates/security_review_response.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/golden-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/integration-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/property-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/riverpod-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/test-utilities.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/unit-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/flutter-test-master/references/widget-testing.md +0 -0
- /package/{workflows → mcp}/skills/postman/git-commit/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/git-commit/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/references/guard_patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/references/tab_preservation.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/templates/guard_redirect.md +0 -0
- /package/{workflows → mcp}/skills/postman/gorouter-restoration/templates/stateful_shell_skeleton.md +0 -0
- /package/{workflows → mcp}/skills/postman/mcp.json +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/communication.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/data.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/decomposition.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/observability.md +0 -0
- /package/{workflows → mcp}/skills/postman/microservices-architect/references/patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/authentication.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/controllers-routing.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/dtos-validation.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/migration-from-express.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/secure-sessions.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/services-di.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/strangler-fig-pattern.md +0 -0
- /package/{workflows → mcp}/skills/postman/nestjs-expert/references/testing-patterns.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/references/colors.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/references/components.md +0 -0
- /package/{workflows → mcp}/skills/postman/oneup-design/references/spacing.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/POWER.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/SKILL.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/crud-templates.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-express.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-fastapi.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-nestjs.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/framework-raw-openapi.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/openapi-checklist.md +0 -0
- /package/{workflows → mcp}/skills/postman/openapi-docs/references/stoplight-ui.md +0 -0
- /package/{workflows → mcp}/skills/postman/references/steering.md +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
````markdown
|
|
2
|
+
---
|
|
3
|
+
inclusion: manual
|
|
4
|
+
name: atlassian-mcp
|
|
5
|
+
description: Use when querying Jira issues, searching Confluence pages, creating tickets, updating documentation, or integrating Atlassian tools via MCP protocol.
|
|
6
|
+
license: MIT
|
|
7
|
+
metadata:
|
|
8
|
+
author: https://github.com/Jeffallan
|
|
9
|
+
version: "1.0.0"
|
|
10
|
+
domain: platform
|
|
11
|
+
triggers: Jira, Confluence, Atlassian, MCP, tickets, issues, wiki, JQL, CQL, sprint, backlog, project management
|
|
12
|
+
role: expert
|
|
13
|
+
scope: implementation
|
|
14
|
+
output-format: code
|
|
15
|
+
related-skills: mcp-developer, api-designer, security-reviewer
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# Atlassian MCP Expert
|
|
19
|
+
|
|
20
|
+
Senior integration specialist with deep expertise in connecting Jira, Confluence, and other Atlassian tools to AI systems via Model Context Protocol (MCP).
|
|
21
|
+
|
|
22
|
+
## Role Definition
|
|
23
|
+
|
|
24
|
+
You are an expert in Atlassian MCP integration with mastery of both official and open-source MCP servers, JQL/CQL query languages, OAuth 2.0 authentication, and production deployment patterns. You build robust workflows that automate issue triage, documentation sync, sprint planning, and cross-tool integration while respecting permissions and maintaining security.
|
|
25
|
+
|
|
26
|
+
## When to Use This Skill
|
|
27
|
+
|
|
28
|
+
- Querying Jira issues with JQL filters
|
|
29
|
+
- Searching or creating Confluence pages
|
|
30
|
+
- Automating sprint workflows and backlog management
|
|
31
|
+
- Setting up MCP server authentication (OAuth/API tokens)
|
|
32
|
+
- Syncing meeting notes to Jira tickets
|
|
33
|
+
- Generating documentation from issue data
|
|
34
|
+
- Debugging Atlassian API integration issues
|
|
35
|
+
- Choosing between official vs open-source MCP servers
|
|
36
|
+
|
|
37
|
+
## Core Workflow
|
|
38
|
+
|
|
39
|
+
1. **Select server** - Choose official cloud, open-source, or self-hosted MCP server
|
|
40
|
+
2. **Authenticate** - Configure OAuth 2.1, API tokens, or PAT credentials
|
|
41
|
+
3. **Design queries** - Write JQL for Jira, CQL for Confluence, test filters
|
|
42
|
+
4. **Implement workflow** - Build tool calls, handle pagination, error recovery
|
|
43
|
+
5. **Deploy** - Configure IDE integration, test permissions, monitor rate limits
|
|
44
|
+
|
|
45
|
+
## Reference Guide
|
|
46
|
+
|
|
47
|
+
Load detailed guidance based on context:
|
|
48
|
+
|
|
49
|
+
| Topic | Reference | Load When |
|
|
50
|
+
|-------|-----------|-----------|
|
|
51
|
+
| Server Setup | `references/mcp-server-setup.md` | Installation, choosing servers, configuration |
|
|
52
|
+
| Jira Operations | `references/jira-queries.md` | JQL syntax, issue CRUD, sprints, boards |
|
|
53
|
+
| Confluence Ops | `references/confluence-operations.md` | CQL search, page creation, spaces, comments |
|
|
54
|
+
| Authentication | `references/authentication-patterns.md` | OAuth 2.0, API tokens, permission scopes |
|
|
55
|
+
| Common Workflows | `references/common-workflows.md` | Issue triage, doc sync, sprint automation |
|
|
56
|
+
|
|
57
|
+
## Constraints
|
|
58
|
+
|
|
59
|
+
### MUST DO
|
|
60
|
+
- Respect user permissions and workspace access controls
|
|
61
|
+
- Validate JQL/CQL queries before execution
|
|
62
|
+
- Handle rate limits with exponential backoff
|
|
63
|
+
- Use pagination for large result sets (50-100 items per page)
|
|
64
|
+
- Implement error recovery for network failures
|
|
65
|
+
- Log API calls for debugging and audit trails
|
|
66
|
+
- Test with read-only operations first
|
|
67
|
+
- Document required permission scopes
|
|
68
|
+
|
|
69
|
+
### MUST NOT DO
|
|
70
|
+
- Hardcode API tokens or OAuth secrets in code
|
|
71
|
+
- Ignore rate limit headers from Atlassian APIs
|
|
72
|
+
- Create issues without validating required fields
|
|
73
|
+
- Skip input sanitization on user-provided query strings
|
|
74
|
+
- Deploy without testing permission boundaries
|
|
75
|
+
- Update production data without confirmation prompts
|
|
76
|
+
- Mix different authentication methods in same session
|
|
77
|
+
- Expose sensitive issue data in logs or error messages
|
|
78
|
+
|
|
79
|
+
## Output Templates
|
|
80
|
+
|
|
81
|
+
When implementing Atlassian MCP features, provide:
|
|
82
|
+
1. MCP server configuration (JSON/environment vars)
|
|
83
|
+
2. Query examples (JQL/CQL with explanations)
|
|
84
|
+
3. Tool call implementation with error handling
|
|
85
|
+
4. Authentication setup instructions
|
|
86
|
+
5. Brief explanation of permission requirements
|
|
87
|
+
|
|
88
|
+
## Knowledge Reference
|
|
89
|
+
|
|
90
|
+
Atlassian MCP Server (official), mcp-atlassian (sooperset), atlassian-mcp (xuanxt), JQL (Jira Query Language), CQL (Confluence Query Language), OAuth 2.1, API tokens, Personal Access Tokens (PAT), Model Context Protocol, JSON-RPC 2.0, rate limiting, pagination, permission scopes, Jira REST API, Confluence REST API
|
|
91
|
+
````
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: atlassian-mcp
|
|
3
|
+
description: Use when querying Jira issues, searching Confluence pages, creating tickets, updating documentation, or integrating Atlassian tools via MCP protocol.
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: https://github.com/Jeffallan
|
|
7
|
+
version: "1.0.0"
|
|
8
|
+
domain: platform
|
|
9
|
+
triggers: Jira, Confluence, Atlassian, MCP, tickets, issues, wiki, JQL, CQL, sprint, backlog, project management
|
|
10
|
+
role: expert
|
|
11
|
+
scope: implementation
|
|
12
|
+
output-format: code
|
|
13
|
+
related-skills: mcp-developer, api-designer, security-reviewer
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Atlassian MCP Expert
|
|
17
|
+
|
|
18
|
+
Senior integration specialist with deep expertise in connecting Jira, Confluence, and other Atlassian tools to AI systems via Model Context Protocol (MCP).
|
|
19
|
+
|
|
20
|
+
## Role Definition
|
|
21
|
+
|
|
22
|
+
You are an expert in Atlassian MCP integration with mastery of both official and open-source MCP servers, JQL/CQL query languages, OAuth 2.0 authentication, and production deployment patterns. You build robust workflows that automate issue triage, documentation sync, sprint planning, and cross-tool integration while respecting permissions and maintaining security.
|
|
23
|
+
|
|
24
|
+
## When to Use This Skill
|
|
25
|
+
|
|
26
|
+
- Querying Jira issues with JQL filters
|
|
27
|
+
- Searching or creating Confluence pages
|
|
28
|
+
- Automating sprint workflows and backlog management
|
|
29
|
+
- Setting up MCP server authentication (OAuth/API tokens)
|
|
30
|
+
- Syncing meeting notes to Jira tickets
|
|
31
|
+
- Generating documentation from issue data
|
|
32
|
+
- Debugging Atlassian API integration issues
|
|
33
|
+
- Choosing between official vs open-source MCP servers
|
|
34
|
+
|
|
35
|
+
## Core Workflow
|
|
36
|
+
|
|
37
|
+
1. **Select server** - Choose official cloud, open-source, or self-hosted MCP server
|
|
38
|
+
2. **Authenticate** - Configure OAuth 2.1, API tokens, or PAT credentials
|
|
39
|
+
3. **Design queries** - Write JQL for Jira, CQL for Confluence, test filters
|
|
40
|
+
4. **Implement workflow** - Build tool calls, handle pagination, error recovery
|
|
41
|
+
5. **Deploy** - Configure IDE integration, test permissions, monitor rate limits
|
|
42
|
+
|
|
43
|
+
## Reference Guide
|
|
44
|
+
|
|
45
|
+
Load detailed guidance based on context:
|
|
46
|
+
|
|
47
|
+
| Topic | Reference | Load When |
|
|
48
|
+
|-------|-----------|-----------|
|
|
49
|
+
| Server Setup | `references/mcp-server-setup.md` | Installation, choosing servers, configuration |
|
|
50
|
+
| Jira Operations | `references/jira-queries.md` | JQL syntax, issue CRUD, sprints, boards |
|
|
51
|
+
| Confluence Ops | `references/confluence-operations.md` | CQL search, page creation, spaces, comments |
|
|
52
|
+
| Authentication | `references/authentication-patterns.md` | OAuth 2.0, API tokens, permission scopes |
|
|
53
|
+
| Common Workflows | `references/common-workflows.md` | Issue triage, doc sync, sprint automation |
|
|
54
|
+
|
|
55
|
+
## Constraints
|
|
56
|
+
|
|
57
|
+
### MUST DO
|
|
58
|
+
- Respect user permissions and workspace access controls
|
|
59
|
+
- Validate JQL/CQL queries before execution
|
|
60
|
+
- Handle rate limits with exponential backoff
|
|
61
|
+
- Use pagination for large result sets (50-100 items per page)
|
|
62
|
+
- Implement error recovery for network failures
|
|
63
|
+
- Log API calls for debugging and audit trails
|
|
64
|
+
- Test with read-only operations first
|
|
65
|
+
- Document required permission scopes
|
|
66
|
+
|
|
67
|
+
### MUST NOT DO
|
|
68
|
+
- Hardcode API tokens or OAuth secrets in code
|
|
69
|
+
- Ignore rate limit headers from Atlassian APIs
|
|
70
|
+
- Create issues without validating required fields
|
|
71
|
+
- Skip input sanitization on user-provided query strings
|
|
72
|
+
- Deploy without testing permission boundaries
|
|
73
|
+
- Update production data without confirmation prompts
|
|
74
|
+
- Mix different authentication methods in same session
|
|
75
|
+
- Expose sensitive issue data in logs or error messages
|
|
76
|
+
|
|
77
|
+
## Output Templates
|
|
78
|
+
|
|
79
|
+
When implementing Atlassian MCP features, provide:
|
|
80
|
+
1. MCP server configuration (JSON/environment vars)
|
|
81
|
+
2. Query examples (JQL/CQL with explanations)
|
|
82
|
+
3. Tool call implementation with error handling
|
|
83
|
+
4. Authentication setup instructions
|
|
84
|
+
5. Brief explanation of permission requirements
|
|
85
|
+
|
|
86
|
+
## Knowledge Reference
|
|
87
|
+
|
|
88
|
+
Atlassian MCP Server (official), mcp-atlassian (sooperset), atlassian-mcp (xuanxt), JQL (Jira Query Language), CQL (Confluence Query Language), OAuth 2.1, API tokens, Personal Access Tokens (PAT), Model Context Protocol, JSON-RPC 2.0, rate limiting, pagination, permission scopes, Jira REST API, Confluence REST API
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
````markdown
|
|
2
|
+
---
|
|
3
|
+
inclusion: manual
|
|
4
|
+
name: building-mcp-server-on-cloudflare
|
|
5
|
+
description: Build and deploy remote MCP servers on Cloudflare Workers with tools, OAuth authentication, and production configuration.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Building MCP Servers on Cloudflare
|
|
9
|
+
|
|
10
|
+
Creates production-ready Model Context Protocol servers on Cloudflare Workers with tools, authentication, and deployment.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- User wants to build a remote MCP server
|
|
15
|
+
- User needs to expose tools via MCP
|
|
16
|
+
- User asks about MCP authentication or OAuth
|
|
17
|
+
- User wants to deploy MCP to Cloudflare Workers
|
|
18
|
+
|
|
19
|
+
## Prerequisites
|
|
20
|
+
|
|
21
|
+
- Cloudflare account with Workers enabled
|
|
22
|
+
- Node.js 18+ and npm/pnpm/yarn
|
|
23
|
+
- Wrangler CLI (`npm install -g wrangler`)
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
### Option 1: Public Server (No Auth)
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm create cloudflare@latest -- my-mcp-server \
|
|
31
|
+
--template=cloudflare/ai/demos/remote-mcp-authless
|
|
32
|
+
cd my-mcp-server
|
|
33
|
+
npm start
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Server runs at `http://localhost:8788/mcp`
|
|
37
|
+
|
|
38
|
+
### Option 2: Authenticated Server (OAuth)
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm create cloudflare@latest -- my-mcp-server \
|
|
42
|
+
--template=cloudflare/ai/demos/remote-mcp-github-oauth
|
|
43
|
+
cd my-mcp-server
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Requires OAuth app setup. See [references/oauth-setup.md](references/oauth-setup.md).
|
|
47
|
+
|
|
48
|
+
## Core Workflow
|
|
49
|
+
|
|
50
|
+
### Step 1: Define Tools
|
|
51
|
+
|
|
52
|
+
Tools are functions MCP clients can call. Define them using `server.tool()`:
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
import { McpAgent } from "agents/mcp";
|
|
56
|
+
import { z } from "zod";
|
|
57
|
+
|
|
58
|
+
export class MyMCP extends McpAgent {
|
|
59
|
+
server = new Server({ name: "my-mcp", version: "1.0.0" });
|
|
60
|
+
|
|
61
|
+
async init() {
|
|
62
|
+
// Simple tool with parameters
|
|
63
|
+
this.server.tool(
|
|
64
|
+
"add",
|
|
65
|
+
{ a: z.number(), b: z.number() },
|
|
66
|
+
async ({ a, b }) => ({
|
|
67
|
+
content: [{ type: "text", text: String(a + b) }],
|
|
68
|
+
})
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
// Tool that calls external API
|
|
72
|
+
this.server.tool(
|
|
73
|
+
"get_weather",
|
|
74
|
+
{ city: z.string() },
|
|
75
|
+
async ({ city }) => {
|
|
76
|
+
const response = await fetch(`https://api.weather.com/${city}`);
|
|
77
|
+
const data = await response.json();
|
|
78
|
+
return {
|
|
79
|
+
content: [{ type: "text", text: JSON.stringify(data) }],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Step 2: Configure Entry Point
|
|
88
|
+
|
|
89
|
+
**Public server** (`src/index.ts`):
|
|
90
|
+
|
|
91
|
+
```typescript
|
|
92
|
+
import { MyMCP } from "./mcp";
|
|
93
|
+
|
|
94
|
+
export default {
|
|
95
|
+
fetch(request: Request, env: Env, ctx: ExecutionContext) {
|
|
96
|
+
const url = new URL(request.url);
|
|
97
|
+
if (url.pathname === "/mcp") {
|
|
98
|
+
return MyMCP.serveSSE("/mcp").fetch(request, env, ctx);
|
|
99
|
+
}
|
|
100
|
+
return new Response("MCP Server", { status: 200 });
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export { MyMCP };
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Authenticated server** — See [references/oauth-setup.md](references/oauth-setup.md).
|
|
108
|
+
|
|
109
|
+
### Step 3: Test Locally
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Start server
|
|
113
|
+
npm start
|
|
114
|
+
|
|
115
|
+
# In another terminal, test with MCP Inspector
|
|
116
|
+
npx @modelcontextprotocol/inspector@latest
|
|
117
|
+
# Open http://localhost:5173, enter http://localhost:8788/mcp
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Step 4: Deploy
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
npx wrangler deploy
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Server accessible at `https://[worker-name].[account].workers.dev/mcp`
|
|
127
|
+
|
|
128
|
+
### Step 5: Connect Clients
|
|
129
|
+
|
|
130
|
+
**Claude Desktop** (`claude_desktop_config.json`):
|
|
131
|
+
|
|
132
|
+
```json
|
|
133
|
+
{
|
|
134
|
+
"mcpServers": {
|
|
135
|
+
"my-server": {
|
|
136
|
+
"command": "npx",
|
|
137
|
+
"args": ["mcp-remote", "https://my-mcp.workers.dev/mcp"]
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Restart Claude Desktop after updating config.
|
|
144
|
+
|
|
145
|
+
## Tool Patterns
|
|
146
|
+
|
|
147
|
+
### Return Types
|
|
148
|
+
|
|
149
|
+
```typescript
|
|
150
|
+
// Text response
|
|
151
|
+
return { content: [{ type: "text", text: "result" }] };
|
|
152
|
+
|
|
153
|
+
// Multiple content items
|
|
154
|
+
return {
|
|
155
|
+
content: [
|
|
156
|
+
{ type: "text", text: "Here's the data:" },
|
|
157
|
+
{ type: "text", text: JSON.stringify(data, null, 2) },
|
|
158
|
+
],
|
|
159
|
+
};
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### Input Validation with Zod
|
|
163
|
+
|
|
164
|
+
```typescript
|
|
165
|
+
this.server.tool(
|
|
166
|
+
"create_user",
|
|
167
|
+
{
|
|
168
|
+
email: z.string().email(),
|
|
169
|
+
name: z.string().min(1).max(100),
|
|
170
|
+
role: z.enum(["admin", "user", "guest"]),
|
|
171
|
+
age: z.number().int().min(0).optional(),
|
|
172
|
+
},
|
|
173
|
+
async (params) => {
|
|
174
|
+
// params are fully typed and validated
|
|
175
|
+
}
|
|
176
|
+
);
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Accessing Environment/Bindings
|
|
180
|
+
|
|
181
|
+
```typescript
|
|
182
|
+
export class MyMCP extends McpAgent<Env> {
|
|
183
|
+
async init() {
|
|
184
|
+
this.server.tool("query_db", { sql: z.string() }, async ({ sql }) => {
|
|
185
|
+
// Access D1 binding
|
|
186
|
+
const result = await this.env.DB.prepare(sql).all();
|
|
187
|
+
return { content: [{ type: "text", text: JSON.stringify(result) }] };
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Authentication
|
|
194
|
+
|
|
195
|
+
For OAuth-protected servers, see [references/oauth-setup.md](references/oauth-setup.md).
|
|
196
|
+
|
|
197
|
+
Supported providers:
|
|
198
|
+
- GitHub
|
|
199
|
+
- Google
|
|
200
|
+
- Auth0
|
|
201
|
+
- Stytch
|
|
202
|
+
- WorkOS
|
|
203
|
+
- Any OAuth 2.0 compliant provider
|
|
204
|
+
|
|
205
|
+
## Wrangler Configuration
|
|
206
|
+
|
|
207
|
+
Minimal `wrangler.toml`:
|
|
208
|
+
|
|
209
|
+
```toml
|
|
210
|
+
name = "my-mcp-server"
|
|
211
|
+
main = "src/index.ts"
|
|
212
|
+
compatibility_date = "2024-12-01"
|
|
213
|
+
|
|
214
|
+
[durable_objects]
|
|
215
|
+
bindings = [{ name = "MCP", class_name = "MyMCP" }]
|
|
216
|
+
|
|
217
|
+
[[migrations]]
|
|
218
|
+
tag = "v1"
|
|
219
|
+
new_classes = ["MyMCP"]
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
With bindings (D1, KV, etc.):
|
|
223
|
+
|
|
224
|
+
```toml
|
|
225
|
+
[[d1_databases]]
|
|
226
|
+
binding = "DB"
|
|
227
|
+
database_name = "my-db"
|
|
228
|
+
database_id = "xxx"
|
|
229
|
+
|
|
230
|
+
[[kv_namespaces]]
|
|
231
|
+
binding = "KV"
|
|
232
|
+
id = "xxx"
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## Common Issues
|
|
236
|
+
|
|
237
|
+
### "Tool not found" in Client
|
|
238
|
+
|
|
239
|
+
1. Verify tool name matches exactly (case-sensitive)
|
|
240
|
+
2. Ensure `init()` registers tools before connections
|
|
241
|
+
3. Check server logs: `wrangler tail`
|
|
242
|
+
|
|
243
|
+
### Connection Fails
|
|
244
|
+
|
|
245
|
+
1. Confirm endpoint path is `/mcp`
|
|
246
|
+
2. Check CORS if browser-based client
|
|
247
|
+
3. Verify Worker is deployed: `wrangler deployments list`
|
|
248
|
+
|
|
249
|
+
### OAuth Redirect Errors
|
|
250
|
+
|
|
251
|
+
1. Callback URL must match OAuth app config exactly
|
|
252
|
+
2. Check `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` are set
|
|
253
|
+
3. For local dev, use `http://localhost:8788/callback`
|
|
254
|
+
|
|
255
|
+
## References
|
|
256
|
+
|
|
257
|
+
- [references/examples.md](references/examples.md) — Official templates and production examples
|
|
258
|
+
- [references/oauth-setup.md](references/oauth-setup.md) — OAuth provider configuration
|
|
259
|
+
- [references/tool-patterns.md](references/tool-patterns.md) — Advanced tool examples
|
|
260
|
+
- [references/troubleshooting.md](references/troubleshooting.md) — Error codes and fixes
|
|
261
|
+
````
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: building-mcp-server-on-cloudflare
|
|
3
|
+
description: Build and deploy remote MCP servers on Cloudflare Workers with tools, OAuth authentication, and production configuration.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Building MCP Servers on Cloudflare
|
|
7
|
+
|
|
8
|
+
Creates production-ready Model Context Protocol servers on Cloudflare Workers with tools, authentication, and deployment.
|
|
9
|
+
|
|
10
|
+
## When to Use
|
|
11
|
+
|
|
12
|
+
- User wants to build a remote MCP server
|
|
13
|
+
- User needs to expose tools via MCP
|
|
14
|
+
- User asks about MCP authentication or OAuth
|
|
15
|
+
- User wants to deploy MCP to Cloudflare Workers
|
|
16
|
+
|
|
17
|
+
## Prerequisites
|
|
18
|
+
|
|
19
|
+
- Cloudflare account with Workers enabled
|
|
20
|
+
- Node.js 18+ and npm/pnpm/yarn
|
|
21
|
+
- Wrangler CLI (`npm install -g wrangler`)
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
### Option 1: Public Server (No Auth)
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm create cloudflare@latest -- my-mcp-server \
|
|
29
|
+
--template=cloudflare/ai/demos/remote-mcp-authless
|
|
30
|
+
cd my-mcp-server
|
|
31
|
+
npm start
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Server runs at `http://localhost:8788/mcp`
|
|
35
|
+
|
|
36
|
+
### Option 2: Authenticated Server (OAuth)
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm create cloudflare@latest -- my-mcp-server \
|
|
40
|
+
--template=cloudflare/ai/demos/remote-mcp-github-oauth
|
|
41
|
+
cd my-mcp-server
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Requires OAuth app setup. See [references/oauth-setup.md](references/oauth-setup.md).
|
|
45
|
+
|
|
46
|
+
## Core Workflow
|
|
47
|
+
|
|
48
|
+
### Step 1: Define Tools
|
|
49
|
+
|
|
50
|
+
Tools are functions MCP clients can call. Define them using `server.tool()`:
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
import { McpAgent } from "agents/mcp";
|
|
54
|
+
import { z } from "zod";
|
|
55
|
+
|
|
56
|
+
export class MyMCP extends McpAgent {
|
|
57
|
+
server = new Server({ name: "my-mcp", version: "1.0.0" });
|
|
58
|
+
|
|
59
|
+
async init() {
|
|
60
|
+
// Simple tool with parameters
|
|
61
|
+
this.server.tool(
|
|
62
|
+
"add",
|
|
63
|
+
{ a: z.number(), b: z.number() },
|
|
64
|
+
async ({ a, b }) => ({
|
|
65
|
+
content: [{ type: "text", text: String(a + b) }],
|
|
66
|
+
})
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
// Tool that calls external API
|
|
70
|
+
this.server.tool(
|
|
71
|
+
"get_weather",
|
|
72
|
+
{ city: z.string() },
|
|
73
|
+
async ({ city }) => {
|
|
74
|
+
const response = await fetch(`https://api.weather.com/${city}`);
|
|
75
|
+
const data = await response.json();
|
|
76
|
+
return {
|
|
77
|
+
content: [{ type: "text", text: JSON.stringify(data) }],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Step 2: Configure Entry Point
|
|
86
|
+
|
|
87
|
+
**Public server** (`src/index.ts`):
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
import { MyMCP } from "./mcp";
|
|
91
|
+
|
|
92
|
+
export default {
|
|
93
|
+
fetch(request: Request, env: Env, ctx: ExecutionContext) {
|
|
94
|
+
const url = new URL(request.url);
|
|
95
|
+
if (url.pathname === "/mcp") {
|
|
96
|
+
return MyMCP.serveSSE("/mcp").fetch(request, env, ctx);
|
|
97
|
+
}
|
|
98
|
+
return new Response("MCP Server", { status: 200 });
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export { MyMCP };
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Authenticated server** — See [references/oauth-setup.md](references/oauth-setup.md).
|
|
106
|
+
|
|
107
|
+
### Step 3: Test Locally
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
# Start server
|
|
111
|
+
npm start
|
|
112
|
+
|
|
113
|
+
# In another terminal, test with MCP Inspector
|
|
114
|
+
npx @modelcontextprotocol/inspector@latest
|
|
115
|
+
# Open http://localhost:5173, enter http://localhost:8788/mcp
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Step 4: Deploy
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
npx wrangler deploy
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Server accessible at `https://[worker-name].[account].workers.dev/mcp`
|
|
125
|
+
|
|
126
|
+
### Step 5: Connect Clients
|
|
127
|
+
|
|
128
|
+
**Claude Desktop** (`claude_desktop_config.json`):
|
|
129
|
+
|
|
130
|
+
```json
|
|
131
|
+
{
|
|
132
|
+
"mcpServers": {
|
|
133
|
+
"my-server": {
|
|
134
|
+
"command": "npx",
|
|
135
|
+
"args": ["mcp-remote", "https://my-mcp.workers.dev/mcp"]
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Restart Claude Desktop after updating config.
|
|
142
|
+
|
|
143
|
+
## Tool Patterns
|
|
144
|
+
|
|
145
|
+
### Return Types
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
// Text response
|
|
149
|
+
return { content: [{ type: "text", text: "result" }] };
|
|
150
|
+
|
|
151
|
+
// Multiple content items
|
|
152
|
+
return {
|
|
153
|
+
content: [
|
|
154
|
+
{ type: "text", text: "Here's the data:" },
|
|
155
|
+
{ type: "text", text: JSON.stringify(data, null, 2) },
|
|
156
|
+
],
|
|
157
|
+
};
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Input Validation with Zod
|
|
161
|
+
|
|
162
|
+
```typescript
|
|
163
|
+
this.server.tool(
|
|
164
|
+
"create_user",
|
|
165
|
+
{
|
|
166
|
+
email: z.string().email(),
|
|
167
|
+
name: z.string().min(1).max(100),
|
|
168
|
+
role: z.enum(["admin", "user", "guest"]),
|
|
169
|
+
age: z.number().int().min(0).optional(),
|
|
170
|
+
},
|
|
171
|
+
async (params) => {
|
|
172
|
+
// params are fully typed and validated
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Accessing Environment/Bindings
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
export class MyMCP extends McpAgent<Env> {
|
|
181
|
+
async init() {
|
|
182
|
+
this.server.tool("query_db", { sql: z.string() }, async ({ sql }) => {
|
|
183
|
+
// Access D1 binding
|
|
184
|
+
const result = await this.env.DB.prepare(sql).all();
|
|
185
|
+
return { content: [{ type: "text", text: JSON.stringify(result) }] };
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Authentication
|
|
192
|
+
|
|
193
|
+
For OAuth-protected servers, see [references/oauth-setup.md](references/oauth-setup.md).
|
|
194
|
+
|
|
195
|
+
Supported providers:
|
|
196
|
+
- GitHub
|
|
197
|
+
- Google
|
|
198
|
+
- Auth0
|
|
199
|
+
- Stytch
|
|
200
|
+
- WorkOS
|
|
201
|
+
- Any OAuth 2.0 compliant provider
|
|
202
|
+
|
|
203
|
+
## Wrangler Configuration
|
|
204
|
+
|
|
205
|
+
Minimal `wrangler.toml`:
|
|
206
|
+
|
|
207
|
+
```toml
|
|
208
|
+
name = "my-mcp-server"
|
|
209
|
+
main = "src/index.ts"
|
|
210
|
+
compatibility_date = "2024-12-01"
|
|
211
|
+
|
|
212
|
+
[durable_objects]
|
|
213
|
+
bindings = [{ name = "MCP", class_name = "MyMCP" }]
|
|
214
|
+
|
|
215
|
+
[[migrations]]
|
|
216
|
+
tag = "v1"
|
|
217
|
+
new_classes = ["MyMCP"]
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
With bindings (D1, KV, etc.):
|
|
221
|
+
|
|
222
|
+
```toml
|
|
223
|
+
[[d1_databases]]
|
|
224
|
+
binding = "DB"
|
|
225
|
+
database_name = "my-db"
|
|
226
|
+
database_id = "xxx"
|
|
227
|
+
|
|
228
|
+
[[kv_namespaces]]
|
|
229
|
+
binding = "KV"
|
|
230
|
+
id = "xxx"
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## Common Issues
|
|
234
|
+
|
|
235
|
+
### "Tool not found" in Client
|
|
236
|
+
|
|
237
|
+
1. Verify tool name matches exactly (case-sensitive)
|
|
238
|
+
2. Ensure `init()` registers tools before connections
|
|
239
|
+
3. Check server logs: `wrangler tail`
|
|
240
|
+
|
|
241
|
+
### Connection Fails
|
|
242
|
+
|
|
243
|
+
1. Confirm endpoint path is `/mcp`
|
|
244
|
+
2. Check CORS if browser-based client
|
|
245
|
+
3. Verify Worker is deployed: `wrangler deployments list`
|
|
246
|
+
|
|
247
|
+
### OAuth Redirect Errors
|
|
248
|
+
|
|
249
|
+
1. Callback URL must match OAuth app config exactly
|
|
250
|
+
2. Check `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` are set
|
|
251
|
+
3. For local dev, use `http://localhost:8788/callback`
|
|
252
|
+
|
|
253
|
+
## References
|
|
254
|
+
|
|
255
|
+
- [references/examples.md](references/examples.md) — Official templates and production examples
|
|
256
|
+
- [references/oauth-setup.md](references/oauth-setup.md) — OAuth provider configuration
|
|
257
|
+
- [references/tool-patterns.md](references/tool-patterns.md) — Advanced tool examples
|
|
258
|
+
- [references/troubleshooting.md](references/troubleshooting.md) — Error codes and fixes
|