crawlforge-mcp-server 3.0.1 → 3.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.
- package/CLAUDE.md +63 -19
- package/README.md +19 -15
- package/package.json +6 -6
- package/server.js +38 -21
- package/setup.js +5 -5
- package/src/core/ActionExecutor.js +16 -1
- package/src/core/AuthManager.js +5 -4
- package/src/core/ChangeTracker.js +5 -963
- package/src/core/WebhookDispatcher.js +4 -0
package/src/core/AuthManager.js
CHANGED
|
@@ -9,21 +9,22 @@ import path from 'path';
|
|
|
9
9
|
|
|
10
10
|
class AuthManager {
|
|
11
11
|
constructor() {
|
|
12
|
-
this.apiEndpoint = process.env.CRAWLFORGE_API_URL || 'https://api.crawlforge.
|
|
12
|
+
this.apiEndpoint = process.env.CRAWLFORGE_API_URL || 'https://api.crawlforge.dev';
|
|
13
13
|
this.configPath = path.join(process.env.HOME || process.env.USERPROFILE, '.crawlforge', 'config.json');
|
|
14
14
|
this.config = null;
|
|
15
15
|
this.creditCache = new Map();
|
|
16
16
|
this.lastCreditCheck = null;
|
|
17
17
|
this.CREDIT_CHECK_INTERVAL = 60000; // Check credits every minute max
|
|
18
18
|
this.initialized = false;
|
|
19
|
-
|
|
19
|
+
// NOTE: Don't read creator mode in constructor - it's set dynamically in server.js
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Check if running in creator mode (unlimited access, no API required)
|
|
24
|
+
* Reads from environment variable dynamically to ensure proper initialization order
|
|
24
25
|
*/
|
|
25
26
|
isCreatorMode() {
|
|
26
|
-
return
|
|
27
|
+
return process.env.CRAWLFORGE_CREATOR_MODE === 'true';
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
/**
|
|
@@ -95,7 +96,7 @@ class AuthManager {
|
|
|
95
96
|
|
|
96
97
|
if (!apiKey) {
|
|
97
98
|
console.log('❌ API key is required for setup');
|
|
98
|
-
console.log('Get your API key from: https://crawlforge.
|
|
99
|
+
console.log('Get your API key from: https://www.crawlforge.dev/dashboard/api-keys');
|
|
99
100
|
return false;
|
|
100
101
|
}
|
|
101
102
|
|