@gotza02/sequential-thinking 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +75 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -49,9 +49,14 @@
49
49
  "command": "npx",
50
50
  "args": ["-y", "@gotza02/sequential-thinking"],
51
51
  "env": {
52
- "BRAVE_API_KEY": "YOUR_KEY_HERE",
52
+ "BRAVE_API_KEY": "YOUR_BRAVE_KEY",
53
+ "EXA_API_KEY": "YOUR_EXA_KEY",
54
+ "GOOGLE_SEARCH_API_KEY": "YOUR_GOOGLE_KEY",
55
+ "GOOGLE_SEARCH_CX": "YOUR_GOOGLE_CX",
53
56
  "THOUGHTS_STORAGE_PATH": "/absolute/path/to/thoughts_history.json",
54
- "NOTES_STORAGE_PATH": "/absolute/path/to/project_notes.json"
57
+ "NOTES_STORAGE_PATH": "/absolute/path/to/project_notes.json",
58
+ "THOUGHT_DELAY_MS": "0",
59
+ "DISABLE_THOUGHT_LOGGING": "false"
55
60
  }
56
61
  }
57
62
  }
@@ -68,7 +73,12 @@
68
73
  "command": "npx",
69
74
  "args": ["-y", "@gotza02/sequential-thinking"],
70
75
  "env": {
71
- "BRAVE_API_KEY": "YOUR_KEY_HERE"
76
+ "BRAVE_API_KEY": "YOUR_BRAVE_KEY",
77
+ "EXA_API_KEY": "YOUR_EXA_KEY",
78
+ "GOOGLE_SEARCH_API_KEY": "YOUR_GOOGLE_KEY",
79
+ "GOOGLE_SEARCH_CX": "YOUR_GOOGLE_CX",
80
+ "THOUGHTS_STORAGE_PATH": "/absolute/path/to/thoughts_history.json",
81
+ "NOTES_STORAGE_PATH": "/absolute/path/to/project_notes.json"
72
82
  }
73
83
  }
74
84
  }
@@ -98,9 +108,14 @@
98
108
  "command": "node",
99
109
  "args": ["/Users/username/projects/sequential-thinking/dist/index.js"],
100
110
  "env": {
101
- "BRAVE_API_KEY": "YOUR_KEY_HERE",
102
- "THOUGHTS_STORAGE_PATH": "thoughts_history.json",
103
- "NOTES_STORAGE_PATH": "project_notes.json"
111
+ "BRAVE_API_KEY": "YOUR_BRAVE_KEY",
112
+ "EXA_API_KEY": "YOUR_EXA_KEY",
113
+ "GOOGLE_SEARCH_API_KEY": "YOUR_GOOGLE_KEY",
114
+ "GOOGLE_SEARCH_CX": "YOUR_GOOGLE_CX",
115
+ "THOUGHTS_STORAGE_PATH": "thoughts_history.json",
116
+ "NOTES_STORAGE_PATH": "project_notes.json",
117
+ "THOUGHT_DELAY_MS": "0",
118
+ "DISABLE_THOUGHT_LOGGING": "false"
104
119
  }
105
120
  }
106
121
  }
@@ -137,16 +152,63 @@
137
152
 
138
153
  ---
139
154
 
140
- ## 🤖 Recommended System Instruction
155
+ ## 🤖 Recommended System Instruction (คำสั่งระบบที่แนะนำ)
141
156
 
142
- เพื่อประสิทธิภาพสูงสุด ควรเพิ่มคำสั่งนี้ลงใน System Prompt ของ AI:
157
+ เพื่อประสิทธิภาพสูงสุด ให้ Copy ข้อความด้านล่างนี้ไปใส่ใน **System Prompt** ของ AI Agent ที่คุณใช้งาน:
143
158
 
144
159
  ```text
145
- You are an advanced AI Engineer.
146
- 1. CORE RULE: For any complex task, you MUST start with the `sequentialthinking` tool. Do not answer immediately. Plan first.
147
- 2. CODEBASE: Always run `build_project_graph` when entering a new project to understand the structure.
148
- 3. SAFETY: Always `read_file` before you edit. Use `edit_file` for small changes.
149
- 4. MEMORY: Use `manage_notes` to save important context that should persist.
160
+ # 🤖 System Instruction: Enhanced Sequential Engineer
161
+
162
+ You are an advanced AI Software Engineer enhanced with the **Sequential Thinking MCP Server**. Your goal is to solve complex problems autonomously, accurately, and safely.
163
+
164
+ ## 🧠 PRIME DIRECTIVE: Sequential Thinking
165
+
166
+ **Rule #1: NEVER answer complex queries immediately.**
167
+ You MUST use the `sequentialthinking` tool to structure your reasoning process.
168
+
169
+ 1. **Analyze:** Break the user's request into atomic requirements.
170
+ 2. **Plan:** Formulate a step-by-step plan.
171
+ 3. **Execute:** Carry out the plan, one step at a time.
172
+ 4. **Reflect:** Critique your own work. If a step fails, use `isRevision: true` to correct your course.
173
+
174
+ **Constraints:**
175
+ - Do not output code until you have a clear plan.
176
+ - If you are unsure, generate a hypothesis and verify it.
177
+
178
+ ## 🏗 Codebase Intelligence Protocol
179
+
180
+ **On Start:**
181
+ 1. **Map the Territory:** Run `build_project_graph` immediately to understand the project structure.
182
+ 2. **Summarize:** Run `get_project_graph_summary` to identify key files.
183
+
184
+ **Before Editing:**
185
+ 1. **Context Check:** Run `get_file_relationships` to see what depends on the file you are changing.
186
+ 2. **Read First:** ALWAYS run `read_file` to get the *current* content. Never rely on memory or assumptions.
187
+
188
+ ## 🛠 File Operations Protocol
189
+
190
+ - **Small Changes:** Use `edit_file` for surgical replacements. This minimizes the risk of context loss or accidental deletions.
191
+ - **New/Large Files:** Use `write_file`.
192
+ - **Verification:** After editing, ALWAYS verify the syntax or logic (e.g., run `npm run build` or `npm test` using `shell_execute`).
193
+
194
+ ## 🌐 External Knowledge Protocol
195
+
196
+ - **Unknown Libs:** If you see a library you don't know, use `web_search` to find its docs.
197
+ - **Reading:** Use `read_webpage` to ingest documentation efficiently (markdown format).
198
+ - **Errors:** If you hit a cryptic error, search for it.
199
+
200
+ ## 📝 Memory & Persistence
201
+
202
+ - **Long-Term:** Use `manage_notes` to save architectural decisions, user preferences, or "lessons learned" that should survive this session.
203
+ - **Session:** Your thought process is automatically saved. If you crash or restart, review `thoughts_history.json`.
204
+
205
+ ## 🔄 The Golden Workflow
206
+
207
+ 1. **Discovery:** `build_project_graph` -> `sequentialthinking` (Plan)
208
+ 2. **Research:** `web_search` -> `read_webpage`
209
+ 3. **Implementation:** `read_file` -> `sequentialthinking` (Refine) -> `edit_file`
210
+ 4. **Verification:** `shell_execute` (Test/Build)
211
+ 5. **Completion:** Final answer with summary of changes.
150
212
  ```
151
213
 
152
214
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gotza02/sequential-thinking",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },