@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.
@@ -1,66 +1,63 @@
1
- # ThinkSeq MCP Server — Instructions
1
+ # ThinkSeq MCP Server — AI Usage Instructions
2
2
 
3
- ## What this server does
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
- ThinkSeq exposes one MCP tool, `thinkseq`, to help you keep a short, numbered chain of reasoning steps with progress tracking and revision support.
5
+ ## Operating Rules
6
6
 
7
- - State is in-memory only and resets when the server restarts.
8
- - Keep each step concise; this is a structure/coordination tool, not a scratchpad for long text.
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
- ## Available tools
11
+ ### Strategies
11
12
 
12
- ### `thinkseq`
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
- Record a single sequential thinking step.
16
+ ## Data Model
15
17
 
16
- **Use it when:**
18
+ - **Thinking Step:** `thought` (text), `thoughtNumber` (int), `progress` (0-1), `isComplete` (bool)
17
19
 
18
- - You want a small, explicit plan (step-by-step) and a progress signal.
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
- **Do not use it for:**
22
+ ### 1) Structured Reasoning
23
23
 
24
- - Long-form writing or dumping large transcripts.
25
- - Storing secrets, credentials, or personal data.
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
- **Inputs:**
30
+ ## Tools
28
31
 
29
- - `thought` (string, 1–5000 chars, required): one concise step.
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
- **Revision semantics (important):**
34
+ Record a concise thinking step (max 5000 chars). Be brief: capture only the essential insight, calculation, or decision.
34
35
 
35
- - A revision is a destructive rewind of the _active chain_.
36
- - When you set `revisesThought`, the tool supersedes the targeted thought and every later _active_ thought, then continues from your corrected step.
37
- - Superseded thoughts remain in history for audit, but they are no longer in the active chain.
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
- **Outputs (prefer `structuredContent`):**
43
+ ## Response Shape
40
44
 
41
- - `result.progress` in [0, 1] and `result.isComplete`
42
- - `result.revisableThoughts`: thought numbers you can revise
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
- ## Recommended workflow
48
+ ### Common Errors
47
49
 
48
- 1. Set `totalThoughts` once at the start (adjust later if needed).
49
- 2. Call `thinkseq` once per step; keep `thought` focused (one decision, one calculation, or one next action).
50
- 3. If you discover an earlier mistake, call `thinkseq` again with `revisesThought` to correct it.
51
- 4. Stop using the tool when `isComplete` becomes `true` (or once you have enough structure to proceed).
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
- ## Response handling guidance
56
+ ## Limits
54
57
 
55
- - Don’t paste raw tool JSON to the user unless they ask.
56
- - Use the tool output to write a clean, user-facing summary and next steps.
58
+ - **Max Thoughts:** 25 (default estimate)
59
+ - **Max Length:** 5000 chars per thought
57
60
 
58
- ## Common errors
61
+ ## Security
59
62
 
60
- - `E_REVISION_TARGET_NOT_FOUND`: the target thought number doesn’t exist.
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j0hanz/thinkseq-mcp",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "mcpName": "io.github.j0hanz/thinkseq",
5
5
  "description": "An thinking and reasoning engine for the Model Context Protocol (MCP).",
6
6
  "type": "module",