ima-claude 2.20.0 → 2.26.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/README.md +74 -9
- package/dist/cli.js +2 -1
- package/package.json +1 -1
- package/plugins/ima-claude/.claude-plugin/plugin.json +2 -2
- package/plugins/ima-claude/agents/explorer.md +29 -15
- package/plugins/ima-claude/agents/implementer.md +58 -13
- package/plugins/ima-claude/agents/memory.md +19 -19
- package/plugins/ima-claude/agents/reviewer.md +84 -34
- package/plugins/ima-claude/agents/tester.md +59 -16
- package/plugins/ima-claude/agents/wp-developer.md +66 -21
- package/plugins/ima-claude/hooks/bootstrap.sh +42 -44
- package/plugins/ima-claude/hooks/prompt_coach_digest.md +14 -17
- package/plugins/ima-claude/hooks/prompt_coach_system.md +10 -12
- package/plugins/ima-claude/personalities/README.md +17 -6
- package/plugins/ima-claude/personalities/enable-efficient.md +61 -0
- package/plugins/ima-claude/personalities/enable-terse.md +71 -0
- package/plugins/ima-claude/skills/agentic-workflows/SKILL.md +35 -71
- package/plugins/ima-claude/skills/architect/SKILL.md +54 -168
- package/plugins/ima-claude/skills/compound-bridge/SKILL.md +41 -94
- package/plugins/ima-claude/skills/design-to-code/SKILL.md +43 -78
- package/plugins/ima-claude/skills/discourse/SKILL.md +79 -194
- package/plugins/ima-claude/skills/discourse-admin/SKILL.md +41 -103
- package/plugins/ima-claude/skills/docs-organize/SKILL.md +63 -203
- package/plugins/ima-claude/skills/ember-discourse/SKILL.md +90 -200
- package/plugins/ima-claude/skills/espocrm/SKILL.md +14 -23
- package/plugins/ima-claude/skills/espocrm-api/SKILL.md +79 -192
- package/plugins/ima-claude/skills/functional-programmer/SKILL.md +33 -237
- package/plugins/ima-claude/skills/gh-cli/SKILL.md +26 -65
- package/plugins/ima-claude/skills/ima-bootstrap/SKILL.md +71 -104
- package/plugins/ima-claude/skills/ima-bootstrap/references/ima-brand.md +32 -22
- package/plugins/ima-claude/skills/ima-brand/SKILL.md +18 -23
- package/plugins/ima-claude/skills/ima-copywriting/SKILL.md +68 -179
- package/plugins/ima-claude/skills/ima-doc2pdf/SKILL.md +32 -102
- package/plugins/ima-claude/skills/ima-editorial-scorecard/SKILL.md +38 -63
- package/plugins/ima-claude/skills/ima-editorial-workflow/SKILL.md +69 -114
- package/plugins/ima-claude/skills/ima-email-creator/SKILL.md +16 -22
- package/plugins/ima-claude/skills/ima-forms-expert/SKILL.md +21 -37
- package/plugins/ima-claude/skills/ima-git/SKILL.md +81 -0
- package/plugins/ima-claude/skills/jira-checkpoint/SKILL.md +39 -120
- package/plugins/ima-claude/skills/jquery/SKILL.md +107 -233
- package/plugins/ima-claude/skills/js-fp/SKILL.md +75 -296
- package/plugins/ima-claude/skills/js-fp-api/SKILL.md +52 -162
- package/plugins/ima-claude/skills/js-fp-react/SKILL.md +47 -270
- package/plugins/ima-claude/skills/js-fp-vue/SKILL.md +55 -209
- package/plugins/ima-claude/skills/js-fp-wordpress/SKILL.md +59 -204
- package/plugins/ima-claude/skills/livecanvas/SKILL.md +19 -32
- package/plugins/ima-claude/skills/mcp-atlassian/SKILL.md +92 -162
- package/plugins/ima-claude/skills/mcp-context7/SKILL.md +32 -64
- package/plugins/ima-claude/skills/mcp-gitea/SKILL.md +98 -188
- package/plugins/ima-claude/skills/mcp-github/SKILL.md +60 -124
- package/plugins/ima-claude/skills/mcp-memory/SKILL.md +1 -177
- package/plugins/ima-claude/skills/mcp-qdrant/SKILL.md +58 -115
- package/plugins/ima-claude/skills/mcp-sequential/SKILL.md +32 -87
- package/plugins/ima-claude/skills/mcp-serena/SKILL.md +54 -80
- package/plugins/ima-claude/skills/mcp-tavily/SKILL.md +40 -63
- package/plugins/ima-claude/skills/mcp-vestige/SKILL.md +75 -116
- package/plugins/ima-claude/skills/php-authnet/SKILL.md +32 -65
- package/plugins/ima-claude/skills/php-fp/SKILL.md +50 -129
- package/plugins/ima-claude/skills/php-fp-wordpress/SKILL.md +25 -73
- package/plugins/ima-claude/skills/phpunit-wp/SKILL.md +103 -463
- package/plugins/ima-claude/skills/playwright/SKILL.md +69 -220
- package/plugins/ima-claude/skills/prompt-starter/SKILL.md +33 -83
- package/plugins/ima-claude/skills/prompt-starter/references/code-review.md +38 -0
- package/plugins/ima-claude/skills/py-fp/SKILL.md +78 -384
- package/plugins/ima-claude/skills/quasar-fp/SKILL.md +54 -255
- package/plugins/ima-claude/skills/quickstart/SKILL.md +7 -11
- package/plugins/ima-claude/skills/rails/SKILL.md +63 -184
- package/plugins/ima-claude/skills/resume-session/SKILL.md +14 -35
- package/plugins/ima-claude/skills/rg/SKILL.md +61 -146
- package/plugins/ima-claude/skills/ruby-fp/SKILL.md +66 -163
- package/plugins/ima-claude/skills/save-session/SKILL.md +10 -39
- package/plugins/ima-claude/skills/scorecard/SKILL.md +42 -40
- package/plugins/ima-claude/skills/skill-analyzer/SKILL.md +42 -71
- package/plugins/ima-claude/skills/skill-creator/SKILL.md +79 -250
- package/plugins/ima-claude/skills/task-master/SKILL.md +11 -31
- package/plugins/ima-claude/skills/task-planner/SKILL.md +44 -153
- package/plugins/ima-claude/skills/task-runner/SKILL.md +61 -143
- package/plugins/ima-claude/skills/unit-testing/SKILL.md +59 -134
- package/plugins/ima-claude/skills/wp-ddev/SKILL.md +38 -120
- package/plugins/ima-claude/skills/wp-local/SKILL.md +26 -108
|
@@ -3,58 +3,48 @@ name: mcp-qdrant
|
|
|
3
3
|
description: "Qdrant MCP — the permanent library. Unlike Vestige (neural memory that fades), nothing stored here is ever forgotten. Use for all reference material: wiki articles, coding standards, architecture docs, code samples, PRDs, plans, meeting notes, research findings. Triggers on: 'store this', 'what do we know about', 'search knowledge', 'add to library', 'find in docs'. Triggers proactively when reference material is created, discussed, or finalized — feed the library without being asked. Search the library before starting any new work."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Qdrant MCP
|
|
6
|
+
# Qdrant MCP — Permanent Library
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
| System | Role | Lifecycle |
|
|
9
|
+
|--------|------|-----------|
|
|
10
|
+
| **Qdrant** | Permanent library — standards, PRDs, architecture, code samples | Persistent forever |
|
|
11
|
+
| **Vestige** | Neural memory — decisions, preferences, learnings | Fades if unused (FSRS-6) |
|
|
12
|
+
| **Serena Memory** | Project workbench — session state, task progress | Project-scoped |
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
| System | Role | Lifecycle | Example |
|
|
13
|
-
|--------|------|-----------|---------|
|
|
14
|
-
| **Qdrant** | Permanent library — reference material, standards, PRDs, architecture docs, code samples | Persistent forever | "Our payment system uses Accept.js with ARB" |
|
|
15
|
-
| **Vestige** | Neural memory — decisions, preferences, patterns, bugs, learnings | Fades if unused (FSRS-6 decay) | "We chose JWT over sessions because..." |
|
|
16
|
-
| **Serena Memory** | Project workbench — session state, task progress | Project-scoped, survives git ops | "Currently on task 3/5" |
|
|
17
|
-
|
|
18
|
-
**Will it fade if we stop referencing it?** If no → Qdrant (permanent). If yes → Vestige (neural decay).
|
|
14
|
+
**Decision rule**: Will it fade if unused? No → Qdrant. Yes → Vestige.
|
|
19
15
|
|
|
20
16
|
## Embedding Stack
|
|
21
17
|
|
|
22
|
-
Two embedding providers are supported. Ollama is the default; fastembed is a CPU-only alternative for machines where Ollama has performance issues.
|
|
23
|
-
|
|
24
18
|
| Component | Ollama (default) | fastembed |
|
|
25
|
-
|
|
26
|
-
| MCP server | `qdrant-mcp` (custom, at `~/dev/qdrant-mcp-server`) | same |
|
|
19
|
+
|-----------|-----------------|-----------|
|
|
27
20
|
| Embedding model | `nomic-embed-text` | `BAAI/bge-small-en-v1.5` |
|
|
28
21
|
| Vector dimensions | 768 | 384 |
|
|
29
22
|
| Distance metric | Cosine | Cosine |
|
|
30
23
|
| Dependency | Ollama running locally | `pip install qdrant-mcp[fastembed]` |
|
|
31
24
|
| Default collection | `ima-knowledge` | `ima-knowledge` |
|
|
32
25
|
|
|
33
|
-
|
|
26
|
+
Collections can't be shared across providers (different vector dimensions). Switching providers requires collection rebuild.
|
|
34
27
|
|
|
35
28
|
## Per-Project Collection
|
|
36
29
|
|
|
37
|
-
|
|
30
|
+
Add `.qdrant` to project root (YAML):
|
|
38
31
|
|
|
39
32
|
```yaml
|
|
40
|
-
# .qdrant — project-level config
|
|
41
33
|
collection: my-project-knowledge
|
|
42
34
|
```
|
|
43
35
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
If no `.qdrant` file is found, omit `collection_name` — the server defaults to `ima-knowledge` (from the `COLLECTION_NAME` env var).
|
|
36
|
+
At session start, check for `.qdrant`. If found, pass `collection_name` on every `qdrant_store` and `qdrant_find` call. If absent, omit `collection_name` — server defaults to `ima-knowledge`.
|
|
47
37
|
|
|
48
38
|
## MCP Tools
|
|
49
39
|
|
|
50
|
-
|
|
40
|
+
Server: `qdrant-memory`. Prefix: `mcp__qdrant-memory__`.
|
|
51
41
|
|
|
52
42
|
| Tool | Purpose | Parameters |
|
|
53
43
|
|------|---------|------------|
|
|
54
44
|
| `qdrant_store` | Store text with auto-embedding | `information` (required), `collection_name`, `metadata` |
|
|
55
|
-
| `qdrant_find` | Semantic search
|
|
45
|
+
| `qdrant_find` | Semantic search | `query` (required), `collection_name`, `limit` |
|
|
56
46
|
|
|
57
|
-
## Storing
|
|
47
|
+
## Storing
|
|
58
48
|
|
|
59
49
|
```
|
|
60
50
|
mcp__qdrant-memory__qdrant_store
|
|
@@ -63,112 +53,81 @@ mcp__qdrant-memory__qdrant_store
|
|
|
63
53
|
metadata: {"source": "donation-system-prd", "type": "architecture", "date": "2026-02-21"}
|
|
64
54
|
```
|
|
65
55
|
|
|
66
|
-
To target a specific collection explicitly:
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
mcp__qdrant-memory__qdrant_store
|
|
70
|
-
collection_name: "other-project-knowledge"
|
|
71
|
-
information: "..."
|
|
72
|
-
```
|
|
73
|
-
|
|
74
56
|
### What to Store
|
|
75
57
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
| Content Type | Metadata `type` |
|
|
58
|
+
| Content Type | `type` metadata |
|
|
79
59
|
|---|---|
|
|
80
60
|
| PRDs / Feature Specs | `prd` |
|
|
81
|
-
| Architecture decisions
|
|
61
|
+
| Architecture decisions | `architecture` |
|
|
82
62
|
| Integration guides | `integration` |
|
|
83
63
|
| Domain knowledge | `domain` |
|
|
84
64
|
| Requirements / meeting notes | `requirements` |
|
|
85
|
-
| Coding standards
|
|
86
|
-
|
|
|
65
|
+
| Coding standards | `standard` |
|
|
66
|
+
| Code samples | `sample` |
|
|
87
67
|
|
|
88
|
-
### Chunking
|
|
68
|
+
### Chunking (docs >2000 words)
|
|
89
69
|
|
|
90
|
-
|
|
70
|
+
Store by section; include document title in each chunk:
|
|
91
71
|
|
|
92
72
|
```
|
|
93
73
|
Store: "Donation System PRD - Overview: [content]"
|
|
94
74
|
metadata: {"source": "donation-prd", "type": "prd", "section": "overview"}
|
|
95
|
-
|
|
96
|
-
Store: "Donation System PRD - Payment Flow: [content]"
|
|
97
|
-
metadata: {"source": "donation-prd", "type": "prd", "section": "payment-flow"}
|
|
98
75
|
```
|
|
99
76
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
## Searching Knowledge
|
|
77
|
+
## Searching
|
|
103
78
|
|
|
104
79
|
```
|
|
105
80
|
mcp__qdrant-memory__qdrant_find
|
|
106
81
|
query: "how does guest recurring donation work"
|
|
107
82
|
```
|
|
108
83
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
84
|
+
- Broad: `"payment processing"` — discover available knowledge
|
|
85
|
+
- Specific: `"Authorize.net ARB guest checkout"` — targeted lookup
|
|
86
|
+
- Problem-oriented: `"SSO between WordPress and Discourse"` — find solutions
|
|
112
87
|
|
|
113
88
|
## Proactive Behavior
|
|
114
89
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
-
|
|
130
|
-
- Debugging an integration → search for architecture context
|
|
131
|
-
- User asks "how does X work" → check library before guessing
|
|
132
|
-
- Planning new work → search for related PRDs or standards
|
|
133
|
-
- Before making architectural decisions → search for existing conventions
|
|
134
|
-
|
|
135
|
-
## Ingestion: Claude Web → Qdrant
|
|
136
|
-
|
|
137
|
-
When user shares content from Claude Web Projects:
|
|
138
|
-
|
|
139
|
-
1. User pastes document content
|
|
140
|
-
2. For short docs (<2000 words): store as single entry
|
|
141
|
-
3. For long docs: chunk by section with shared `source` metadata
|
|
142
|
-
4. Confirm: "Stored [title] in knowledge base ([N] chunks)"
|
|
90
|
+
**Feed library when:**
|
|
91
|
+
- Wiki article, PRD, or spec created/discussed
|
|
92
|
+
- Architecture documented or diagrammed
|
|
93
|
+
- Coding standard established
|
|
94
|
+
- Useful code sample written
|
|
95
|
+
- Research completed
|
|
96
|
+
- Integration documented
|
|
97
|
+
- Meeting notes capture decisions
|
|
98
|
+
- User says "store this" or "add to knowledge base"
|
|
99
|
+
|
|
100
|
+
**Search library when:**
|
|
101
|
+
- Starting any feature implementation
|
|
102
|
+
- Debugging an integration
|
|
103
|
+
- User asks "how does X work"
|
|
104
|
+
- Planning new work or making architectural decisions
|
|
143
105
|
|
|
144
106
|
## Decision Logic
|
|
145
107
|
|
|
146
|
-
**Will it fade if we stop referencing it?** If no → store here. Qdrant is the permanent library.
|
|
147
|
-
|
|
148
108
|
```
|
|
149
109
|
IF reference material that should never be forgotten
|
|
150
|
-
(wiki, standards, PRDs, architecture
|
|
151
|
-
→
|
|
152
|
-
ELSE IF knowledge that
|
|
153
|
-
|
|
154
|
-
→ Vestige smart_ingest (neural memory)
|
|
110
|
+
(wiki, standards, PRDs, architecture, code samples):
|
|
111
|
+
→ qdrant_store (permanent)
|
|
112
|
+
ELSE IF knowledge that strengthens with use, fades if unused:
|
|
113
|
+
→ Vestige smart_ingest
|
|
155
114
|
ELSE IF session state or project progress:
|
|
156
|
-
→ Serena write_memory
|
|
115
|
+
→ Serena write_memory
|
|
157
116
|
|
|
158
117
|
Searching:
|
|
159
118
|
IF need reference docs, architecture context, prior art:
|
|
160
|
-
→
|
|
161
|
-
IF need
|
|
119
|
+
→ qdrant_find
|
|
120
|
+
IF need preferences or past decisions:
|
|
162
121
|
→ Vestige search
|
|
163
|
-
IF starting
|
|
164
|
-
→ Search BOTH
|
|
122
|
+
IF starting new work:
|
|
123
|
+
→ Search BOTH
|
|
165
124
|
```
|
|
166
125
|
|
|
167
126
|
## Metadata Conventions
|
|
168
127
|
|
|
169
128
|
| Key | Values | Purpose |
|
|
170
129
|
|-----|--------|---------|
|
|
171
|
-
| `source` |
|
|
130
|
+
| `source` | kebab-case document name | Group chunks from same doc |
|
|
172
131
|
| `type` | `prd`, `architecture`, `integration`, `domain`, `requirements`, `standard`, `sample` | Categorize |
|
|
173
132
|
| `date` | `YYYY-MM-DD` | When stored |
|
|
174
133
|
|
|
@@ -179,15 +138,15 @@ IF starting any new work:
|
|
|
179
138
|
| No results | Broaden query terms |
|
|
180
139
|
| Irrelevant results | Use more specific key terms |
|
|
181
140
|
| Qdrant not responding | `docker ps \| grep qdrant` — restart if needed |
|
|
182
|
-
| Ollama not responding | `ollama list` — ensure
|
|
141
|
+
| Ollama not responding | `ollama list` — ensure running with `nomic-embed-text` |
|
|
183
142
|
| fastembed not installed | `pip install qdrant-mcp[fastembed]` |
|
|
184
|
-
| Switched providers, bad results | Different vector dimensions — rebuild
|
|
143
|
+
| Switched providers, bad results | Different vector dimensions — rebuild collection |
|
|
185
144
|
| Duplicate content | Search before storing to verify novelty |
|
|
186
145
|
|
|
187
146
|
## When NOT to Use
|
|
188
147
|
|
|
189
|
-
-
|
|
190
|
-
- Session state
|
|
148
|
+
- Fading knowledge (preferences, decisions) → Vestige
|
|
149
|
+
- Session state / task progress → Serena memory
|
|
191
150
|
- Code symbol search → Serena or Grep
|
|
192
151
|
- Current web info → Tavily
|
|
193
152
|
- Library API docs → Context7
|
|
@@ -195,26 +154,25 @@ IF starting any new work:
|
|
|
195
154
|
## Setup
|
|
196
155
|
|
|
197
156
|
```bash
|
|
198
|
-
# 1. Start Qdrant
|
|
157
|
+
# 1. Start Qdrant
|
|
199
158
|
docker run -d --name qdrant \
|
|
200
159
|
-p 6333:6333 \
|
|
201
160
|
-v qdrant_storage:/qdrant/storage \
|
|
202
161
|
qdrant/qdrant:latest
|
|
203
162
|
|
|
204
|
-
# 2a.
|
|
163
|
+
# 2a. Ollama (default)
|
|
205
164
|
ollama pull nomic-embed-text
|
|
206
165
|
|
|
207
|
-
# 2b.
|
|
166
|
+
# 2b. fastembed (CPU-only)
|
|
208
167
|
# pip install qdrant-mcp[fastembed]
|
|
209
168
|
|
|
210
|
-
# 3. Install
|
|
169
|
+
# 3. Install MCP server
|
|
211
170
|
cd ~/dev/qdrant-mcp-server && pip install -e .
|
|
212
171
|
|
|
213
|
-
# 4. Add to
|
|
172
|
+
# 4. Add to ~/.claude.json mcpServers:
|
|
214
173
|
# "qdrant-memory": {
|
|
215
174
|
# "type": "stdio",
|
|
216
175
|
# "command": "qdrant-mcp",
|
|
217
|
-
# "args": [],
|
|
218
176
|
# "env": {
|
|
219
177
|
# "QDRANT_URL": "http://localhost:6333",
|
|
220
178
|
# "COLLECTION_NAME": "ima-knowledge",
|
|
@@ -223,22 +181,7 @@ cd ~/dev/qdrant-mcp-server && pip install -e .
|
|
|
223
181
|
# "EMBEDDING_MODEL": "nomic-embed-text"
|
|
224
182
|
# }
|
|
225
183
|
# }
|
|
226
|
-
# For fastembed, set EMBEDDING_PROVIDER=fastembed (OLLAMA_URL not needed)
|
|
227
184
|
|
|
228
185
|
# 5. Verify
|
|
229
186
|
curl http://localhost:6333/health
|
|
230
187
|
```
|
|
231
|
-
|
|
232
|
-
**Persistence**: `-v qdrant_storage:/qdrant/storage` preserves data across restarts.
|
|
233
|
-
**Embeddings**: Ollama with `nomic-embed-text` (768d) or fastembed with `bge-small-en-v1.5` (384d). All data stays on your machine.
|
|
234
|
-
|
|
235
|
-
### Per-Project Setup
|
|
236
|
-
|
|
237
|
-
Add a `.qdrant` file to any project root to use a project-specific collection:
|
|
238
|
-
|
|
239
|
-
```yaml
|
|
240
|
-
# .qdrant
|
|
241
|
-
collection: my-project-knowledge
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
This keeps project knowledge isolated from the global `ima-knowledge` collection. The collection is created automatically on first store.
|
|
@@ -5,70 +5,53 @@ description: "Sequential Thinking MCP — use for debugging, root cause analysis
|
|
|
5
5
|
|
|
6
6
|
# Sequential Thinking MCP - Structured Reasoning
|
|
7
7
|
|
|
8
|
-
Use
|
|
8
|
+
Use for: debugging, root cause analysis, trade-off evaluation, architectural decisions, multi-step problems requiring mid-stream revision.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Skip for: simple tasks, obvious answers, single-step operations.
|
|
11
|
+
|
|
12
|
+
## Tool
|
|
11
13
|
|
|
12
14
|
| Tool | Purpose |
|
|
13
15
|
|------|---------|
|
|
14
|
-
| `mcp__sequential-thinking__sequentialThinking` | Execute
|
|
15
|
-
|
|
16
|
-
## When to Use
|
|
17
|
-
|
|
18
|
-
**Use Sequential Thinking for:**
|
|
19
|
-
- Breaking down complex problems into steps
|
|
20
|
-
- Debugging issues where the cause isn't obvious
|
|
21
|
-
- Architectural/design decisions with trade-offs
|
|
22
|
-
- Problems where you might need to revise your approach
|
|
23
|
-
- Multi-step analysis that needs context maintained
|
|
24
|
-
- Filtering irrelevant information from complex scenarios
|
|
25
|
-
- Hypothesis generation and verification
|
|
16
|
+
| `mcp__sequential-thinking__sequentialThinking` | Execute one thought in a reasoning chain |
|
|
26
17
|
|
|
27
|
-
|
|
28
|
-
- Simple, straightforward tasks
|
|
29
|
-
- Questions with obvious answers
|
|
30
|
-
- Tasks that don't require multi-step reasoning
|
|
18
|
+
## Parameters
|
|
31
19
|
|
|
32
|
-
|
|
20
|
+
| Parameter | Required | Description |
|
|
21
|
+
|-----------|----------|-------------|
|
|
22
|
+
| `thought` | Yes | Current thinking step |
|
|
23
|
+
| `nextThoughtNeeded` | Yes | `true` to continue, `false` when done |
|
|
24
|
+
| `thoughtNumber` | Yes | Current step (1, 2, 3...) |
|
|
25
|
+
| `totalThoughts` | Yes | Estimated total — adjust freely |
|
|
26
|
+
| `isRevision` | No | `true` if revising a previous thought |
|
|
27
|
+
| `revisesThought` | No | Which thought number being revised |
|
|
28
|
+
| `branchFromThought` | No | Branch point thought number |
|
|
29
|
+
| `branchId` | No | Branch identifier |
|
|
33
30
|
|
|
34
|
-
|
|
31
|
+
## Usage Patterns
|
|
35
32
|
|
|
33
|
+
### Start chain
|
|
36
34
|
```
|
|
37
35
|
mcp__sequential-thinking__sequentialThinking
|
|
38
|
-
thought: "
|
|
36
|
+
thought: "The bug report says form submits but data isn't saved. Failure points: frontend validation, AJAX request, backend handler, DB write."
|
|
39
37
|
nextThoughtNeeded: true
|
|
40
38
|
thoughtNumber: 1
|
|
41
39
|
totalThoughts: 5
|
|
42
40
|
```
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
| Parameter | Required | Description |
|
|
47
|
-
|-----------|----------|-------------|
|
|
48
|
-
| `thought` | Yes | Current thinking step content |
|
|
49
|
-
| `nextThoughtNeeded` | Yes | `true` to continue, `false` when done |
|
|
50
|
-
| `thoughtNumber` | Yes | Current step number (1, 2, 3...) |
|
|
51
|
-
| `totalThoughts` | Yes | Estimated total (can adjust up/down) |
|
|
52
|
-
| `isRevision` | No | `true` if revising previous thought |
|
|
53
|
-
| `revisesThought` | No | Which thought number being revised |
|
|
54
|
-
| `branchFromThought` | No | Thought number to branch from |
|
|
55
|
-
| `branchId` | No | Identifier for the branch |
|
|
56
|
-
|
|
57
|
-
## Continue Chain
|
|
58
|
-
|
|
42
|
+
### Continue
|
|
59
43
|
```
|
|
60
44
|
mcp__sequential-thinking__sequentialThinking
|
|
61
|
-
thought: "Based on step 1,
|
|
45
|
+
thought: "Based on step 1, checking AJAX request first..."
|
|
62
46
|
nextThoughtNeeded: true
|
|
63
47
|
thoughtNumber: 2
|
|
64
48
|
totalThoughts: 5
|
|
65
49
|
```
|
|
66
50
|
|
|
67
|
-
|
|
68
|
-
|
|
51
|
+
### Revise
|
|
69
52
|
```
|
|
70
53
|
mcp__sequential-thinking__sequentialThinking
|
|
71
|
-
thought: "
|
|
54
|
+
thought: "My assumption in thought 2 was wrong. Reconsidering..."
|
|
72
55
|
nextThoughtNeeded: true
|
|
73
56
|
thoughtNumber: 3
|
|
74
57
|
totalThoughts: 6
|
|
@@ -76,11 +59,10 @@ mcp__sequential-thinking__sequentialThinking
|
|
|
76
59
|
revisesThought: 2
|
|
77
60
|
```
|
|
78
61
|
|
|
79
|
-
|
|
80
|
-
|
|
62
|
+
### Branch for alternatives
|
|
81
63
|
```
|
|
82
64
|
mcp__sequential-thinking__sequentialThinking
|
|
83
|
-
thought: "
|
|
65
|
+
thought: "Exploring alternative approach from step 2..."
|
|
84
66
|
nextThoughtNeeded: true
|
|
85
67
|
thoughtNumber: 4
|
|
86
68
|
totalThoughts: 7
|
|
@@ -88,11 +70,10 @@ mcp__sequential-thinking__sequentialThinking
|
|
|
88
70
|
branchId: "alternative-approach"
|
|
89
71
|
```
|
|
90
72
|
|
|
91
|
-
|
|
92
|
-
|
|
73
|
+
### Conclude
|
|
93
74
|
```
|
|
94
75
|
mcp__sequential-thinking__sequentialThinking
|
|
95
|
-
thought: "
|
|
76
|
+
thought: "Root cause: field name mismatch — frontend sends 'user_email', backend expects 'email'."
|
|
96
77
|
nextThoughtNeeded: false
|
|
97
78
|
thoughtNumber: 5
|
|
98
79
|
totalThoughts: 5
|
|
@@ -100,50 +81,14 @@ mcp__sequential-thinking__sequentialThinking
|
|
|
100
81
|
|
|
101
82
|
## Best Practices
|
|
102
83
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
6. **Filter noise** - Focus on relevant information per step
|
|
109
|
-
7. **Only conclude when confident** - Keep `nextThoughtNeeded: true` until satisfied
|
|
110
|
-
|
|
111
|
-
## Example: Debugging a Bug
|
|
112
|
-
|
|
113
|
-
```
|
|
114
|
-
Thought 1: "The bug report says the form submits but data isn't saved. Let me identify possible failure points: 1) Frontend validation, 2) AJAX request, 3) Backend handler, 4) Database write."
|
|
115
|
-
|
|
116
|
-
Thought 2: "Starting with the AJAX request - I should check if the request is being sent and what response comes back."
|
|
117
|
-
|
|
118
|
-
Thought 3: "The request is sent but returns 500. So the issue is backend. Let me check the error logs."
|
|
119
|
-
|
|
120
|
-
Thought 4: "Error log shows 'undefined index: email'. The frontend is sending 'user_email' but backend expects 'email'. This is a field name mismatch."
|
|
121
|
-
|
|
122
|
-
Thought 5 (conclusion): "Root cause: Field name mismatch between frontend ('user_email') and backend ('email'). Solution: Update frontend to use 'email' or backend to accept 'user_email'."
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
## Example: Architecture Decision
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
Thought 1: "Need to decide between REST API and GraphQL for this project. Let me list the requirements: multiple clients, varying data needs, team experience."
|
|
129
|
-
|
|
130
|
-
Thought 2: "REST pros: Team knows it well, simple caching, established patterns. Cons: Over-fetching for mobile, multiple endpoints."
|
|
131
|
-
|
|
132
|
-
Thought 3: "GraphQL pros: Single endpoint, client specifies data needs, good for mobile. Cons: Learning curve, caching complexity."
|
|
133
|
-
|
|
134
|
-
Thought 4 (revision): "Wait, I should also consider that we're using WordPress backend. REST is native to WordPress, GraphQL would need WPGraphQL plugin."
|
|
135
|
-
|
|
136
|
-
Thought 5 (conclusion): "Recommendation: REST API. Reasons: 1) Native WordPress support, 2) Team expertise, 3) Simpler caching. The over-fetching concern can be mitigated with sparse fieldsets."
|
|
137
|
-
```
|
|
84
|
+
- Adjust `totalThoughts` freely — it's an estimate
|
|
85
|
+
- Express uncertainty inline: "I'm not sure, but..."
|
|
86
|
+
- Revise with `isRevision` when understanding changes
|
|
87
|
+
- Keep `nextThoughtNeeded: true` until confident
|
|
88
|
+
- Branch to compare approaches, not just to explore
|
|
138
89
|
|
|
139
90
|
## Setup
|
|
140
91
|
|
|
141
|
-
No API key required. Install with:
|
|
142
|
-
```bash
|
|
143
|
-
bun run scripts/setup-mcp.ts
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
Or manually:
|
|
147
92
|
```bash
|
|
148
93
|
claude mcp add --scope user sequential-thinking -- npx -y @modelcontextprotocol/server-sequential-thinking@latest
|
|
149
94
|
```
|