snow-flow 1.2.3 → 1.2.4
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.
|
@@ -66,10 +66,12 @@ class BaseMCPServer {
|
|
|
66
66
|
let metrics = this.toolMetrics.get(name) || { calls: 0, totalTime: 0, errors: 0 };
|
|
67
67
|
metrics.calls++;
|
|
68
68
|
try {
|
|
69
|
-
// Validate authentication first
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
// Validate authentication first (skip if not required)
|
|
70
|
+
if (this.config.requiresAuth !== false) {
|
|
71
|
+
const authResult = await this.validateAuth();
|
|
72
|
+
if (!authResult.success) {
|
|
73
|
+
throw new types_js_1.McpError(types_js_1.ErrorCode.InvalidRequest, `Authentication failed: ${authResult.error}`);
|
|
74
|
+
}
|
|
73
75
|
}
|
|
74
76
|
// Execute tool with retry logic
|
|
75
77
|
const result = await this.executeWithRetry(name, args);
|
|
@@ -91,6 +93,10 @@ class BaseMCPServer {
|
|
|
91
93
|
* Setup authentication with automatic token refresh
|
|
92
94
|
*/
|
|
93
95
|
setupAuthentication() {
|
|
96
|
+
// Skip authentication setup if not required
|
|
97
|
+
if (this.config.requiresAuth === false) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
94
100
|
// Check auth every 5 minutes
|
|
95
101
|
this.authCheckInterval = setInterval(async () => {
|
|
96
102
|
try {
|
|
@@ -305,10 +311,12 @@ class BaseMCPServer {
|
|
|
305
311
|
*/
|
|
306
312
|
async start() {
|
|
307
313
|
this.logger.info(`Starting ${this.config.name} v${this.config.version}`);
|
|
308
|
-
// Validate initial connection
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
314
|
+
// Validate initial connection (skip if not required)
|
|
315
|
+
if (this.config.requiresAuth !== false) {
|
|
316
|
+
const authResult = await this.validateAuth();
|
|
317
|
+
if (!authResult.success) {
|
|
318
|
+
this.logger.warn('Starting without authentication - some features may be limited');
|
|
319
|
+
}
|
|
312
320
|
}
|
|
313
321
|
await this.server.connect(this.transport);
|
|
314
322
|
this.logger.info('MCP server started successfully');
|
|
@@ -48,7 +48,8 @@ class ServiceNowMemoryMCP extends base_mcp_server_1.BaseMCPServer {
|
|
|
48
48
|
const config = {
|
|
49
49
|
name: 'servicenow-memory',
|
|
50
50
|
version: '1.0.0',
|
|
51
|
-
description: 'Memory and todo management for ServiceNow multi-agent coordination'
|
|
51
|
+
description: 'Memory and todo management for ServiceNow multi-agent coordination',
|
|
52
|
+
requiresAuth: false // Memory server doesn't need ServiceNow authentication
|
|
52
53
|
};
|
|
53
54
|
super(config);
|
|
54
55
|
this.config = config;
|
package/dist/version.js
CHANGED
|
@@ -7,12 +7,19 @@ exports.VERSION_INFO = exports.VERSION = void 0;
|
|
|
7
7
|
exports.getVersionString = getVersionString;
|
|
8
8
|
exports.getLatestFeatures = getLatestFeatures;
|
|
9
9
|
exports.isLatestVersion = isLatestVersion;
|
|
10
|
-
exports.VERSION = '1.2.
|
|
10
|
+
exports.VERSION = '1.2.4';
|
|
11
11
|
exports.VERSION_INFO = {
|
|
12
12
|
version: exports.VERSION,
|
|
13
13
|
name: 'Snow-Flow',
|
|
14
14
|
description: 'ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development',
|
|
15
15
|
features: {
|
|
16
|
+
'1.2.4': [
|
|
17
|
+
'🔐 MEMORY AUTH FIX: Fixed authentication error in servicenow-memory MCP server',
|
|
18
|
+
'🏗️ ARCHITECTURE IMPROVEMENT: Added requiresAuth flag to BaseMCPServer for non-ServiceNow servers',
|
|
19
|
+
'💾 MEMORY INDEPENDENCE: Memory server no longer requires ServiceNow authentication',
|
|
20
|
+
'⚡ PERFORMANCE: Faster startup for memory-only operations without auth validation',
|
|
21
|
+
'🛡️ ERROR HANDLING: Eliminated unnecessary authentication failures for local-only servers'
|
|
22
|
+
],
|
|
16
23
|
'1.2.3': [
|
|
17
24
|
'🔐 AUTHENTICATION FIX: Resolved MCP authentication failure due to environment variable mismatch',
|
|
18
25
|
'🔧 CONFIG ALIGNMENT: Fixed discrepancy between .env file and MCP configuration files',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snow-flow",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "ServiceNow Queen Agent - Hive-Mind Intelligence for ServiceNow Development inspired by claude-flow. Transform complex workflows into elegant one-command orchestration.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "commonjs",
|