@gotza02/sequential-thinking 2026.1.21 → 2026.1.22
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 +6 -1
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ Search the web using Brave or Exa APIs.
|
|
|
44
44
|
Requires one of the following environment variable sets:
|
|
45
45
|
- `BRAVE_API_KEY` (for Brave Search)
|
|
46
46
|
- `EXA_API_KEY` (for Exa Search)
|
|
47
|
-
- `
|
|
47
|
+
- `GOOGLE_SEARCH_API_KEY` and `GOOGLE_SEARCH_CX` (for Google Custom Search)
|
|
48
48
|
|
|
49
49
|
### fetch
|
|
50
50
|
|
|
@@ -140,6 +140,11 @@ npm run build
|
|
|
140
140
|
npm test
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
+
## Recent Updates (v2026.1.22)
|
|
144
|
+
|
|
145
|
+
- **Environment Variables**:
|
|
146
|
+
- Renamed Google Search environment variables to `GOOGLE_SEARCH_API_KEY` and `GOOGLE_SEARCH_CX` to avoid conflicts and improve clarity.
|
|
147
|
+
|
|
143
148
|
## Recent Updates (v2026.1.21)
|
|
144
149
|
|
|
145
150
|
- **Performance & Accuracy**:
|
package/dist/index.js
CHANGED
|
@@ -112,10 +112,10 @@ server.tool("web_search", "Search the web using Brave or Exa APIs (requires API
|
|
|
112
112
|
selectedProvider = 'brave';
|
|
113
113
|
else if (process.env.EXA_API_KEY)
|
|
114
114
|
selectedProvider = 'exa';
|
|
115
|
-
else if (process.env.
|
|
115
|
+
else if (process.env.GOOGLE_SEARCH_API_KEY)
|
|
116
116
|
selectedProvider = 'google';
|
|
117
117
|
else
|
|
118
|
-
return { content: [{ type: "text", text: "Error: No search provider configured. Please set BRAVE_API_KEY, EXA_API_KEY, or
|
|
118
|
+
return { content: [{ type: "text", text: "Error: No search provider configured. Please set BRAVE_API_KEY, EXA_API_KEY, or GOOGLE_SEARCH_API_KEY." }], isError: true };
|
|
119
119
|
}
|
|
120
120
|
if (selectedProvider === 'brave') {
|
|
121
121
|
if (!process.env.BRAVE_API_KEY)
|
|
@@ -145,11 +145,11 @@ server.tool("web_search", "Search the web using Brave or Exa APIs (requires API
|
|
|
145
145
|
return { content: [{ type: "text", text: JSON.stringify(data.results || data, null, 2) }] };
|
|
146
146
|
}
|
|
147
147
|
if (selectedProvider === 'google') {
|
|
148
|
-
if (!process.env.
|
|
149
|
-
throw new Error("
|
|
150
|
-
if (!process.env.
|
|
151
|
-
throw new Error("
|
|
152
|
-
const response = await fetch(`https://www.googleapis.com/customsearch/v1?key=${process.env.
|
|
148
|
+
if (!process.env.GOOGLE_SEARCH_API_KEY)
|
|
149
|
+
throw new Error("GOOGLE_SEARCH_API_KEY not found");
|
|
150
|
+
if (!process.env.GOOGLE_SEARCH_CX)
|
|
151
|
+
throw new Error("GOOGLE_SEARCH_CX (Search Engine ID) not found");
|
|
152
|
+
const response = await fetch(`https://www.googleapis.com/customsearch/v1?key=${process.env.GOOGLE_SEARCH_API_KEY}&cx=${process.env.GOOGLE_SEARCH_CX}&q=${encodeURIComponent(query)}&num=5`);
|
|
153
153
|
if (!response.ok)
|
|
154
154
|
throw new Error(`Google API error: ${response.statusText}`);
|
|
155
155
|
const data = await response.json();
|