cellium-mcp-client 1.0.1 → 1.0.2

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/dist/cli.js CHANGED
@@ -69,8 +69,8 @@ async function main() {
69
69
  process.exit(0);
70
70
  });
71
71
  await client.connect();
72
- // Keep the process alive
73
- process.stdin.resume();
72
+ // Start the MCP server and keep process alive for stdio communication
73
+ await client.serve();
74
74
  }
75
75
  catch (error) {
76
76
  logger.error({ error }, 'Fatal error');
package/dist/client.d.ts CHANGED
@@ -16,6 +16,7 @@ export declare class CelliumMCPClient {
16
16
  private setupServer;
17
17
  private makeHttpRequest;
18
18
  connect(): Promise<void>;
19
+ serve(): Promise<void>;
19
20
  private testConnection;
20
21
  private handleConnectionError;
21
22
  private reconnect;
package/dist/client.js CHANGED
@@ -161,6 +161,13 @@ class CelliumMCPClient {
161
161
  throw error;
162
162
  }
163
163
  }
164
+ async serve() {
165
+ // The MCP server is already connected via stdio in connect()
166
+ // This method just keeps the process alive indefinitely
167
+ return new Promise(() => {
168
+ // Never resolve - keep process alive for MCP communication
169
+ });
170
+ }
164
171
  async testConnection() {
165
172
  const mcpEndpoint = this.config.endpoint.replace('/sse', '/mcp');
166
173
  const response = await fetch(mcpEndpoint, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cellium-mcp-client",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "MCP client for connecting to remote Cellium processor server",
5
5
  "main": "dist/index.js",
6
6
  "bin": {