Repository navigation
Expand file tree
/
Copy pathinstall.html
More file actions
406 lines (370 loc) · 15.3 KB
/
Copy pathinstall.html
File metadata and controls
406 lines (370 loc) · 15.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Generate per-client MCP config snippets for awesome-coolify-mcp — 19 tools, six prompts, multi-instance + Coolify Cloud. Client-side only." />
<title>Install — awesome-coolify-mcp</title>
<link rel="stylesheet" href="shared.css" />
</head>
<body>
<div class="page-shell">
<header class="mesh-hero">
<img class="mesh-hero__visual" src="assets/install-configurator-hero.png" alt="" aria-hidden="true" />
<div class="mesh-hero__scrim" aria-hidden="true"></div>
<div class="mesh-hero__inner">
<nav class="nav-bar">
<a href="index.html">← Landing</a>
<a href="https://github.com/clezcoding/awesome-coolify/blob/main/README.md">README</a>
<a href="mcp.example.json">mcp.example.json</a>
</nav>
<p class="eyebrow">Install configurator</p>
<h1 class="display-title">awesome-coolify-mcp</h1>
<p class="lead">Generate per-client MCP config snippets for awesome-coolify-mcp (19 tools · six prompts). Everything runs in your browser — no backend, no token logging.</p>
</div>
</header>
<main class="container">
<div class="notice">
<strong>Security:</strong> All generation happens locally in your browser. Your URL and token never leave this page.
Deeplinks default to placeholder credentials — use “Generate deeplink with my values” only when opening locally, not for sharing.
</div>
<div class="notice">
<strong>Coolify Cloud:</strong> Use a team-scoped token from <a href="https://app.coolify.io">app.coolify.io</a>. See <a href="en/cloud.md">docs/en/cloud.md</a> for registry setup and known limits.
</div>
<section id="skills" class="skills-command glass-elevated">
<h2 class="section-title">IDE skills (Cursor, Claude Code, Codex)</h2>
<p class="hint">Install workflow playbooks after the MCP server is connected. Optional: <code>npx skills add clezcoding/awesome-coolify --all</code></p>
<pre><code id="skills-install-cmd">npx skills add clezcoding/awesome-coolify -a cursor -a claude-code -a codex</code></pre>
<div class="btn-row">
<button type="button" class="btn" id="copy-skills-btn">Copy install command</button>
<a class="btn btn-secondary" href="en/setup.md">Open setup guide</a>
</div>
</section>
<form id="config-form" class="glass-elevated" novalidate>
<label for="coolify-url">COOLIFY_URL</label>
<p class="hint">Your Coolify base URL (e.g. https://coolify.example.com, no trailing slash)</p>
<input type="text" id="coolify-url" name="coolify-url" placeholder="https://coolify.example.com" autocomplete="off" />
<label for="coolify-token">COOLIFY_TOKEN</label>
<p class="hint">Coolify UI → Keys & Tokens → create an API token</p>
<input type="password" id="coolify-token" name="coolify-token" placeholder="YOUR_COOLIFY_API_TOKEN" autocomplete="off" />
<label for="client">MCP client</label>
<select id="client" name="client">
<option value="cursor">Cursor</option>
<option value="vscode">VS Code / GitHub Copilot</option>
<option value="claude-desktop">Claude Desktop</option>
<option value="claude-code">Claude Code</option>
<option value="windsurf">Windsurf</option>
<option value="opencode">OpenCode</option>
<option value="codex">Codex CLI</option>
<option value="gemini">Gemini CLI</option>
<option value="antigravity">Google Antigravity</option>
<option value="openclaw">OpenClaw</option>
<option value="hermes">Hermes Agent</option>
<option value="kimi">Kimi Code</option>
<option value="kilo">Kilo Code</option>
<option value="cline">Cline</option>
<option value="goose">Goose</option>
<option value="lmstudio">LM Studio</option>
</select>
<p class="hint" id="client-note"></p>
<div class="field-row">
<input type="checkbox" id="verify-ssl" checked />
<label for="verify-ssl">COOLIFY_VERIFY_SSL (default true)</label>
</div>
<label for="log-level">COOLIFY_MCP_LOG</label>
<select id="log-level">
<option value="info" selected>info</option>
<option value="debug">debug</option>
<option value="error">error</option>
</select>
<button type="submit" class="btn">Generate config</button>
</form>
<section class="output-section glass-elevated" id="output-section" hidden>
<h2 class="section-title">Config snippet</h2>
<pre><code id="config-output"></code></pre>
<button type="button" class="btn" id="copy-btn">Copy to clipboard</button>
<div class="deeplink-box">
<h2 class="section-title">One-click deeplinks</h2>
<p class="hint">Placeholder env by default. Fill the form above for real credentials.</p>
<div class="btn-row">
<a class="btn" id="cursor-deeplink" href="#">Add to Cursor</a>
<a class="btn btn-secondary" id="vscode-deeplink" href="#">Install in VS Code</a>
<button type="button" class="btn btn-secondary" id="deeplink-with-values">Generate deeplink with my values</button>
</div>
</div>
</section>
</main>
<footer class="site-footer">
<p>Primary command: <code>npx -y awesome-coolify-mcp</code></p>
<p style="margin-top:0.5rem;">
<a href="https://github.com/clezcoding/awesome-coolify">GitHub</a> ·
<a href="https://www.npmjs.com/package/awesome-coolify-mcp">npm</a> ·
MIT License
</p>
</footer>
</div>
<script>
const SERVER_NAME = 'awesome-coolify-mcp';
const PLACEHOLDER_URL = 'https://coolify.example.com';
const PLACEHOLDER_TOKEN = 'YOUR_COOLIFY_API_TOKEN';
const CLIENT_NOTES = {
'claude-desktop': 'D-18: No Claude Desktop mcpb packaging in Phase 7 — Claude Desktop = manual JSON paste or Pages configurator output only.',
};
function getEnvVars(useForm) {
const urlEl = document.getElementById('coolify-url');
const tokenEl = document.getElementById('coolify-token');
const sslEl = document.getElementById('verify-ssl');
const logEl = document.getElementById('log-level');
return {
COOLIFY_URL: useForm && urlEl.value.trim() ? urlEl.value.trim() : PLACEHOLDER_URL,
COOLIFY_TOKEN: useForm && tokenEl.value.trim() ? tokenEl.value.trim() : PLACEHOLDER_TOKEN,
COOLIFY_VERIFY_SSL: sslEl.checked ? 'true' : 'false',
COOLIFY_MCP_LOG: logEl.value,
};
}
function buildMcpServersJson(env) {
const cursorConfig = {
mcpServers: {
[SERVER_NAME]: {
command: 'npx',
args: ['-y', 'awesome-coolify-mcp'],
env: env,
},
},
};
return cursorConfig;
}
function generateCursorSnippet(env) {
return JSON.stringify(buildMcpServersJson(env), null, 2);
}
function generateClaudeCodeSnippet(env) {
const cfg = {
mcpServers: {
[SERVER_NAME]: {
type: 'stdio',
command: 'npx',
args: ['-y', 'awesome-coolify-mcp'],
env: env,
},
},
};
return JSON.stringify(cfg, null, 2);
}
// D-22 VS Code adapter: "inputs" array with ${input:coolify_url} / ${input:coolify_token}
function generateVsCodeSnippet(env) {
const cfg = {
inputs: [
{
type: 'promptString',
id: 'coolify_url',
description: 'Your Coolify instance URL (e.g., https://coolify.example.com)',
password: false,
},
{
type: 'promptString',
id: 'coolify_token',
description: 'Your Coolify API Token',
password: true,
},
],
servers: {
[SERVER_NAME]: {
command: 'npx',
args: ['-y', 'awesome-coolify-mcp'],
env: {
COOLIFY_URL: '${input:coolify_url}',
COOLIFY_TOKEN: '${input:coolify_token}',
COOLIFY_VERIFY_SSL: env.COOLIFY_VERIFY_SSL,
COOLIFY_MCP_LOG: env.COOLIFY_MCP_LOG,
},
},
},
};
return JSON.stringify(cfg, null, 2);
}
// D-22 OpenCode/Kilo adapter: "type": "local" with command array
function generateOpenCodeSnippet(env) {
const cfg = {
mcp: {
[SERVER_NAME]: {
type: 'local',
command: ['npx', '-y', 'awesome-coolify-mcp'],
enabled: true,
environment: env,
},
},
};
return JSON.stringify(cfg, null, 2);
}
function generateCodexSnippet(env) {
const lines = [
'[mcp_servers.awesome-coolify-mcp]',
'command = "npx"',
'args = ["-y", "awesome-coolify-mcp"]',
'enabled = true',
'',
'[mcp_servers.awesome-coolify-mcp.env]',
`COOLIFY_URL = "${env.COOLIFY_URL}"`,
`COOLIFY_TOKEN = "${env.COOLIFY_TOKEN}"`,
`COOLIFY_VERIFY_SSL = "${env.COOLIFY_VERIFY_SSL}"`,
`COOLIFY_MCP_LOG = "${env.COOLIFY_MCP_LOG}"`,
];
return lines.join('\n');
}
function generateHermesSnippet(env) {
const yaml = [
'mcp_servers:',
` ${SERVER_NAME}:`,
' command: "npx"',
' args: ["-y", "awesome-coolify-mcp"]',
' env:',
` COOLIFY_URL: "${env.COOLIFY_URL}"`,
` COOLIFY_TOKEN: "${env.COOLIFY_TOKEN}"`,
` COOLIFY_VERIFY_SSL: "${env.COOLIFY_VERIFY_SSL}"`,
` COOLIFY_MCP_LOG: "${env.COOLIFY_MCP_LOG}"`,
];
return yaml.join('\n');
}
function generateGooseSnippet(env) {
const yaml = [
'mcpServers:',
` ${SERVER_NAME}:`,
' command: "npx"',
' args: ["-y", "awesome-coolify-mcp"]',
' env:',
` COOLIFY_URL: "${env.COOLIFY_URL}"`,
` COOLIFY_TOKEN: "${env.COOLIFY_TOKEN}"`,
` COOLIFY_VERIFY_SSL: "${env.COOLIFY_VERIFY_SSL}"`,
` COOLIFY_MCP_LOG: "${env.COOLIFY_MCP_LOG}"`,
];
return yaml.join('\n');
}
function generateOpenClawSnippet(env) {
const jsonPart = JSON.stringify(
{
mcp: {
servers: {
[SERVER_NAME]: {
command: ['npx', '-y', 'awesome-coolify-mcp'],
environment: env,
},
},
},
},
null,
2,
);
const cliAlt = `openclaw mcp set ${SERVER_NAME} --command npx --args "-y" --args "awesome-coolify-mcp"`;
return jsonPart + '\n\n# Alternative CLI:\n# ' + cliAlt + '\n# mcp.servers shape in ~/.openclaw/openclaw.json';
}
const ADAPTERS = {
cursor: generateCursorSnippet,
vscode: generateVsCodeSnippet,
'claude-desktop': generateCursorSnippet,
'claude-code': generateClaudeCodeSnippet,
windsurf: generateCursorSnippet,
opencode: generateOpenCodeSnippet,
codex: generateCodexSnippet,
gemini: generateCursorSnippet,
antigravity: generateCursorSnippet,
openclaw: generateOpenClawSnippet,
hermes: generateHermesSnippet,
kimi: generateCursorSnippet,
kilo: generateOpenCodeSnippet,
cline: generateCursorSnippet,
goose: generateGooseSnippet,
lmstudio: generateCursorSnippet,
};
function generateCursorDeeplink(env) {
const config = {
[SERVER_NAME]: {
command: 'npx',
args: ['-y', 'awesome-coolify-mcp'],
env: env,
},
};
const b64 = btoa(JSON.stringify(config));
return `cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(SERVER_NAME)}&config=${b64}`;
}
function generateVsCodeDeeplink(env) {
const payload = {
inputs: [
{ type: 'promptString', id: 'coolify_url', description: 'Coolify URL', password: false },
{ type: 'promptString', id: 'coolify_token', description: 'Coolify API Token', password: true },
],
servers: {
[SERVER_NAME]: {
command: 'npx',
args: ['-y', 'awesome-coolify-mcp'],
env: {
COOLIFY_URL: env.COOLIFY_URL.includes('example') ? '${input:coolify_url}' : env.COOLIFY_URL,
COOLIFY_TOKEN: env.COOLIFY_TOKEN.includes('YOUR_') ? '${input:coolify_token}' : env.COOLIFY_TOKEN,
COOLIFY_VERIFY_SSL: env.COOLIFY_VERIFY_SSL,
COOLIFY_MCP_LOG: env.COOLIFY_MCP_LOG,
},
},
},
};
return `vscode:mcp/install?config=${encodeURIComponent(JSON.stringify(payload))}`;
}
function updateDeeplinks(useForm) {
const env = getEnvVars(useForm);
document.getElementById('cursor-deeplink').href = generateCursorDeeplink(env);
document.getElementById('vscode-deeplink').href = generateVsCodeDeeplink(env);
}
function applyClientFromHash() {
const hash = window.location.hash.slice(1);
if (!hash.startsWith('client=')) return;
const slug = hash.slice('client='.length);
const select = document.getElementById('client');
if ([...select.options].some((o) => o.value === slug)) {
select.value = slug;
updateClientNote();
}
}
function updateClientNote() {
const client = document.getElementById('client').value;
const note = document.getElementById('client-note');
note.textContent = CLIENT_NOTES[client] || '';
}
document.getElementById('client').addEventListener('change', updateClientNote);
document.getElementById('config-form').addEventListener('submit', (e) => {
e.preventDefault();
const client = document.getElementById('client').value;
const env = getEnvVars(true);
const adapter = ADAPTERS[client] || generateCursorSnippet;
const snippet = adapter(env);
document.getElementById('config-output').textContent = snippet;
document.getElementById('output-section').hidden = false;
updateDeeplinks(false);
});
document.getElementById('copy-btn').addEventListener('click', () => {
const text = document.getElementById('config-output').textContent;
navigator.clipboard.writeText(text).catch(() => {
const ta = document.createElement('textarea');
ta.value = text;
document.body.appendChild(ta);
ta.select();
document.execCommand('copy');
document.body.removeChild(ta);
});
});
document.getElementById('copy-skills-btn').addEventListener('click', () => {
const text = document.getElementById('skills-install-cmd').textContent;
navigator.clipboard.writeText(text).then(() => {
const btn = document.getElementById('copy-skills-btn');
const prev = btn.textContent;
btn.textContent = 'Copied';
setTimeout(() => { btn.textContent = prev; }, 1600);
}).catch(() => {
alert('Could not copy — select the command and copy manually.');
});
});
document.getElementById('deeplink-with-values').addEventListener('click', () => {
updateDeeplinks(true);
});
applyClientFromHash();
updateClientNote();
</script>
</body>
</html>