@j0hanz/thinkseq-mcp 1.2.1 → 1.2.2
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/dist/instructions.md +41 -44
- package/package.json +1 -1
package/dist/instructions.md
CHANGED
|
@@ -1,66 +1,63 @@
|
|
|
1
|
-
# ThinkSeq MCP Server — Instructions
|
|
1
|
+
# ThinkSeq MCP Server — AI Usage Instructions
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use this server to record sequential thinking steps to plan, reason, and debug. Prefer these tools over "remembering" state in chat.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Operating Rules
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- Keep thoughts atomic: one decision, calculation, or action per step.
|
|
8
|
+
- Use revisions to fix mistakes in the active chain instead of apologizing in chat.
|
|
9
|
+
- If request is vague, ask clarifying questions.
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
### Strategies
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
- **Discovery:** Read the tool output's `context` to see recent thoughts and available revision targets.
|
|
14
|
+
- **Action:** Use `thinkseq` to advance the reasoning chain or `revisesThought` to rewind and correct.
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
## Data Model
|
|
15
17
|
|
|
16
|
-
**
|
|
18
|
+
- **Thinking Step:** `thought` (text), `thoughtNumber` (int), `progress` (0-1), `isComplete` (bool)
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
- You want a lightweight decision log (assumptions → choice → next action).
|
|
20
|
-
- You are debugging and want a clear hypothesis → check → result chain.
|
|
20
|
+
## Workflows
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
### 1) Structured Reasoning
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
```text
|
|
25
|
+
thinkseq(thought="Plan: 1. check, 2. fix", totalThoughts=5) → Start chain
|
|
26
|
+
thinkseq(thought="Check passed, starting fix") → Progress chain
|
|
27
|
+
thinkseq(thought="Revised plan: use new API", revisesThought=1) → Correction
|
|
28
|
+
```
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
## Tools
|
|
28
31
|
|
|
29
|
-
|
|
30
|
-
- `totalThoughts` (int, 1–25, optional): estimated total steps (default: 3).
|
|
31
|
-
- `revisesThought` (int ≥ 1, optional): revise a previous step by its `thoughtNumber`.
|
|
32
|
+
### thinkseq
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
Record a concise thinking step (max 5000 chars). Be brief: capture only the essential insight, calculation, or decision.
|
|
34
35
|
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
36
|
+
- **Use when:** You need to structured reasoning, planning, or a decision log.
|
|
37
|
+
- **Args:**
|
|
38
|
+
- `thought` (string, required): Your current thinking step.
|
|
39
|
+
- `totalThoughts` (number, optional): Estimated total thoughts (1-25, default: 3).
|
|
40
|
+
- `revisesThought` (number, optional): Revise a previous thought by number.
|
|
41
|
+
- **Returns:** `thoughtNumber`, `progress`, `isComplete`, `revisableThoughts`, `context` (history previews).
|
|
38
42
|
|
|
39
|
-
|
|
43
|
+
## Response Shape
|
|
40
44
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- `result.context.recentThoughts`: previews of the current active chain
|
|
44
|
-
- `result.context.revisionInfo`: present only when a revision occurred
|
|
45
|
+
Success: `{ "ok": true, "result": { ... } }`
|
|
46
|
+
Error: `{ "ok": false, "error": { "code": "...", "message": "..." } }`
|
|
45
47
|
|
|
46
|
-
|
|
48
|
+
### Common Errors
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
| Code | Meaning | Resolution |
|
|
51
|
+
| ------------------------------ | -------------------------------------- | ----------------------------------------- |
|
|
52
|
+
| `E_REVISION_TARGET_NOT_FOUND` | Revision target ID does not exist | Check `revisableThoughts` for valid IDs |
|
|
53
|
+
| `E_REVISION_TARGET_SUPERSEDED` | Target thought was already overwritten | Revise the current active thought instead |
|
|
54
|
+
| `E_THINK` | Generic engine error | Check arguments and retry |
|
|
52
55
|
|
|
53
|
-
##
|
|
56
|
+
## Limits
|
|
54
57
|
|
|
55
|
-
-
|
|
56
|
-
-
|
|
58
|
+
- **Max Thoughts:** 25 (default estimate)
|
|
59
|
+
- **Max Length:** 5000 chars per thought
|
|
57
60
|
|
|
58
|
-
##
|
|
61
|
+
## Security
|
|
59
62
|
|
|
60
|
-
-
|
|
61
|
-
- `E_REVISION_TARGET_SUPERSEDED`: the target thought is no longer active.
|
|
62
|
-
- `E_THINK`: unexpected server-side failure.
|
|
63
|
-
|
|
64
|
-
## Optional configuration
|
|
65
|
-
|
|
66
|
-
- `THINKSEQ_INCLUDE_TEXT_CONTENT`: when set to `0`/`false`/`no`/`off`, the tool returns no `content` text and you should rely on `structuredContent`.
|
|
63
|
+
- Do not store credentials, secrets, or PII in thoughts. State is in-memory only but may be logged.
|