@mks2508/coolify-mks-cli-mcp 0.1.0

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 (42) hide show
  1. package/dist/cli/index.js +11788 -0
  2. package/dist/coolify/config.d.ts +64 -0
  3. package/dist/coolify/config.d.ts.map +1 -0
  4. package/dist/coolify/index.d.ts +201 -0
  5. package/dist/coolify/index.d.ts.map +1 -0
  6. package/dist/coolify/types.d.ts +282 -0
  7. package/dist/coolify/types.d.ts.map +1 -0
  8. package/dist/index.cjs +29150 -0
  9. package/dist/index.cjs.map +1 -0
  10. package/dist/index.d.ts +14 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +29127 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/server/sse.d.ts +11 -0
  15. package/dist/server/sse.d.ts.map +1 -0
  16. package/dist/server/sse.js +32 -0
  17. package/dist/server/stdio.d.ts +13 -0
  18. package/dist/server/stdio.d.ts.map +1 -0
  19. package/dist/server/stdio.js +18326 -0
  20. package/dist/tools/definitions.d.ts +13 -0
  21. package/dist/tools/definitions.d.ts.map +1 -0
  22. package/dist/tools/handlers.d.ts +19 -0
  23. package/dist/tools/handlers.d.ts.map +1 -0
  24. package/dist/utils/format.d.ts +38 -0
  25. package/dist/utils/format.d.ts.map +1 -0
  26. package/package.json +67 -0
  27. package/src/cli/commands/config.ts +83 -0
  28. package/src/cli/commands/deploy.ts +56 -0
  29. package/src/cli/commands/env.ts +60 -0
  30. package/src/cli/commands/list.ts +63 -0
  31. package/src/cli/commands/logs.ts +49 -0
  32. package/src/cli/commands/servers.ts +52 -0
  33. package/src/cli/index.ts +81 -0
  34. package/src/coolify/config.ts +113 -0
  35. package/src/coolify/index.ts +688 -0
  36. package/src/coolify/types.ts +297 -0
  37. package/src/index.ts +864 -0
  38. package/src/server/sse.ts +50 -0
  39. package/src/server/stdio.ts +52 -0
  40. package/src/tools/definitions.ts +435 -0
  41. package/src/tools/handlers.ts +605 -0
  42. package/src/utils/format.ts +104 -0
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Coolify MCP Server - SSE Transport.
4
+ *
5
+ * Entry point for running the MCP server with SSE transport.
6
+ * This is useful for web integrations and testing.
7
+ *
8
+ * @module
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=sse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sse.d.ts","sourceRoot":"","sources":["../../src/server/sse.ts"],"names":[],"mappings":";AACA;;;;;;;GAOG"}
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/server/sse.ts
4
+ import { createServer } from "node:http";
5
+ var PORT = process.env.PORT || 3000;
6
+ var httpServer = createServer((req, res) => {
7
+ res.setHeader("Access-Control-Allow-Origin", "*");
8
+ res.setHeader("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
9
+ res.setHeader("Access-Control-Allow-Headers", "Content-Type");
10
+ if (req.method === "OPTIONS") {
11
+ res.writeHead(200);
12
+ res.end();
13
+ return;
14
+ }
15
+ if (req.url === "/health") {
16
+ res.writeHead(200, { "Content-Type": "application/json" });
17
+ res.end(JSON.stringify({ status: "healthy", server: "coolify-mcp" }));
18
+ return;
19
+ }
20
+ if (req.url === "/sse") {
21
+ res.writeHead(200, { "Content-Type": "application/json" });
22
+ res.end(JSON.stringify({ message: "SSE not yet implemented. Use stdio transport." }));
23
+ return;
24
+ }
25
+ res.writeHead(404, { "Content-Type": "application/json" });
26
+ res.end(JSON.stringify({ error: "Not found" }));
27
+ });
28
+ httpServer.listen(PORT, () => {
29
+ console.warn(`Coolify MCP Server (SSE placeholder) listening on port ${PORT}`);
30
+ console.warn(`Health check: http://localhost:${PORT}/health`);
31
+ console.warn(`Note: SSE transport not yet implemented. Use stdio for Claude Desktop.`);
32
+ });
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Coolify MCP Server - Stdio Transport.
4
+ *
5
+ * Entry point for running the MCP server with stdio transport.
6
+ * This is the standard way to use the MCP server with Claude Desktop.
7
+ *
8
+ * Uses @modelcontextprotocol/sdk for proper MCP stdio server implementation.
9
+ *
10
+ * @module
11
+ */
12
+ export {};
13
+ //# sourceMappingURL=stdio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/server/stdio.ts"],"names":[],"mappings":";AACA;;;;;;;;;GASG"}