sequentum-mcp 1.0.0
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/CHANGELOG.md +47 -0
- package/LICENSE +21 -0
- package/README.md +191 -0
- package/dist/api-client.d.ts +185 -0
- package/dist/api-client.d.ts.map +1 -0
- package/dist/api-client.js +476 -0
- package/dist/api-client.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1172 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +417 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +91 -0
- package/dist/types.js.map +1 -0
- package/docs/tool-reference.md +782 -0
- package/docs/troubleshooting.md +313 -0
- package/package.json +63 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
# Troubleshooting Guide
|
|
2
|
+
|
|
3
|
+
This guide covers common issues and their solutions when using the Sequentum MCP server.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Connection Issues](#connection-issues)
|
|
8
|
+
- [Authentication Errors](#authentication-errors)
|
|
9
|
+
- [API Errors](#api-errors)
|
|
10
|
+
- [Agent Execution Issues](#agent-execution-issues)
|
|
11
|
+
- [MCP Client Issues](#mcp-client-issues)
|
|
12
|
+
- [Getting Help](#getting-help)
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Connection Issues
|
|
17
|
+
|
|
18
|
+
### SEQUENTUM_API_KEY required
|
|
19
|
+
|
|
20
|
+
**Error:**
|
|
21
|
+
```
|
|
22
|
+
Error: SEQUENTUM_API_KEY environment variable is required
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Cause:** The API key is not configured in your MCP client settings.
|
|
26
|
+
|
|
27
|
+
**Solution:**
|
|
28
|
+
|
|
29
|
+
1. Log in to the [Sequentum Control Center](https://dashboard.sequentum.com)
|
|
30
|
+
2. Go to **Settings** → **API Keys**
|
|
31
|
+
3. Click **Create API Key** and copy the generated key
|
|
32
|
+
4. Add it to your MCP client configuration in the `env` section:
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"mcpServers": {
|
|
37
|
+
"sequentum": {
|
|
38
|
+
"command": "npx",
|
|
39
|
+
"args": ["-y", "sequentum-mcp"],
|
|
40
|
+
"env": {
|
|
41
|
+
"SEQUENTUM_API_KEY": "sk-your-api-key"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### Using a custom Sequentum instance
|
|
51
|
+
|
|
52
|
+
By default, the MCP server connects to `https://dashboard.sequentum.com`. If you're using a custom Sequentum deployment, set the `SEQUENTUM_API_URL` environment variable:
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"mcpServers": {
|
|
57
|
+
"sequentum": {
|
|
58
|
+
"command": "npx",
|
|
59
|
+
"args": ["-y", "sequentum-mcp"],
|
|
60
|
+
"env": {
|
|
61
|
+
"SEQUENTUM_API_KEY": "sk-your-api-key",
|
|
62
|
+
"SEQUENTUM_API_URL": "https://your-custom-instance.sequentum.com"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### Connection timeout or network errors
|
|
72
|
+
|
|
73
|
+
**Error:**
|
|
74
|
+
```
|
|
75
|
+
Error: ECONNREFUSED or ETIMEDOUT
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Cause:** Unable to reach the Sequentum API server.
|
|
79
|
+
|
|
80
|
+
**Solutions:**
|
|
81
|
+
|
|
82
|
+
1. **Check your internet connection**
|
|
83
|
+
2. **Verify the API URL** is correct (e.g., `https://dashboard.sequentum.com`)
|
|
84
|
+
3. **Check if Sequentum is down** by visiting the dashboard directly
|
|
85
|
+
4. **Check firewall/proxy settings** that might be blocking the connection
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Authentication Errors
|
|
90
|
+
|
|
91
|
+
### API Error 401: Unauthorized
|
|
92
|
+
|
|
93
|
+
**Error:**
|
|
94
|
+
```
|
|
95
|
+
Error: API Error 401: Unauthorized
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Cause:** Your API key is invalid, expired, or has been revoked.
|
|
99
|
+
|
|
100
|
+
**Solutions:**
|
|
101
|
+
|
|
102
|
+
1. **Generate a new API key:**
|
|
103
|
+
- Log in to the [Sequentum Control Center](https://dashboard.sequentum.com)
|
|
104
|
+
- Go to **Settings** → **API Keys**
|
|
105
|
+
- Create a new API key and update your configuration
|
|
106
|
+
|
|
107
|
+
2. **Check for typos** in your API key (it should start with `sk-`)
|
|
108
|
+
|
|
109
|
+
3. **Verify the key has not been revoked** in the Control Center
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
### API Error 403: Forbidden
|
|
114
|
+
|
|
115
|
+
**Error:**
|
|
116
|
+
```
|
|
117
|
+
Error: API Error 403: Forbidden
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**Cause:** Your account doesn't have permission to perform the requested action.
|
|
121
|
+
|
|
122
|
+
**Solutions:**
|
|
123
|
+
|
|
124
|
+
1. **Check your account permissions** in the Sequentum Control Center
|
|
125
|
+
2. **Verify you have access** to the specific agent, space, or resource
|
|
126
|
+
3. **Contact your organization admin** to request additional permissions
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## API Errors
|
|
131
|
+
|
|
132
|
+
### API Error 404: Not Found
|
|
133
|
+
|
|
134
|
+
**Error:**
|
|
135
|
+
```
|
|
136
|
+
Error: API Error 404: Not Found
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
**Cause:** The requested resource (agent, run, file, etc.) doesn't exist or you don't have access.
|
|
140
|
+
|
|
141
|
+
**Solutions:**
|
|
142
|
+
|
|
143
|
+
1. **Verify the ID is correct** - use `list_agents` to find valid agent IDs
|
|
144
|
+
2. **Check if the resource was deleted**
|
|
145
|
+
3. **Verify you have access** to the resource in the Control Center
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
### API Error 429: Too Many Requests
|
|
150
|
+
|
|
151
|
+
**Error:**
|
|
152
|
+
```
|
|
153
|
+
Error: API Error 429: Too Many Requests
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Cause:** You've exceeded the API rate limit (100 requests/minute per API key).
|
|
157
|
+
|
|
158
|
+
**Solutions:**
|
|
159
|
+
|
|
160
|
+
1. **Wait a moment** and try again
|
|
161
|
+
2. **Reduce request frequency** if running automated scripts
|
|
162
|
+
3. **Use pagination** with `pageIndex` and `recordsPerPage` to reduce data per request
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
### API Error 500: Internal Server Error
|
|
167
|
+
|
|
168
|
+
**Error:**
|
|
169
|
+
```
|
|
170
|
+
Error: API Error 500: Internal Server Error
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Cause:** An error occurred on the Sequentum server.
|
|
174
|
+
|
|
175
|
+
**Solutions:**
|
|
176
|
+
|
|
177
|
+
1. **Wait and retry** - the issue may be temporary
|
|
178
|
+
2. **Check Sequentum status** for any ongoing incidents
|
|
179
|
+
3. **Try a simpler request** to isolate the issue
|
|
180
|
+
4. **Contact Sequentum support** if the issue persists
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Agent Execution Issues
|
|
185
|
+
|
|
186
|
+
### Agent fails to start
|
|
187
|
+
|
|
188
|
+
**Error:**
|
|
189
|
+
```
|
|
190
|
+
Error: Failed to start agent
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Possible Causes:**
|
|
194
|
+
|
|
195
|
+
1. **No available execution slots** - too many agents running
|
|
196
|
+
2. **Agent is disabled** or archived
|
|
197
|
+
3. **Invalid input parameters**
|
|
198
|
+
|
|
199
|
+
**Solutions:**
|
|
200
|
+
|
|
201
|
+
1. **Check running agents** with `get_runs_summary` to see current activity
|
|
202
|
+
2. **Verify agent status** with `get_agent`
|
|
203
|
+
3. **Validate input parameters** match what the agent expects
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
### Run stuck in "Starting" or "Queuing"
|
|
208
|
+
|
|
209
|
+
**Cause:** Agent is waiting for resources or execution slot.
|
|
210
|
+
|
|
211
|
+
**Solutions:**
|
|
212
|
+
|
|
213
|
+
1. **Wait** - high-traffic periods may cause delays
|
|
214
|
+
2. **Check credits balance** with `get_credits_balance`
|
|
215
|
+
3. **Stop other running agents** if you've hit your concurrency limit
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
### Agent completes but no files generated
|
|
220
|
+
|
|
221
|
+
**Cause:** Agent didn't extract any data, or export is misconfigured.
|
|
222
|
+
|
|
223
|
+
**Solutions:**
|
|
224
|
+
|
|
225
|
+
1. **Check run details** with `get_run_status` for `recordsExtracted` count
|
|
226
|
+
2. **Review agent configuration** in the Control Center
|
|
227
|
+
3. **Check for errors** with `get_run_diagnostics`
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
### Synchronous run times out
|
|
232
|
+
|
|
233
|
+
**Error:**
|
|
234
|
+
```
|
|
235
|
+
Error: Timeout waiting for agent to complete
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
**Cause:** Agent took longer than the specified timeout (default: 60 seconds).
|
|
239
|
+
|
|
240
|
+
**Solutions:**
|
|
241
|
+
|
|
242
|
+
1. **Increase the timeout** value (up to 3600 seconds max)
|
|
243
|
+
2. **Use async mode** instead and poll with `get_run_status`
|
|
244
|
+
3. **Optimize the agent** to run faster
|
|
245
|
+
|
|
246
|
+
Example with increased timeout:
|
|
247
|
+
```
|
|
248
|
+
Run agent 123 synchronously with a 5 minute timeout
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## MCP Client Issues
|
|
254
|
+
|
|
255
|
+
### MCP server not starting
|
|
256
|
+
|
|
257
|
+
**Cause:** Node.js not installed or version too old.
|
|
258
|
+
|
|
259
|
+
**Solutions:**
|
|
260
|
+
|
|
261
|
+
1. **Install Node.js 18+** from [nodejs.org](https://nodejs.org/)
|
|
262
|
+
2. **Verify installation:** `node --version`
|
|
263
|
+
3. **Check npm is working:** `npm --version`
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
### Tools not appearing in MCP client
|
|
268
|
+
|
|
269
|
+
**Cause:** Server failed to start or configuration is incorrect.
|
|
270
|
+
|
|
271
|
+
**Solutions:**
|
|
272
|
+
|
|
273
|
+
1. **Check the MCP client logs** for error messages
|
|
274
|
+
2. **Verify your JSON configuration** is valid (no trailing commas, proper quotes)
|
|
275
|
+
3. **Restart the MCP client** after changing configuration
|
|
276
|
+
4. **Test manually:** Run `npx sequentum-mcp` in terminal to see if it starts
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
### "Unknown tool" error
|
|
281
|
+
|
|
282
|
+
**Error:**
|
|
283
|
+
```
|
|
284
|
+
Error: Unknown tool: tool_name
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Cause:** You're trying to call a tool that doesn't exist.
|
|
288
|
+
|
|
289
|
+
**Solution:** Check the [Tool Reference](./tool-reference.md) for the correct tool names.
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## Getting Help
|
|
294
|
+
|
|
295
|
+
If you're still experiencing issues:
|
|
296
|
+
|
|
297
|
+
1. **Check the logs** - the MCP server outputs debug information to stderr
|
|
298
|
+
2. **Review the documentation:**
|
|
299
|
+
- [Tool Reference](./tool-reference.md)
|
|
300
|
+
- [Sequentum API Documentation](https://dashboard.sequentum.com/api-docs/index.html)
|
|
301
|
+
3. **Contact Sequentum Support:**
|
|
302
|
+
- [Sequentum Dashboard](https://dashboard.sequentum.com) - use the Help button
|
|
303
|
+
- Email: support@sequentum.com
|
|
304
|
+
|
|
305
|
+
### Reporting Bugs
|
|
306
|
+
|
|
307
|
+
When reporting issues, please include:
|
|
308
|
+
|
|
309
|
+
1. **Error message** (full text)
|
|
310
|
+
2. **MCP client** you're using (Claude Desktop, Cursor, etc.)
|
|
311
|
+
3. **Operating system** and version
|
|
312
|
+
4. **Node.js version** (`node --version`)
|
|
313
|
+
5. **Steps to reproduce** the issue
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sequentum-mcp",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "MCP Server for Sequentum Web Scraping API - Enables AI assistants to interact with Sequentum agents",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"bin": {
|
|
9
|
+
"sequentum-mcp": "dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"start": "node dist/index.js",
|
|
14
|
+
"dev": "tsx src/index.ts",
|
|
15
|
+
"clean": "rimraf dist",
|
|
16
|
+
"prepare": "npm run build",
|
|
17
|
+
"test": "vitest run",
|
|
18
|
+
"test:watch": "vitest",
|
|
19
|
+
"test:coverage": "vitest run --coverage"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"mcp",
|
|
23
|
+
"model-context-protocol",
|
|
24
|
+
"sequentum",
|
|
25
|
+
"web-scraping",
|
|
26
|
+
"ai",
|
|
27
|
+
"automation"
|
|
28
|
+
],
|
|
29
|
+
"author": "Sequentum",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/Sequentum/sequentum-mcp.git"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/Sequentum/sequentum-mcp/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/Sequentum/sequentum-mcp#readme",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@modelcontextprotocol/sdk": "^1.0.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^20.10.0",
|
|
44
|
+
"@vitest/coverage-v8": "^3.0.0",
|
|
45
|
+
"rimraf": "^5.0.5",
|
|
46
|
+
"tsx": "^4.7.0",
|
|
47
|
+
"typescript": "^5.3.3",
|
|
48
|
+
"vitest": "^3.0.0"
|
|
49
|
+
},
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=18.0.0"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"README.md",
|
|
56
|
+
"LICENSE",
|
|
57
|
+
"docs",
|
|
58
|
+
"CHANGELOG.md"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|