@j0hanz/thinkseq-mcp 1.0.1 → 1.0.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/README.md +203 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,38 +1,220 @@
|
|
|
1
|
-
#
|
|
1
|
+
# thinkseq-mcp-server
|
|
2
2
|
|
|
3
3
|
<img src="docs/logo.png" alt="Filesystem Context MCP Server Logo" width="175">
|
|
4
4
|
|
|
5
5
|
An MCP implementation for advanced reasoning and thinking sequences.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
[](https://www.npmjs.com/package/@j0hanz/thinkseq-mcp)
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
- **Structured Output**: Full Zod schema validation.
|
|
11
|
-
- **Zero Dependencies**: Only uses standard MCP SDK.
|
|
12
|
-
- **Branching & Revision**: Full support for non-linear thinking.
|
|
9
|
+
## One-Click Install
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
[](https://insiders.vscode.dev/redirect/mcp/install?name=thinkseq&inputs=%5B%5D&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40j0hanz%2Fthinkseq-mcp%40latest%22%5D%7D) [](https://insiders.vscode.dev/redirect/mcp/install?name=thinkseq&inputs=%5B%5D&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40j0hanz%2Fthinkseq-mcp%40latest%22%5D%7D&quality=insiders)
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
[](https://cursor.com/install-mcp?name=thinkseq&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBqMGhhbnovdGhpbmtzZXEtbWNwQGxhdGVzdCJdfQ==)
|
|
17
14
|
|
|
18
|
-
|
|
15
|
+
## ✨ Features
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
- `thoughtNumber`: Current step (1-indexed).
|
|
22
|
-
- `totalThoughts`: Estimated total steps.
|
|
23
|
-
- `nextThoughtNeeded`: Boolean.
|
|
24
|
-
- `thoughtType`: (Optional) "analysis", "hypothesis", "verification", etc.
|
|
17
|
+
This MCP server provides a powerful `thinkseq` tool that enables AI agents to maintain rigorous thinking sequences.
|
|
25
18
|
|
|
26
|
-
|
|
19
|
+
| Feature | Description |
|
|
20
|
+
| :------------------------- | :-------------------------------------------------------------------------------------- |
|
|
21
|
+
| 🧠 **Sequential Thinking** | Break down complex problems into manageable steps with maintained context. |
|
|
22
|
+
| 🌿 **Branching** | Explore multiple solution paths simultaneously without losing track of the main thread. |
|
|
23
|
+
| 🔄 **Revision Support** | Dynamically revise previous thoughts and conclusions based on new insights. |
|
|
24
|
+
| 🏗️ **Structured Output** | Returns structured data for better agent-reasoning loops. |
|
|
25
|
+
|
|
26
|
+
## 🎯 When to Use
|
|
27
|
+
|
|
28
|
+
Use `thinkseq` when the AI agent needs to:
|
|
29
|
+
|
|
30
|
+
- **Plan complex architectures** before writing code.
|
|
31
|
+
- **Analyze interdependent parameters** or conflicting information.
|
|
32
|
+
- **Debug tricky issues** where initial assumptions might need correction.
|
|
33
|
+
- **Determine feature prioritization** based on multiple constraints.
|
|
34
|
+
- **Structure a "Chain of Thought"** that is visible and reviewable.
|
|
35
|
+
|
|
36
|
+
## 🚀 Quick Start
|
|
37
|
+
|
|
38
|
+
The easiest way to use the server is via `npx`:
|
|
27
39
|
|
|
28
40
|
```bash
|
|
29
|
-
|
|
30
|
-
npm run build
|
|
31
|
-
npm start
|
|
41
|
+
npx -y @j0hanz/thinkseq-mcp@latest
|
|
32
42
|
```
|
|
33
43
|
|
|
34
|
-
##
|
|
44
|
+
## 📦 Installation
|
|
35
45
|
|
|
36
|
-
|
|
37
|
-
|
|
46
|
+
### NPX (Recommended)
|
|
47
|
+
|
|
48
|
+
Add this configuration to your MCP client settings:
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"thinkseq": {
|
|
53
|
+
"command": "npx",
|
|
54
|
+
"args": ["-y", "@j0hanz/thinkseq-mcp@latest"]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### From Source
|
|
60
|
+
|
|
61
|
+
1. Clone the repository:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
git clone https://github.com/j0hanz/thinkseq-mcp-server.git
|
|
65
|
+
cd thinkseq-mcp
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
2. Install dependencies:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npm install
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
3. Build the server:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
npm run build
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
4. Start the server:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npm start
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## ⚙️ Configuration
|
|
87
|
+
|
|
88
|
+
The server currently does not require environment variables or command-line arguments for basic operation. It runs over stdio by default.
|
|
89
|
+
|
|
90
|
+
## 🔧 Tools
|
|
91
|
+
|
|
92
|
+
### `thinkseq`
|
|
93
|
+
|
|
94
|
+
Structured sequential thinking with branching and revision support.
|
|
95
|
+
|
|
96
|
+
| Parameter | Type | Required | Default | Description |
|
|
97
|
+
| :------------------ | :------ | :------- | :------ | :------------------------------------------------------------------------ |
|
|
98
|
+
| `thought` | string | ✅ | - | Your current thinking step. |
|
|
99
|
+
| `thoughtNumber` | number | ✅ | - | Current thought number in sequence (starts at 1). |
|
|
100
|
+
| `totalThoughts` | number | ✅ | - | Estimated total thoughts needed (can adjust). |
|
|
101
|
+
| `nextThoughtNeeded` | boolean | ✅ | - | Whether another thought step is needed. |
|
|
102
|
+
| `isRevision` | boolean | ❌ | - | Whether this revises previous thinking. |
|
|
103
|
+
| `revisesThought` | number | ❌ | - | Which thought number is being reconsidered. |
|
|
104
|
+
| `branchFromThought` | number | ❌ | - | Branching point thought number. |
|
|
105
|
+
| `branchId` | string | ❌ | - | Branch identifier. |
|
|
106
|
+
| `thoughtType` | string | ❌ | - | Type: `analysis`, `hypothesis`, `verification`, `revision`, `conclusion`. |
|
|
107
|
+
|
|
108
|
+
**Returns:** A JSON result containing the processed thought data, which helps the agent maintain context.
|
|
109
|
+
|
|
110
|
+
**Example Input:**
|
|
111
|
+
|
|
112
|
+
```json
|
|
113
|
+
{
|
|
114
|
+
"thought": "I need to break down the user's request into smaller tasks.",
|
|
115
|
+
"thoughtNumber": 1,
|
|
116
|
+
"totalThoughts": 3,
|
|
117
|
+
"nextThoughtNeeded": true,
|
|
118
|
+
"thoughtType": "analysis"
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## 🔌 Client Configuration
|
|
123
|
+
|
|
124
|
+
<details>
|
|
125
|
+
<summary><b>VS Code</b></summary>
|
|
126
|
+
|
|
127
|
+
Add to your `mcp.json` (access via command palette: "MCP: Open Settings"):
|
|
128
|
+
|
|
129
|
+
```json
|
|
130
|
+
{
|
|
131
|
+
"mcpServers": {
|
|
132
|
+
"thinkseq": {
|
|
133
|
+
"command": "npx",
|
|
134
|
+
"args": ["-y", "@j0hanz/thinkseq-mcp@latest"]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
</details>
|
|
141
|
+
|
|
142
|
+
<details>
|
|
143
|
+
<summary><b>Claude Desktop</b></summary>
|
|
144
|
+
|
|
145
|
+
Add to your `claude_desktop_config.json`:
|
|
146
|
+
|
|
147
|
+
```json
|
|
148
|
+
{
|
|
149
|
+
"mcpServers": {
|
|
150
|
+
"thinkseq": {
|
|
151
|
+
"command": "npx",
|
|
152
|
+
"args": ["-y", "@j0hanz/thinkseq-mcp@latest"]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
</details>
|
|
159
|
+
|
|
160
|
+
<details>
|
|
161
|
+
<summary><b>Cursor</b></summary>
|
|
162
|
+
|
|
163
|
+
1. Go to **Cursor Settings** > **General** > **MCP**.
|
|
164
|
+
2. Click **Add New MCP Server**.
|
|
165
|
+
3. Fill in the details:
|
|
166
|
+
- **Name:** `thinkseq`
|
|
167
|
+
- **Type:** `command`
|
|
168
|
+
- **Command:** `npx -y @j0hanz/thinkseq-mcp@latest`
|
|
169
|
+
|
|
170
|
+
</details>
|
|
171
|
+
|
|
172
|
+
<details>
|
|
173
|
+
<summary><b>Windsurf</b></summary>
|
|
174
|
+
|
|
175
|
+
Add to your `~/.codeium/windsurf/mcp_config.json`:
|
|
176
|
+
|
|
177
|
+
```json
|
|
178
|
+
{
|
|
179
|
+
"mcpServers": {
|
|
180
|
+
"thinkseq": {
|
|
181
|
+
"command": "npx",
|
|
182
|
+
"args": ["-y", "@j0hanz/thinkseq-mcp@latest"]
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
</details>
|
|
189
|
+
|
|
190
|
+
## 🛠️ Development
|
|
191
|
+
|
|
192
|
+
### Prerequisites
|
|
193
|
+
|
|
194
|
+
- Node.js >= 20.0.0
|
|
195
|
+
|
|
196
|
+
### Scripts
|
|
197
|
+
|
|
198
|
+
| Command | Description |
|
|
199
|
+
| :------------------ | :-------------------------------------------------- |
|
|
200
|
+
| `npm run build` | Compiles TypeScript to `dist/`. |
|
|
201
|
+
| `npm run dev` | Runs the server in watch mode for development. |
|
|
202
|
+
| `npm run test` | Runs the test suite. |
|
|
203
|
+
| `npm run lint` | Lints the codebase using ESLint. |
|
|
204
|
+
| `npm run inspector` | Launches the MCP Inspector for interactive testing. |
|
|
205
|
+
|
|
206
|
+
### Project Structure
|
|
207
|
+
|
|
208
|
+
```text
|
|
209
|
+
src/
|
|
210
|
+
├── app.ts # Application setup
|
|
211
|
+
├── engine.ts # Core thinking engine logic
|
|
212
|
+
├── index.ts # Entry point
|
|
213
|
+
├── lib/ # Shared utilities
|
|
214
|
+
├── schemas/ # Zod input/output schemas
|
|
215
|
+
└── tools/ # Tool definitions (thinkseq.ts)
|
|
38
216
|
```
|
|
217
|
+
|
|
218
|
+
## 🤝 Contributing
|
|
219
|
+
|
|
220
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|