clipcloud-mcp 0.0.0-stage → 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.
- package/LICENSE +21 -0
- package/README.md +282 -2
- package/dist/clipcloud.js +374 -0
- package/dist/http.js +235 -0
- package/dist/index.js +43 -0
- package/dist/server.js +546 -0
- package/integration/GUIDE.md +69 -0
- package/integration/clipcloud.mjs +84 -0
- package/integration/clipcloud.php +123 -0
- package/integration/clipcloud.py +95 -0
- package/integration/curl.sh +29 -0
- package/package.json +56 -4
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// ClipCloud API client for Node.js 18+ (built-in fetch, no dependencies).
|
|
2
|
+
// Needs the CLIPCLOUD_API_KEY environment variable. Run this on a server, never in a browser.
|
|
3
|
+
import { writeFile } from 'node:fs/promises';
|
|
4
|
+
|
|
5
|
+
const BASE = process.env.CLIPCLOUD_BASE_URL || 'https://clipcloud.clipai.pro';
|
|
6
|
+
const SOFT_ID = undefined; // your soft_id number if you joined the referral program, for example 1742
|
|
7
|
+
|
|
8
|
+
function headers() {
|
|
9
|
+
const key = process.env.CLIPCLOUD_API_KEY;
|
|
10
|
+
if (!key) throw new Error('CLIPCLOUD_API_KEY is not set');
|
|
11
|
+
return { Authorization: 'Bearer ' + key, 'Content-Type': 'application/json' };
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
15
|
+
|
|
16
|
+
async function json(res) {
|
|
17
|
+
try {
|
|
18
|
+
return await res.json();
|
|
19
|
+
} catch {
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Starts a generation and returns its creation_id. Save the id before waiting.
|
|
25
|
+
// If this throws a network error, the generation may still have started: do not call it again automatically.
|
|
26
|
+
export async function startImage(prompt, styleName = 'HD-HQ', options = {}) {
|
|
27
|
+
const body = { prompt, styleName, ...options };
|
|
28
|
+
if (SOFT_ID !== undefined) body.soft_id = SOFT_ID;
|
|
29
|
+
const res = await fetch(BASE + '/api/creation', { method: 'POST', headers: headers(), body: JSON.stringify(body) });
|
|
30
|
+
const data = await json(res);
|
|
31
|
+
if (!res.ok || !data.success || !data.creation_id) {
|
|
32
|
+
throw new Error('ClipCloud ' + res.status + ': ' + (data.message || 'no creation_id in the answer'));
|
|
33
|
+
}
|
|
34
|
+
return data.creation_id;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Price of a request in credits (1 credit = $0.0025). Nothing is generated or charged.
|
|
38
|
+
export async function checkCost(styleName = 'HD-HQ', count = 1) {
|
|
39
|
+
const body = { prompt: 'price check', styleName, count, check_cost: true };
|
|
40
|
+
const res = await fetch(BASE + '/api/creation', { method: 'POST', headers: headers(), body: JSON.stringify(body) });
|
|
41
|
+
const data = await json(res);
|
|
42
|
+
if (!res.ok || !data.success) throw new Error('ClipCloud ' + res.status + ': ' + (data.message || 'unexpected answer'));
|
|
43
|
+
return data.cost;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Checks the generation every 30 seconds until it is finished.
|
|
47
|
+
// Returns { urls, cost, freeCost, censored }. urls can be empty if the content filter blocked everything.
|
|
48
|
+
export async function waitForImage(creationId, { intervalMs = 30_000, timeoutMs = 30 * 60_000 } = {}) {
|
|
49
|
+
const giveUpAt = Date.now() + timeoutMs;
|
|
50
|
+
while (Date.now() < giveUpAt) {
|
|
51
|
+
await sleep(intervalMs);
|
|
52
|
+
let res;
|
|
53
|
+
try {
|
|
54
|
+
res = await fetch(BASE + '/api/creation/' + encodeURIComponent(creationId), { headers: headers() });
|
|
55
|
+
} catch {
|
|
56
|
+
continue; // network error: check the same generation again
|
|
57
|
+
}
|
|
58
|
+
if ([429, 502, 503, 504].includes(res.status)) continue; // temporary
|
|
59
|
+
const data = await json(res);
|
|
60
|
+
if (res.ok && data.censored > 0 && !data.success) {
|
|
61
|
+
return { urls: [], cost: data.cost, freeCost: data.free_cost, censored: data.censored }; // all images blocked
|
|
62
|
+
}
|
|
63
|
+
if (!res.ok || !data.success) {
|
|
64
|
+
// 500: unknown id or a server error. Stop and report; do not start a new generation.
|
|
65
|
+
throw new Error('ClipCloud ' + res.status + ': ' + (data.message || 'unexpected answer') + ' (creation_id ' + creationId + ')');
|
|
66
|
+
}
|
|
67
|
+
if (Array.isArray(data.results)) {
|
|
68
|
+
return { urls: data.results, cost: data.cost, freeCost: data.free_cost, censored: data.censored || 0 };
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
throw new Error('ClipCloud generation ' + creationId + ' is not ready after ' + Math.round(timeoutMs / 60_000) + ' minutes');
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Downloads an image right away (the links are temporary) and saves it as a .webp file.
|
|
75
|
+
export async function saveImage(url, path) {
|
|
76
|
+
const res = await fetch(url);
|
|
77
|
+
if (!res.ok) throw new Error('Image download failed: ' + res.status + (res.status === 404 ? ' (the link has expired)' : ''));
|
|
78
|
+
await writeFile(path, Buffer.from(await res.arrayBuffer()));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Example:
|
|
82
|
+
// const id = await startImage('A cozy cabin in a snowy forest at dusk, warm light in the windows', 'HD-HQ');
|
|
83
|
+
// const { urls, censored } = await waitForImage(id);
|
|
84
|
+
// if (urls.length) await saveImage(urls[0], 'cabin.webp');
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
// ClipCloud API client for PHP 7.4+ (curl extension).
|
|
3
|
+
// Reads the CLIPCLOUD_API_KEY environment variable. Run this on a server; never print the key to a page.
|
|
4
|
+
|
|
5
|
+
const CLIPCLOUD_SOFT_ID = null; // your soft_id number if you joined the referral program, for example 1742
|
|
6
|
+
|
|
7
|
+
function clipcloud_base(): string
|
|
8
|
+
{
|
|
9
|
+
return getenv('CLIPCLOUD_BASE_URL') ?: 'https://clipcloud.clipai.pro';
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Sends a request. Returns [http status, decoded JSON or []]. Throws on network errors. */
|
|
13
|
+
function clipcloud_request(string $method, string $path, ?array $body = null): array
|
|
14
|
+
{
|
|
15
|
+
$key = getenv('CLIPCLOUD_API_KEY');
|
|
16
|
+
if (!$key) {
|
|
17
|
+
throw new RuntimeException('CLIPCLOUD_API_KEY is not set');
|
|
18
|
+
}
|
|
19
|
+
$ch = curl_init(clipcloud_base() . $path);
|
|
20
|
+
$headers = ['Authorization: Bearer ' . $key];
|
|
21
|
+
if ($body !== null) {
|
|
22
|
+
$headers[] = 'Content-Type: application/json';
|
|
23
|
+
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body));
|
|
24
|
+
}
|
|
25
|
+
curl_setopt_array($ch, [
|
|
26
|
+
CURLOPT_CUSTOMREQUEST => $method,
|
|
27
|
+
CURLOPT_HTTPHEADER => $headers,
|
|
28
|
+
CURLOPT_RETURNTRANSFER => true,
|
|
29
|
+
CURLOPT_TIMEOUT => 60,
|
|
30
|
+
]);
|
|
31
|
+
$raw = curl_exec($ch);
|
|
32
|
+
if ($raw === false) {
|
|
33
|
+
$error = curl_error($ch);
|
|
34
|
+
throw new RuntimeException('Could not reach ClipCloud: ' . $error);
|
|
35
|
+
}
|
|
36
|
+
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
|
|
37
|
+
$data = json_decode($raw, true);
|
|
38
|
+
return [$status, is_array($data) ? $data : []];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Starts a generation and returns its creation_id. Save the id before waiting.
|
|
43
|
+
* If this throws "Could not reach ClipCloud", the generation may still have started: do not call it again automatically.
|
|
44
|
+
*/
|
|
45
|
+
function clipcloud_start_image(string $prompt, string $styleName = 'HD-HQ', array $options = []): string
|
|
46
|
+
{
|
|
47
|
+
$body = array_merge(['prompt' => $prompt, 'styleName' => $styleName], $options);
|
|
48
|
+
if (CLIPCLOUD_SOFT_ID !== null) {
|
|
49
|
+
$body['soft_id'] = CLIPCLOUD_SOFT_ID;
|
|
50
|
+
}
|
|
51
|
+
[$status, $data] = clipcloud_request('POST', '/api/creation', $body);
|
|
52
|
+
if ($status !== 200 || empty($data['success']) || empty($data['creation_id'])) {
|
|
53
|
+
throw new RuntimeException('ClipCloud ' . $status . ': ' . ($data['message'] ?? 'no creation_id in the answer'));
|
|
54
|
+
}
|
|
55
|
+
return $data['creation_id'];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Price of a request in credits (1 credit = $0.0025). Nothing is generated or charged. */
|
|
59
|
+
function clipcloud_check_cost(string $styleName = 'HD-HQ', int $count = 1): float
|
|
60
|
+
{
|
|
61
|
+
[$status, $data] = clipcloud_request('POST', '/api/creation', [
|
|
62
|
+
'prompt' => 'price check', 'styleName' => $styleName, 'count' => $count, 'check_cost' => true,
|
|
63
|
+
]);
|
|
64
|
+
if ($status !== 200 || empty($data['success'])) {
|
|
65
|
+
throw new RuntimeException('ClipCloud ' . $status . ': ' . ($data['message'] ?? 'unexpected answer'));
|
|
66
|
+
}
|
|
67
|
+
return (float) $data['cost'];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Checks the generation every 30 seconds until it is finished.
|
|
72
|
+
* Returns ['urls' => [...], 'cost' => ?, 'free_cost' => ?, 'censored' => int]. urls can be empty if the content filter blocked everything.
|
|
73
|
+
* In a web request, call this from a background job (cron, queue), not while the visitor waits.
|
|
74
|
+
*/
|
|
75
|
+
function clipcloud_wait_for_image(string $creationId, int $interval = 30, int $timeout = 1800): array
|
|
76
|
+
{
|
|
77
|
+
$giveUpAt = time() + $timeout;
|
|
78
|
+
while (time() < $giveUpAt) {
|
|
79
|
+
sleep($interval);
|
|
80
|
+
try {
|
|
81
|
+
[$status, $data] = clipcloud_request('GET', '/api/creation/' . rawurlencode($creationId));
|
|
82
|
+
} catch (RuntimeException $e) {
|
|
83
|
+
continue; // network error: check the same generation again
|
|
84
|
+
}
|
|
85
|
+
if (in_array($status, [429, 502, 503, 504], true)) {
|
|
86
|
+
continue; // temporary
|
|
87
|
+
}
|
|
88
|
+
if ($status === 200 && empty($data['success']) && ($data['censored'] ?? 0) > 0) {
|
|
89
|
+
return ['urls' => [], 'cost' => $data['cost'] ?? null, 'free_cost' => $data['free_cost'] ?? null, 'censored' => $data['censored']]; // all images blocked
|
|
90
|
+
}
|
|
91
|
+
if ($status !== 200 || empty($data['success'])) {
|
|
92
|
+
// 500: unknown id or a server error. Stop and report; do not start a new generation.
|
|
93
|
+
throw new RuntimeException('ClipCloud ' . $status . ': ' . ($data['message'] ?? 'unexpected answer') . ' (creation_id ' . $creationId . ')');
|
|
94
|
+
}
|
|
95
|
+
if (isset($data['results']) && is_array($data['results'])) {
|
|
96
|
+
return [
|
|
97
|
+
'urls' => $data['results'],
|
|
98
|
+
'cost' => $data['cost'] ?? null,
|
|
99
|
+
'free_cost' => $data['free_cost'] ?? null,
|
|
100
|
+
'censored' => $data['censored'] ?? 0,
|
|
101
|
+
];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
throw new RuntimeException('ClipCloud generation ' . $creationId . ' is not ready after ' . intdiv($timeout, 60) . ' minutes');
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** Downloads an image right away (the links are temporary) and saves it as a .webp file. */
|
|
108
|
+
function clipcloud_save_image(string $url, string $path): void
|
|
109
|
+
{
|
|
110
|
+
$ch = curl_init($url);
|
|
111
|
+
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 120, CURLOPT_FOLLOWLOCATION => true]);
|
|
112
|
+
$data = curl_exec($ch);
|
|
113
|
+
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
|
|
114
|
+
if ($data === false || $status !== 200) {
|
|
115
|
+
throw new RuntimeException('Image download failed: ' . $status . ($status === 404 ? ' (the link has expired)' : ''));
|
|
116
|
+
}
|
|
117
|
+
file_put_contents($path, $data);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Example:
|
|
121
|
+
// $id = clipcloud_start_image('A cozy cabin in a snowy forest at dusk, warm light in the windows', 'HD-HQ');
|
|
122
|
+
// $result = clipcloud_wait_for_image($id);
|
|
123
|
+
// if ($result['urls']) clipcloud_save_image($result['urls'][0], 'cabin.webp');
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# ClipCloud API client for Python 3.8+. Needs: pip install requests
|
|
2
|
+
# Reads the CLIPCLOUD_API_KEY environment variable. Run this on a server, never in a browser.
|
|
3
|
+
import os
|
|
4
|
+
import time
|
|
5
|
+
from urllib.parse import quote
|
|
6
|
+
|
|
7
|
+
import requests
|
|
8
|
+
|
|
9
|
+
BASE = os.environ.get("CLIPCLOUD_BASE_URL") or "https://clipcloud.clipai.pro"
|
|
10
|
+
SOFT_ID = None # your soft_id number if you joined the referral program, for example 1742
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ClipCloudError(Exception):
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def _headers():
|
|
18
|
+
key = os.environ.get("CLIPCLOUD_API_KEY")
|
|
19
|
+
if not key:
|
|
20
|
+
raise ClipCloudError("CLIPCLOUD_API_KEY is not set")
|
|
21
|
+
return {"Authorization": "Bearer " + key}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _json(res):
|
|
25
|
+
try:
|
|
26
|
+
return res.json()
|
|
27
|
+
except ValueError:
|
|
28
|
+
return {}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def start_image(prompt, style_name="HD-HQ", **options):
|
|
32
|
+
"""Starts a generation and returns its creation_id. Save the id before waiting.
|
|
33
|
+
If this raises a network error, the generation may still have started: do not call it again automatically."""
|
|
34
|
+
body = {"prompt": prompt, "styleName": style_name, **options}
|
|
35
|
+
if SOFT_ID is not None:
|
|
36
|
+
body["soft_id"] = SOFT_ID
|
|
37
|
+
res = requests.post(BASE + "/api/creation", json=body, headers=_headers(), timeout=60)
|
|
38
|
+
data = _json(res)
|
|
39
|
+
if not res.ok or not data.get("success") or not data.get("creation_id"):
|
|
40
|
+
raise ClipCloudError("ClipCloud %s: %s" % (res.status_code, data.get("message") or "no creation_id in the answer"))
|
|
41
|
+
return data["creation_id"]
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def check_cost(style_name="HD-HQ", count=1):
|
|
45
|
+
"""Price of a request in credits (1 credit = $0.0025). Nothing is generated or charged."""
|
|
46
|
+
body = {"prompt": "price check", "styleName": style_name, "count": count, "check_cost": True}
|
|
47
|
+
res = requests.post(BASE + "/api/creation", json=body, headers=_headers(), timeout=60)
|
|
48
|
+
data = _json(res)
|
|
49
|
+
if not res.ok or not data.get("success"):
|
|
50
|
+
raise ClipCloudError("ClipCloud %s: %s" % (res.status_code, data.get("message") or "unexpected answer"))
|
|
51
|
+
return data["cost"]
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def wait_for_image(creation_id, interval=30, timeout=30 * 60):
|
|
55
|
+
"""Checks the generation every 30 seconds until it is finished.
|
|
56
|
+
Returns a dict with urls, cost, free_cost and censored. urls can be empty if the content filter blocked everything."""
|
|
57
|
+
give_up_at = time.monotonic() + timeout
|
|
58
|
+
while time.monotonic() < give_up_at:
|
|
59
|
+
time.sleep(interval)
|
|
60
|
+
try:
|
|
61
|
+
res = requests.get(BASE + "/api/creation/" + quote(creation_id, safe=""), headers=_headers(), timeout=60)
|
|
62
|
+
except requests.RequestException:
|
|
63
|
+
continue # network error: check the same generation again
|
|
64
|
+
if res.status_code in (429, 502, 503, 504):
|
|
65
|
+
continue # temporary
|
|
66
|
+
data = _json(res)
|
|
67
|
+
if res.ok and not data.get("success") and (data.get("censored") or 0) > 0:
|
|
68
|
+
return {"urls": [], "cost": data.get("cost"), "free_cost": data.get("free_cost"), "censored": data["censored"]} # all images blocked
|
|
69
|
+
if not res.ok or not data.get("success"):
|
|
70
|
+
# 500: unknown id or a server error. Stop and report; do not start a new generation.
|
|
71
|
+
raise ClipCloudError("ClipCloud %s: %s (creation_id %s)" % (res.status_code, data.get("message") or "unexpected answer", creation_id))
|
|
72
|
+
if isinstance(data.get("results"), list):
|
|
73
|
+
return {
|
|
74
|
+
"urls": data["results"],
|
|
75
|
+
"cost": data.get("cost"),
|
|
76
|
+
"free_cost": data.get("free_cost"),
|
|
77
|
+
"censored": data.get("censored") or 0,
|
|
78
|
+
}
|
|
79
|
+
raise ClipCloudError("ClipCloud generation %s is not ready after %d minutes" % (creation_id, timeout // 60))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
def save_image(url, path):
|
|
83
|
+
"""Downloads an image right away (the links are temporary) and saves it as a .webp file."""
|
|
84
|
+
res = requests.get(url, timeout=120)
|
|
85
|
+
if not res.ok:
|
|
86
|
+
raise ClipCloudError("Image download failed: %s%s" % (res.status_code, " (the link has expired)" if res.status_code == 404 else ""))
|
|
87
|
+
with open(path, "wb") as f:
|
|
88
|
+
f.write(res.content)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
# Example:
|
|
92
|
+
# creation_id = start_image("A cozy cabin in a snowy forest at dusk, warm light in the windows", "HD-HQ")
|
|
93
|
+
# result = wait_for_image(creation_id)
|
|
94
|
+
# if result["urls"]:
|
|
95
|
+
# save_image(result["urls"][0], "cabin.webp")
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# ClipCloud API with curl. Set the key first: export CLIPCLOUD_API_KEY=clip-...
|
|
2
|
+
|
|
3
|
+
# 1. Start a generation. The answer has the creation_id.
|
|
4
|
+
curl -s https://clipcloud.clipai.pro/api/creation \
|
|
5
|
+
-H "Authorization: Bearer $CLIPCLOUD_API_KEY" \
|
|
6
|
+
-H "Content-Type: application/json" \
|
|
7
|
+
-d '{"prompt": "A cozy cabin in a snowy forest at dusk, warm light in the windows", "styleName": "HD-HQ"}'
|
|
8
|
+
# {"success":true,"creation_id":"12345678-abcd-ef12-3456-7890abcdef12"}
|
|
9
|
+
|
|
10
|
+
# 2. Check it about every 30 seconds until the answer has "results".
|
|
11
|
+
curl -s https://clipcloud.clipai.pro/api/creation/12345678-abcd-ef12-3456-7890abcdef12 \
|
|
12
|
+
-H "Authorization: Bearer $CLIPCLOUD_API_KEY"
|
|
13
|
+
# {"success":true,"message":"In progress","status":"in_progress","creation_id":"..."}
|
|
14
|
+
# {"success":true,"creation_id":"...","cost":1.9,"censored":0,"results":["https://clipcloud.clipai.pro/images/....webp"]}
|
|
15
|
+
|
|
16
|
+
# 3. Download the image right away: the link is temporary.
|
|
17
|
+
curl -s -o cabin.webp "https://clipcloud.clipai.pro/images/....webp"
|
|
18
|
+
|
|
19
|
+
# Price without generating:
|
|
20
|
+
curl -s https://clipcloud.clipai.pro/api/creation \
|
|
21
|
+
-H "Authorization: Bearer $CLIPCLOUD_API_KEY" -H "Content-Type: application/json" \
|
|
22
|
+
-d '{"prompt": "price check", "styleName": "HD-HQ", "check_cost": true}'
|
|
23
|
+
# {"success":true,"cost":1.9}
|
|
24
|
+
|
|
25
|
+
# Balance: {"success":true,"balance":431.9,"free_balance":25}
|
|
26
|
+
curl -s https://clipcloud.clipai.pro/api/users/mybalance -H "Authorization: Bearer $CLIPCLOUD_API_KEY"
|
|
27
|
+
|
|
28
|
+
# Live list of styles
|
|
29
|
+
curl -s https://clipcloud.clipai.pro/api/styles -H "Authorization: Bearer $CLIPCLOUD_API_KEY"
|
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clipcloud-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP server for ClipCloud: generate AI images from text in 35 styles from Claude, Cursor and other AI assistants. 25 free images per day.",
|
|
5
|
+
"mcpName": "io.github.alexmrgit/clipcloud-mcp",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://clipcloud.cliplabs.top/",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"mcp",
|
|
10
|
+
"mcp-server",
|
|
11
|
+
"model-context-protocol",
|
|
12
|
+
"clipcloud",
|
|
13
|
+
"image generation",
|
|
14
|
+
"text to image",
|
|
15
|
+
"ai image",
|
|
16
|
+
"claude",
|
|
17
|
+
"cursor",
|
|
18
|
+
"image-generation-api",
|
|
19
|
+
"text-to-image-api",
|
|
20
|
+
"integration"
|
|
21
|
+
],
|
|
22
|
+
"author": {
|
|
23
|
+
"name": "ClipLabs",
|
|
24
|
+
"email": "support@clipcloud.cliplabs.top"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/alexmrgit/clipcloud-mcp.git"
|
|
29
|
+
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/alexmrgit/clipcloud-mcp/issues"
|
|
32
|
+
},
|
|
33
|
+
"type": "module",
|
|
34
|
+
"bin": {
|
|
35
|
+
"clipcloud-mcp": "dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"integration"
|
|
40
|
+
],
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=20"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsc && node -e \"require('fs').chmodSync('dist/index.js', 0o755)\"",
|
|
46
|
+
"test": "npm run build && node test/run.mjs && node test/http.mjs && node test/samples.mjs",
|
|
47
|
+
"test:server": "npm run build && node test/run.mjs && node test/http.mjs",
|
|
48
|
+
"prepublishOnly": "npm run build"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
52
|
+
"zod": "^3.25.76"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/node": "^22.10.0",
|
|
56
|
+
"typescript": "^5.7.0"
|
|
57
|
+
}
|
|
58
|
+
}
|