@masonator/coolify-mcp 0.1.17 → 0.1.18

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.
@@ -5,10 +5,11 @@ import { z } from 'zod';
5
5
  import { DatabaseResources, DeploymentResources, ApplicationResources, ServiceResources, } from '../resources/index.js';
6
6
  export class CoolifyMcpServer {
7
7
  constructor(config) {
8
+ console.debug('[CoolifyMCP] Initializing server with config:', JSON.stringify(config, null, 2));
8
9
  this.client = new CoolifyClient(config);
9
10
  this.server = new Server({
10
11
  name: 'coolify',
11
- version: '0.1.16',
12
+ version: '0.1.17',
12
13
  }, {
13
14
  capabilities: {
14
15
  tools: {
@@ -42,7 +43,9 @@ export class CoolifyMcpServer {
42
43
  this.setupHandlers();
43
44
  }
44
45
  setupHandlers() {
46
+ console.debug('[CoolifyMCP] Setting up request handlers');
45
47
  this.server.setRequestHandler(ListToolsRequestSchema, async () => {
48
+ console.debug('[CoolifyMCP] Handling ListTools request');
46
49
  return {
47
50
  tools: [
48
51
  {
@@ -574,8 +577,18 @@ export class CoolifyMcpServer {
574
577
  });
575
578
  }
576
579
  async start(transport) {
577
- await this.client.validateConnection();
578
- await this.server.connect(transport);
580
+ console.debug('[CoolifyMCP] Starting server...');
581
+ try {
582
+ console.debug('[CoolifyMCP] Validating connection...');
583
+ await this.client.validateConnection();
584
+ console.debug('[CoolifyMCP] Connection validated, connecting transport...');
585
+ await this.server.connect(transport);
586
+ console.debug('[CoolifyMCP] Server started successfully');
587
+ }
588
+ catch (error) {
589
+ console.error('[CoolifyMCP] Error starting server:', error);
590
+ throw error;
591
+ }
579
592
  }
580
593
  async list_servers() {
581
594
  return this.client.listServers();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@masonator/coolify-mcp",
3
3
  "scope": "@masonator",
4
- "version": "0.1.17",
4
+ "version": "0.1.18",
5
5
  "description": "MCP server implementation for Coolify",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",