indra-mcp 0.1.3 → 0.1.5
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/build/index.js +8 -3
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -24,7 +24,7 @@ function logDebug(message) {
|
|
|
24
24
|
logDebug('--------------------------------------------------');
|
|
25
25
|
logDebug('Indra MCP Broker initializing Step 3 Edge client...');
|
|
26
26
|
// Resolve Edge worker URL
|
|
27
|
-
const edgeUrl = process.env.INDRA_EDGE_URL || '
|
|
27
|
+
const edgeUrl = process.env.INDRA_EDGE_URL || 'https://indra-edge-platform.dan-hollinger.workers.dev';
|
|
28
28
|
logDebug(`[EDGE] Targeting Edge Worker at: ${edgeUrl}`);
|
|
29
29
|
// Parse --config argument
|
|
30
30
|
const cliArgs = process.argv.slice(2);
|
|
@@ -86,7 +86,6 @@ function runSetup() {
|
|
|
86
86
|
console.log(' Arguments:');
|
|
87
87
|
console.log(` --config ${defaultMcpConfigPath}`);
|
|
88
88
|
console.log(' Environment Variables:');
|
|
89
|
-
console.log(' INDRA_EDGE_URL : <Your Edge Worker endpoint URL>');
|
|
90
89
|
console.log(' INDRA_AGENT_NAME : <Descriptive agent name, e.g. "Claude Desktop">');
|
|
91
90
|
console.log('==================================================\n');
|
|
92
91
|
}
|
|
@@ -116,7 +115,13 @@ catch (err) {
|
|
|
116
115
|
}
|
|
117
116
|
let activeTask = process.env.INDRA_TASK || "Initialize Session";
|
|
118
117
|
let missionToken = "";
|
|
119
|
-
|
|
118
|
+
let agentName = process.env.INDRA_AGENT_NAME || "dev-agent";
|
|
119
|
+
for (let i = 0; i < cliArgs.length; i++) {
|
|
120
|
+
if (cliArgs[i] === '--agent' && i + 1 < cliArgs.length) {
|
|
121
|
+
agentName = cliArgs[i + 1];
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
120
125
|
// Perform cryptographic Edge session handshake during startup
|
|
121
126
|
async function startSession() {
|
|
122
127
|
logDebug('[HANDSHAKE] Preparing cryptographic session handshake...');
|