cellium-mcp-client 2.0.4 → 2.0.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.
Files changed (2) hide show
  1. package/dist/client.js +7 -7
  2. package/package.json +1 -1
package/dist/client.js CHANGED
@@ -362,14 +362,14 @@ class CelliumMCPClient {
362
362
  throw new Error('Cannot connect to remote Cellium server');
363
363
  }
364
364
  }
365
- const httpStreamEndpoint = this.config.endpoint.replace('/sse', '/http-stream');
365
+ const endpoint = this.config.endpoint;
366
366
  const requestBody = {
367
367
  jsonrpc: '2.0',
368
368
  id: requestId,
369
369
  method,
370
370
  params
371
371
  };
372
- this.logDebug(`Making HTTP request to ${httpStreamEndpoint}`, {
372
+ this.logDebug(`Making HTTP request to ${endpoint}`, {
373
373
  requestId,
374
374
  method,
375
375
  bodySize: JSON.stringify(requestBody).length
@@ -377,7 +377,7 @@ class CelliumMCPClient {
377
377
  let response;
378
378
  let responseText;
379
379
  try {
380
- response = await fetch(httpStreamEndpoint, {
380
+ response = await fetch(endpoint, {
381
381
  method: 'POST',
382
382
  headers: {
383
383
  'Authorization': `Bearer ${this.config.token}`,
@@ -443,7 +443,7 @@ class CelliumMCPClient {
443
443
  requestId,
444
444
  method,
445
445
  duration,
446
- endpoint: httpStreamEndpoint
446
+ endpoint: endpoint
447
447
  }, 'HTTP request to remote server failed');
448
448
  this.isConnected = false; // Mark as disconnected on error
449
449
  throw error;
@@ -607,12 +607,12 @@ class CelliumMCPClient {
607
607
  }
608
608
  async testConnection() {
609
609
  const startTime = Date.now();
610
- const httpStreamEndpoint = this.config.endpoint.replace('/sse', '/http-stream');
610
+ const endpoint = this.config.endpoint;
611
611
  this.logDebug('Testing connection', {
612
- endpoint: httpStreamEndpoint,
612
+ endpoint: endpoint,
613
613
  hasToken: !!this.config.token
614
614
  });
615
- const response = await fetch(httpStreamEndpoint, {
615
+ const response = await fetch(endpoint, {
616
616
  method: 'POST',
617
617
  headers: {
618
618
  'Authorization': `Bearer ${this.config.token}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cellium-mcp-client",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "MCP client for connecting to remote Cellium processor server",
5
5
  "main": "dist/index.js",
6
6
  "bin": {