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 +2 -2
- package/dist/client.d.ts +1 -0
- package/dist/client.js +7 -0
- package/package.json +1 -1
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
|
-
//
|
|
73
|
-
|
|
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
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, {
|