sinapse-ai 7.0.5 → 7.2.0
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/.sinapse-ai/core-config.yaml +2 -26
- package/.sinapse-ai/data/entity-registry.yaml +742 -917
- package/.sinapse-ai/data/registry-update-log.jsonl +22 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/index.js +1 -49
- package/.sinapse-ai/infrastructure/scripts/validate-parity.js +0 -7
- package/.sinapse-ai/install-manifest.yaml +11 -43
- package/README.en.md +6 -11
- package/README.md +6 -11
- package/bin/cli.js +116 -75
- package/bin/modules/env-config.js +1 -2
- package/bin/sinapse-init.js +23 -188
- package/docs/ide-integration.md +22 -263
- package/docs/installation/README.md +4 -6
- package/docs/installation/faq.md +10 -33
- package/docs/installation/linux.md +0 -23
- package/docs/installation/macos.md +0 -10
- package/docs/installation/troubleshooting.md +5 -9
- package/docs/installation/v4-quick-start.md +1 -1
- package/docs/installation/windows.md +0 -18
- package/package.json +2 -9
- package/packages/installer/src/config/ide-configs.js +3 -49
- package/squads/claude-code-mastery/CHANGELOG.md +22 -0
- package/squads/claude-code-mastery/README.md +146 -0
- package/squads/claude-code-mastery/agents/claude-mastery-chief.md +554 -0
- package/squads/claude-code-mastery/agents/config-engineer.md +865 -0
- package/squads/claude-code-mastery/agents/hooks-architect.md +1013 -0
- package/squads/claude-code-mastery/agents/mcp-integrator.md +791 -0
- package/squads/claude-code-mastery/agents/project-integrator.md +1196 -0
- package/squads/claude-code-mastery/agents/roadmap-sentinel.md +931 -0
- package/squads/claude-code-mastery/agents/skill-craftsman.md +1250 -0
- package/squads/claude-code-mastery/agents/swarm-orqx.md +1008 -0
- package/squads/claude-code-mastery/checklists/agent-team-readiness-checklist.md +88 -0
- package/squads/claude-code-mastery/checklists/brownfield-readiness-checklist.md +91 -0
- package/squads/claude-code-mastery/checklists/change-checklist.md +75 -0
- package/squads/claude-code-mastery/checklists/context-rot-checklist.md +114 -0
- package/squads/claude-code-mastery/checklists/integration-audit-checklist.md +104 -0
- package/squads/claude-code-mastery/checklists/multi-agent-review-checklist.md +77 -0
- package/squads/claude-code-mastery/checklists/pre-push-checklist.md +79 -0
- package/squads/claude-code-mastery/data/ci-cd-patterns.yaml +412 -0
- package/squads/claude-code-mastery/data/claude-code-quick-ref.yaml +314 -0
- package/squads/claude-code-mastery/data/hook-patterns.yaml +512 -0
- package/squads/claude-code-mastery/data/mcp-integration-catalog.yaml +323 -0
- package/squads/claude-code-mastery/data/project-type-signatures.yaml +335 -0
- package/squads/claude-code-mastery/scripts/validate-setup.js +163 -0
- package/squads/claude-code-mastery/squad.yaml +205 -0
- package/squads/claude-code-mastery/tasks/audit-integration.md +219 -0
- package/squads/claude-code-mastery/tasks/audit-settings.md +206 -0
- package/squads/claude-code-mastery/tasks/audit-setup.md +225 -0
- package/squads/claude-code-mastery/tasks/brownfield-setup.md +322 -0
- package/squads/claude-code-mastery/tasks/ci-cd-setup.md +335 -0
- package/squads/claude-code-mastery/tasks/claude-md-engineer.md +334 -0
- package/squads/claude-code-mastery/tasks/configure-claude-code.md +215 -0
- package/squads/claude-code-mastery/tasks/context-rot-audit.md +329 -0
- package/squads/claude-code-mastery/tasks/create-agent-definition.md +278 -0
- package/squads/claude-code-mastery/tasks/create-rules.md +206 -0
- package/squads/claude-code-mastery/tasks/create-team-topology.md +258 -0
- package/squads/claude-code-mastery/tasks/diagnose.md +166 -0
- package/squads/claude-code-mastery/tasks/enterprise-config.md +346 -0
- package/squads/claude-code-mastery/tasks/hook-designer.md +272 -0
- package/squads/claude-code-mastery/tasks/integrate-project.md +304 -0
- package/squads/claude-code-mastery/tasks/mcp-integration-plan.md +229 -0
- package/squads/claude-code-mastery/tasks/mcp-workflow.md +285 -0
- package/squads/claude-code-mastery/tasks/multi-project-setup.md +228 -0
- package/squads/claude-code-mastery/tasks/optimize-context.md +217 -0
- package/squads/claude-code-mastery/tasks/optimize-workflow.md +226 -0
- package/squads/claude-code-mastery/tasks/parallel-decomposition.md +293 -0
- package/squads/claude-code-mastery/tasks/permission-strategy.md +266 -0
- package/squads/claude-code-mastery/tasks/sandbox-setup.md +279 -0
- package/squads/claude-code-mastery/tasks/setup-repository.md +230 -0
- package/squads/claude-code-mastery/tasks/setup-wizard.md +236 -0
- package/squads/claude-code-mastery/tasks/worktree-strategy.md +320 -0
- package/squads/claude-code-mastery/templates/claude-md-fullstack.md +147 -0
- package/squads/claude-code-mastery/templates/claude-md-library.md +175 -0
- package/squads/claude-code-mastery/templates/claude-md-microservices.md +186 -0
- package/squads/claude-code-mastery/templates/claude-md-mobile.md +198 -0
- package/squads/claude-code-mastery/templates/claude-md-monorepo.md +139 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-ci.yml +348 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-review.yml +179 -0
- package/squads/claude-code-mastery/workflows/wf-audit-complete.yaml +140 -0
- package/squads/claude-code-mastery/workflows/wf-knowledge-update.yaml +165 -0
- package/squads/claude-code-mastery/workflows/wf-project-setup.yaml +192 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/transformers/antigravity.js +0 -105
- package/.sinapse-ai/infrastructure/scripts/ide-sync/transformers/cursor.js +0 -94
- package/.sinapse-ai/infrastructure/scripts/ide-sync/transformers/github-copilot.js +0 -184
- package/.sinapse-ai/infrastructure/scripts/validate-gemini-integration.js +0 -151
- package/.sinapse-ai/product/templates/ide-rules/antigravity-rules.md +0 -115
- package/.sinapse-ai/product/templates/ide-rules/copilot-rules.md +0 -92
- package/.sinapse-ai/product/templates/ide-rules/cursor-rules.md +0 -115
- package/.sinapse-ai/product/templates/ide-rules/gemini-rules.md +0 -87
- package/docs/pt/platforms/antigravity.md +0 -508
- package/docs/pt/platforms/cursor.md +0 -633
- package/docs/pt/platforms/gemini-cli.md +0 -481
- package/docs/pt/platforms/github-copilot.md +0 -478
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
# Task: Integrate Claude Code into Existing Project
|
|
2
|
+
|
|
3
|
+
**Task ID:** integrate-project
|
|
4
|
+
**Version:** 1.0
|
|
5
|
+
**Purpose:** Set up Claude Code infrastructure in an existing project with tailored configuration
|
|
6
|
+
**Orchestrator:** @project-integrator (Conduit)
|
|
7
|
+
**Mode:** Interactive (elicit: true)
|
|
8
|
+
**Quality Standard:** Integration passes smoke test, all config files valid, CLAUDE.md under 200 lines
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Overview
|
|
13
|
+
|
|
14
|
+
This task integrates Claude Code into an existing project by detecting the project's tech stack, generating appropriate configuration, setting up rules, hooks, and MCP servers. Follows Unix philosophy: do one thing well, compose small tools.
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
INPUT (project_root)
|
|
18
|
+
|
|
|
19
|
+
[PHASE 1: PROJECT DETECTION]
|
|
20
|
+
-> Scan for package.json, requirements.txt, go.mod, etc.
|
|
21
|
+
-> Identify frameworks, languages, and patterns
|
|
22
|
+
-> Detect existing CI/CD, linting, testing setup
|
|
23
|
+
|
|
|
24
|
+
[PHASE 2: CLAUDE.MD GENERATION]
|
|
25
|
+
-> Generate CLAUDE.md tailored to project
|
|
26
|
+
-> Include code standards, testing, git conventions
|
|
27
|
+
-> Keep under 200 lines
|
|
28
|
+
|
|
|
29
|
+
[PHASE 3: SETTINGS CONFIGURATION]
|
|
30
|
+
-> Create .claude/settings.json
|
|
31
|
+
-> Configure deny/allow rules for critical paths
|
|
32
|
+
-> Set up permissions appropriate to project
|
|
33
|
+
|
|
|
34
|
+
[PHASE 4: RULES SETUP]
|
|
35
|
+
-> Create .claude/rules/ directory
|
|
36
|
+
-> Write path-based contextual rules
|
|
37
|
+
-> Configure auto-loading behavior
|
|
38
|
+
|
|
|
39
|
+
[PHASE 5: HOOKS CONFIGURATION]
|
|
40
|
+
-> Identify project workflow integration points
|
|
41
|
+
-> Set up pre-tool-use guards if needed
|
|
42
|
+
-> Configure notification hooks
|
|
43
|
+
|
|
|
44
|
+
[PHASE 6: MCP SETUP]
|
|
45
|
+
-> Identify useful MCP servers for the stack
|
|
46
|
+
-> Configure project-specific MCPs
|
|
47
|
+
-> Validate tool availability
|
|
48
|
+
|
|
|
49
|
+
[PHASE 7: AGENTS SETUP]
|
|
50
|
+
-> Create project-specific subagent definitions
|
|
51
|
+
-> Configure agents for project's domain
|
|
52
|
+
-> Test agent execution
|
|
53
|
+
|
|
|
54
|
+
[PHASE 8: SMOKE TEST]
|
|
55
|
+
-> Verify all config files parse correctly
|
|
56
|
+
-> Test Claude Code can read and understand the project
|
|
57
|
+
-> Validate rules load in correct contexts
|
|
58
|
+
|
|
|
59
|
+
OUTPUT: Complete Claude Code integration + smoke test results
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Inputs
|
|
65
|
+
|
|
66
|
+
| Field | Type | Source | Required | Validation |
|
|
67
|
+
|-------|------|--------|----------|------------|
|
|
68
|
+
| project_root | string | Auto-detect | yes | Valid directory with source code |
|
|
69
|
+
| project_name | string | Auto or user | no | Human-readable project name |
|
|
70
|
+
| primary_language | string | Auto-detect | no | Main programming language |
|
|
71
|
+
| team_size | string | User | no | solo / small / medium / large |
|
|
72
|
+
| existing_ci | boolean | Auto-detect | no | Whether CI/CD is already configured |
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Preconditions
|
|
77
|
+
|
|
78
|
+
1. Project directory exists with source code
|
|
79
|
+
2. Claude Code CLI is installed
|
|
80
|
+
3. User has write access to project directory
|
|
81
|
+
4. Git is initialized in the project (or will be)
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Phase 1: Project Detection
|
|
86
|
+
|
|
87
|
+
**Goal:** Understand the project's tech stack and conventions.
|
|
88
|
+
|
|
89
|
+
### Detection Signals
|
|
90
|
+
|
|
91
|
+
| File | Indicates |
|
|
92
|
+
|------|-----------|
|
|
93
|
+
| `package.json` | Node.js project -- check scripts, dependencies |
|
|
94
|
+
| `tsconfig.json` | TypeScript usage |
|
|
95
|
+
| `next.config.*` | Next.js framework |
|
|
96
|
+
| `requirements.txt` / `pyproject.toml` | Python project |
|
|
97
|
+
| `go.mod` | Go project |
|
|
98
|
+
| `Cargo.toml` | Rust project |
|
|
99
|
+
| `.eslintrc*` / `eslint.config.*` | ESLint configured |
|
|
100
|
+
| `.prettierrc*` | Prettier configured |
|
|
101
|
+
| `jest.config.*` / `vitest.config.*` | Test framework |
|
|
102
|
+
| `Dockerfile` / `docker-compose.yml` | Containerized |
|
|
103
|
+
| `.github/workflows/` | GitHub Actions CI/CD |
|
|
104
|
+
| `supabase/` | Supabase database |
|
|
105
|
+
|
|
106
|
+
### Steps
|
|
107
|
+
|
|
108
|
+
1.1. Scan project root for all detection signals above.
|
|
109
|
+
1.2. Read `package.json` (if exists) for scripts and dependencies.
|
|
110
|
+
1.3. Identify the project structure pattern (monorepo, single-app, library).
|
|
111
|
+
1.4. Detect existing code formatting and linting rules.
|
|
112
|
+
1.5. Document findings:
|
|
113
|
+
|
|
114
|
+
```yaml
|
|
115
|
+
detection:
|
|
116
|
+
language: "TypeScript"
|
|
117
|
+
framework: "Next.js 14"
|
|
118
|
+
package_manager: "npm"
|
|
119
|
+
test_framework: "Jest"
|
|
120
|
+
linter: "ESLint"
|
|
121
|
+
formatter: "Prettier"
|
|
122
|
+
ci: "GitHub Actions"
|
|
123
|
+
database: "Supabase"
|
|
124
|
+
structure: "single-app"
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Phase 2: CLAUDE.md Generation
|
|
130
|
+
|
|
131
|
+
**Goal:** Create a concise, effective CLAUDE.md file.
|
|
132
|
+
|
|
133
|
+
### Guidelines
|
|
134
|
+
|
|
135
|
+
- Keep under 200 lines (auto-memory compatibility)
|
|
136
|
+
- Focus on what Claude needs to know, not general documentation
|
|
137
|
+
- Include: code standards, testing commands, git conventions, key architecture decisions
|
|
138
|
+
- Use managed sections (`<!-- SINAPSE-MANAGED-START -->`) for auto-updatable content
|
|
139
|
+
|
|
140
|
+
### Steps
|
|
141
|
+
|
|
142
|
+
2.1. Generate CLAUDE.md with these sections:
|
|
143
|
+
- Project overview (2-3 sentences)
|
|
144
|
+
- Tech stack summary (table)
|
|
145
|
+
- Code standards (from detected linter/formatter config)
|
|
146
|
+
- Testing commands (from package.json scripts)
|
|
147
|
+
- Git conventions (from existing commit history)
|
|
148
|
+
- Key directories and their purposes
|
|
149
|
+
- Common commands reference
|
|
150
|
+
|
|
151
|
+
2.2. Verify line count is under 200.
|
|
152
|
+
2.3. If over 200, move detailed sections to `.claude/rules/` files.
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Phase 3: Settings Configuration
|
|
157
|
+
|
|
158
|
+
**Goal:** Create `.claude/settings.json` with appropriate rules.
|
|
159
|
+
|
|
160
|
+
### Steps
|
|
161
|
+
|
|
162
|
+
3.1. Create `.claude/settings.json` with:
|
|
163
|
+
|
|
164
|
+
```json
|
|
165
|
+
{
|
|
166
|
+
"permissions": {
|
|
167
|
+
"allow": [],
|
|
168
|
+
"deny": []
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
3.2. Add deny rules for sensitive paths:
|
|
174
|
+
- `.env*` files (secrets)
|
|
175
|
+
- `credentials*` files
|
|
176
|
+
- `**/node_modules/**`
|
|
177
|
+
- Production config files
|
|
178
|
+
|
|
179
|
+
3.3. Add allow rules for common development operations:
|
|
180
|
+
- Build commands
|
|
181
|
+
- Test commands
|
|
182
|
+
- Lint/format commands
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Phase 4: Rules Setup
|
|
187
|
+
|
|
188
|
+
**Goal:** Create contextual rules that load based on file paths.
|
|
189
|
+
|
|
190
|
+
### Steps
|
|
191
|
+
|
|
192
|
+
4.1. Create `.claude/rules/` directory.
|
|
193
|
+
4.2. Create rules based on project structure:
|
|
194
|
+
|
|
195
|
+
| Rule File | Activates When | Content |
|
|
196
|
+
|-----------|----------------|---------|
|
|
197
|
+
| `frontend.md` | Editing `src/components/**` | Component patterns, styling conventions |
|
|
198
|
+
| `api.md` | Editing `src/api/**` or `pages/api/**` | API patterns, error handling |
|
|
199
|
+
| `testing.md` | Editing `**/*.test.*` | Testing conventions, mock patterns |
|
|
200
|
+
| `database.md` | Editing `supabase/**` or `prisma/**` | Migration patterns, schema rules |
|
|
201
|
+
|
|
202
|
+
4.3. Each rule file should use frontmatter to specify activation paths:
|
|
203
|
+
|
|
204
|
+
```markdown
|
|
205
|
+
---
|
|
206
|
+
paths:
|
|
207
|
+
- "src/components/**"
|
|
208
|
+
---
|
|
209
|
+
# Component Rules
|
|
210
|
+
...
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## Phase 5: Hooks Configuration
|
|
216
|
+
|
|
217
|
+
**Goal:** Integrate Claude Code hooks with the project's workflow.
|
|
218
|
+
|
|
219
|
+
### Steps
|
|
220
|
+
|
|
221
|
+
5.1. Assess which hooks would benefit the project:
|
|
222
|
+
- `PreToolUse` -- guard against modifying protected files
|
|
223
|
+
- `PostToolUse` -- log tool usage for audit
|
|
224
|
+
- `Notification` -- alert on specific events
|
|
225
|
+
5.2. Create hooks in `.claude/hooks/` if project needs custom behavior.
|
|
226
|
+
5.3. Register hooks in `.claude/settings.json`.
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## Phase 6: MCP Setup
|
|
231
|
+
|
|
232
|
+
**Goal:** Configure MCP servers relevant to the project.
|
|
233
|
+
|
|
234
|
+
### Steps
|
|
235
|
+
|
|
236
|
+
6.1. Based on detected tech stack, recommend MCP servers.
|
|
237
|
+
6.2. Delegate to mcp-workflow task for full configuration.
|
|
238
|
+
6.3. Document configured MCPs in CLAUDE.md.
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Phase 7: Agents Setup
|
|
243
|
+
|
|
244
|
+
**Goal:** Create project-specific subagent definitions.
|
|
245
|
+
|
|
246
|
+
### Steps
|
|
247
|
+
|
|
248
|
+
7.1. Based on project complexity, create agents:
|
|
249
|
+
- For simple projects: no custom agents needed
|
|
250
|
+
- For medium projects: 1-2 specialized agents (e.g., code-reviewer, test-writer)
|
|
251
|
+
- For large projects: full agent team with topology
|
|
252
|
+
|
|
253
|
+
7.2. Create agent files in `.claude/agents/`.
|
|
254
|
+
7.3. Delegate to create-agent-definition task for each agent.
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## Phase 8: Smoke Test
|
|
259
|
+
|
|
260
|
+
**Goal:** Verify the integration works end-to-end.
|
|
261
|
+
|
|
262
|
+
### Steps
|
|
263
|
+
|
|
264
|
+
8.1. Verify all config files are valid JSON/YAML.
|
|
265
|
+
8.2. Verify CLAUDE.md is under 200 lines and contains key sections.
|
|
266
|
+
8.3. Test that rules load when editing relevant files.
|
|
267
|
+
8.4. Test that MCP servers connect (if configured).
|
|
268
|
+
8.5. Run a simple Claude Code command to verify everything works:
|
|
269
|
+
- Ask Claude to read a source file and explain it
|
|
270
|
+
- Verify it follows the conventions in CLAUDE.md
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## Output Format
|
|
275
|
+
|
|
276
|
+
```yaml
|
|
277
|
+
integration_result:
|
|
278
|
+
project_type: "Next.js TypeScript"
|
|
279
|
+
files_created:
|
|
280
|
+
- "CLAUDE.md"
|
|
281
|
+
- ".claude/settings.json"
|
|
282
|
+
- ".claude/rules/frontend.md"
|
|
283
|
+
- ".claude/rules/testing.md"
|
|
284
|
+
mcp_configured: ["context7"]
|
|
285
|
+
agents_created: []
|
|
286
|
+
smoke_test:
|
|
287
|
+
config_valid: true
|
|
288
|
+
rules_load: true
|
|
289
|
+
mcp_connected: true
|
|
290
|
+
claude_responds: true
|
|
291
|
+
overall_status: "PASS"
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## Veto Conditions
|
|
297
|
+
|
|
298
|
+
| Condition | Action |
|
|
299
|
+
|-----------|--------|
|
|
300
|
+
| Project root has no source code files | HALT -- nothing to integrate with |
|
|
301
|
+
| CLAUDE.md already exists and has managed sections | WARN -- merge instead of overwrite |
|
|
302
|
+
| .claude/settings.json exists with custom rules | WARN -- merge, do not overwrite |
|
|
303
|
+
| No write access to project directory | HALT -- cannot create config files |
|
|
304
|
+
| Project uses unsupported language (no detection signals) | WARN -- generate generic CLAUDE.md |
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# Task: Plan MCP Server Integration
|
|
2
|
+
|
|
3
|
+
**Task ID:** CCM-PI-005
|
|
4
|
+
**Version:** 1.0.0
|
|
5
|
+
**Command:** `*mcp-integration-plan`
|
|
6
|
+
**Agent:** Conduit (project-integrator)
|
|
7
|
+
**Purpose:** Plan MCP server integration for a project by analyzing needs, mapping capabilities to available servers, estimating context budget impact, and prioritizing by ROI.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
Project Analysis
|
|
15
|
+
|
|
|
16
|
+
v
|
|
17
|
+
+---------------------+
|
|
18
|
+
| 1. Analyze Project |
|
|
19
|
+
| Needs |
|
|
20
|
+
+---------------------+
|
|
21
|
+
|
|
|
22
|
+
v
|
|
23
|
+
+---------------------+
|
|
24
|
+
| 2. Map Capabilities |
|
|
25
|
+
| to Available MCPs |
|
|
26
|
+
+---------------------+
|
|
27
|
+
|
|
|
28
|
+
v
|
|
29
|
+
+---------------------+
|
|
30
|
+
| 3. Estimate Context |
|
|
31
|
+
| Budget Impact |
|
|
32
|
+
+---------------------+
|
|
33
|
+
|
|
|
34
|
+
v
|
|
35
|
+
+---------------------+
|
|
36
|
+
| 4. Prioritize by ROI |
|
|
37
|
+
+---------------------+
|
|
38
|
+
|
|
|
39
|
+
v
|
|
40
|
+
+---------------------+
|
|
41
|
+
| 5. Create Integration|
|
|
42
|
+
| Plan |
|
|
43
|
+
+---------------------+
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Inputs
|
|
49
|
+
|
|
50
|
+
| Field | Type | Source | Required | Validation |
|
|
51
|
+
|-------|------|--------|----------|------------|
|
|
52
|
+
| project_path | string | User or cwd | Yes | Valid project directory |
|
|
53
|
+
| budget | enum | User | No | `minimal` (1-2 MCPs), `standard` (3-5), `full` (no limit) |
|
|
54
|
+
| priorities | string[] | User | No | e.g., ["documentation", "web search", "database", "browser testing"] |
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Preconditions
|
|
59
|
+
|
|
60
|
+
- Project directory accessible for analysis
|
|
61
|
+
- Understanding of available MCP ecosystem (official + community)
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Execution Phases
|
|
66
|
+
|
|
67
|
+
### Phase 1: Analyze Project Needs
|
|
68
|
+
|
|
69
|
+
Examine the project to identify where MCP servers would add value:
|
|
70
|
+
|
|
71
|
+
1. **Technology stack**: what frameworks, languages, databases are used
|
|
72
|
+
2. **External dependencies**: APIs consumed, services integrated
|
|
73
|
+
3. **Development workflow**: what tasks developers repeat frequently
|
|
74
|
+
4. **Documentation needs**: which libraries lack good inline docs
|
|
75
|
+
5. **Testing needs**: browser testing, API testing, E2E scenarios
|
|
76
|
+
6. **Data needs**: web search, scraping, research tasks
|
|
77
|
+
|
|
78
|
+
Produce a needs matrix:
|
|
79
|
+
|
|
80
|
+
| Need Category | Specific Need | Frequency | Current Solution |
|
|
81
|
+
|---------------|---------------|-----------|-----------------|
|
|
82
|
+
| Documentation | React docs lookup | Daily | Manual browser search |
|
|
83
|
+
| Database | Query execution | Hourly | Copy-paste to psql |
|
|
84
|
+
| Search | Find code examples | Daily | Manual Google search |
|
|
85
|
+
|
|
86
|
+
### Phase 2: Map Capabilities to Available MCPs
|
|
87
|
+
|
|
88
|
+
Match identified needs to available MCP servers:
|
|
89
|
+
|
|
90
|
+
**Official/Stable MCPs:**
|
|
91
|
+
| MCP Server | Capabilities | Transport | Best For |
|
|
92
|
+
|------------|-------------|-----------|----------|
|
|
93
|
+
| context7 | Library documentation | stdio | Framework/library docs |
|
|
94
|
+
| playwright | Browser automation | stdio | Web testing, screenshots |
|
|
95
|
+
| postgres/supabase | Database queries | stdio | DB operations |
|
|
96
|
+
| filesystem | File operations | stdio | Cross-directory access |
|
|
97
|
+
|
|
98
|
+
**Community MCPs:**
|
|
99
|
+
| MCP Server | Capabilities | Maturity | Best For |
|
|
100
|
+
|------------|-------------|----------|----------|
|
|
101
|
+
| exa | Web search | Stable | Research, finding examples |
|
|
102
|
+
| apify | Web scraping | Stable | Data extraction |
|
|
103
|
+
| github | GitHub API | Stable | Issue/PR management |
|
|
104
|
+
| linear/jira | Project management | Varies | Task tracking |
|
|
105
|
+
|
|
106
|
+
For each need, list candidate MCPs with fit score (1-5).
|
|
107
|
+
|
|
108
|
+
### Phase 3: Estimate Context Budget Impact
|
|
109
|
+
|
|
110
|
+
Each MCP server has a context cost. Estimate:
|
|
111
|
+
|
|
112
|
+
1. **Tool registration cost**: number of tools exposed, description token count
|
|
113
|
+
2. **Per-call cost**: average input/output size of tool calls
|
|
114
|
+
3. **Startup latency**: time to initialize the server
|
|
115
|
+
4. **Memory footprint**: resources consumed while running
|
|
116
|
+
|
|
117
|
+
Calculate context budget:
|
|
118
|
+
```
|
|
119
|
+
Total context overhead = sum(tools_per_mcp * avg_description_tokens)
|
|
120
|
+
% of 200K context window used by MCP registrations
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Budget guidelines:**
|
|
124
|
+
| Budget Level | Max MCP Overhead | Max Servers |
|
|
125
|
+
|-------------|-----------------|-------------|
|
|
126
|
+
| Minimal | < 2% context window | 1-2 servers |
|
|
127
|
+
| Standard | < 5% context window | 3-5 servers |
|
|
128
|
+
| Full | < 10% context window | No hard limit |
|
|
129
|
+
|
|
130
|
+
Flag any MCP that registers more than 20 tools (context-heavy).
|
|
131
|
+
|
|
132
|
+
### Phase 4: Prioritize by ROI
|
|
133
|
+
|
|
134
|
+
Score each candidate MCP:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
ROI = (frequency_of_need * time_saved_per_use) / (context_cost + setup_effort)
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Where:
|
|
141
|
+
- **frequency_of_need**: daily=5, weekly=3, monthly=1
|
|
142
|
+
- **time_saved_per_use**: minutes saved vs manual approach
|
|
143
|
+
- **context_cost**: token overhead (normalized 1-5)
|
|
144
|
+
- **setup_effort**: configuration difficulty (1=trivial, 5=complex)
|
|
145
|
+
|
|
146
|
+
Rank all candidates by ROI score descending.
|
|
147
|
+
|
|
148
|
+
### Phase 5: Create Integration Plan
|
|
149
|
+
|
|
150
|
+
Produce the final plan with phased rollout:
|
|
151
|
+
|
|
152
|
+
**Phase A (Day 1)**: highest ROI MCPs, zero or minimal configuration
|
|
153
|
+
**Phase B (Week 1)**: medium ROI MCPs, moderate setup required
|
|
154
|
+
**Phase C (As needed)**: lower ROI MCPs, add when specific need arises
|
|
155
|
+
|
|
156
|
+
For each MCP in the plan:
|
|
157
|
+
1. Configuration snippet for settings.json
|
|
158
|
+
2. Required environment variables or credentials
|
|
159
|
+
3. Verification command to test connectivity
|
|
160
|
+
4. Expected context budget impact
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Output Format
|
|
165
|
+
|
|
166
|
+
```markdown
|
|
167
|
+
## MCP Integration Plan
|
|
168
|
+
|
|
169
|
+
**Project:** {project_path}
|
|
170
|
+
**Budget:** {budget_level}
|
|
171
|
+
**Date:** {YYYY-MM-DD}
|
|
172
|
+
|
|
173
|
+
### Needs Analysis
|
|
174
|
+
|
|
175
|
+
| Need | Frequency | Matched MCP | ROI Score |
|
|
176
|
+
|------|-----------|-------------|-----------|
|
|
177
|
+
| {need} | {freq} | {mcp} | {score} |
|
|
178
|
+
|
|
179
|
+
### Context Budget
|
|
180
|
+
|
|
181
|
+
| MCP Server | Tools | Est. Tokens | % Window |
|
|
182
|
+
|------------|-------|-------------|----------|
|
|
183
|
+
| {mcp} | {N} | {N} | {N}% |
|
|
184
|
+
| **Total** | | | {N}% |
|
|
185
|
+
|
|
186
|
+
### Rollout Plan
|
|
187
|
+
|
|
188
|
+
#### Phase A: Immediate (Day 1)
|
|
189
|
+
1. **{mcp_name}**: {reason}
|
|
190
|
+
- ROI: {score}
|
|
191
|
+
- Config:
|
|
192
|
+
```json
|
|
193
|
+
{ "mcpServers": { "{name}": { ... } } }
|
|
194
|
+
```
|
|
195
|
+
- Verify: {command}
|
|
196
|
+
|
|
197
|
+
#### Phase B: Short-term (Week 1)
|
|
198
|
+
1. **{mcp_name}**: {reason}
|
|
199
|
+
|
|
200
|
+
#### Phase C: On-demand
|
|
201
|
+
1. **{mcp_name}**: {reason}
|
|
202
|
+
|
|
203
|
+
### Excluded MCPs
|
|
204
|
+
|
|
205
|
+
| MCP | Reason for Exclusion |
|
|
206
|
+
|-----|---------------------|
|
|
207
|
+
| {mcp} | {reason} |
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Veto Conditions
|
|
213
|
+
|
|
214
|
+
- **NEVER** recommend MCPs that require credentials the user has not agreed to provide
|
|
215
|
+
- **NEVER** exceed the stated budget level without explicit user approval
|
|
216
|
+
- **NEVER** recommend experimental or abandoned MCPs without flagging maturity risk
|
|
217
|
+
- **NEVER** install or configure MCPs in this task -- this task produces a plan only
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## Completion Criteria
|
|
222
|
+
|
|
223
|
+
- [ ] Project needs analyzed with frequency assessment
|
|
224
|
+
- [ ] Available MCPs mapped to identified needs
|
|
225
|
+
- [ ] Context budget estimated for each candidate
|
|
226
|
+
- [ ] ROI scores calculated and ranked
|
|
227
|
+
- [ ] Phased integration plan created with configuration snippets
|
|
228
|
+
- [ ] Budget compliance verified
|
|
229
|
+
- [ ] Plan delivered in standard format
|