@ukiyocompute/mcp 0.2.0 → 0.2.1
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/README.md +2 -2
- package/dist/library.js +10 -10
- package/dist/main.js +10 -10
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Ukiyo MCP 0.2.
|
|
1
|
+
# Ukiyo MCP 0.2.1
|
|
2
2
|
|
|
3
|
-
Node.js 24+, local stdio only: `npm install -g @ukiyocompute/mcp@0.2.
|
|
3
|
+
Node.js 24+, local stdio only: `npm install -g @ukiyocompute/mcp@0.2.1`, then
|
|
4
4
|
`ukiyo-mcp`. Staged for owner-approved publication, not published by this build.
|
|
5
5
|
|
|
6
6
|
Read `https://pay.u-kiyo.ai/api/v1/terms` and its linked document. Call
|
package/dist/library.js
CHANGED
|
@@ -436,8 +436,8 @@ var UkiyoClient = class {
|
|
|
436
436
|
offers() {
|
|
437
437
|
return this.request("/offers", { authenticated: false });
|
|
438
438
|
}
|
|
439
|
-
me() {
|
|
440
|
-
return this.request("/me");
|
|
439
|
+
me(signal) {
|
|
440
|
+
return this.request("/me", { signal: signal ?? null });
|
|
441
441
|
}
|
|
442
442
|
balance() {
|
|
443
443
|
return this.request("/billing/balance");
|
|
@@ -469,11 +469,11 @@ var UkiyoClient = class {
|
|
|
469
469
|
throw error;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
rent(offerId, budgetMinor, idempotencyKey) {
|
|
473
|
-
return this.request("/rentals", { method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify({ offerId, ...budgetMinor === void 0 ? {} : { budgetMinor } }) });
|
|
472
|
+
rent(offerId, budgetMinor, idempotencyKey, signal) {
|
|
473
|
+
return this.request("/rentals", { signal: signal ?? null, method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify({ offerId, ...budgetMinor === void 0 ? {} : { budgetMinor } }) });
|
|
474
474
|
}
|
|
475
|
-
rentGpu(input, idempotencyKey) {
|
|
476
|
-
return this.request("/rentals", { method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify(input) });
|
|
475
|
+
rentGpu(input, idempotencyKey, signal) {
|
|
476
|
+
return this.request("/rentals", { signal: signal ?? null, method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify(input) });
|
|
477
477
|
}
|
|
478
478
|
rental(id, signal) {
|
|
479
479
|
return this.request(`/rentals/${encodeURIComponent(id)}`, signal ? { signal } : {});
|
|
@@ -487,8 +487,8 @@ var UkiyoClient = class {
|
|
|
487
487
|
credentials(id) {
|
|
488
488
|
return this.request(`/deployments/${encodeURIComponent(id)}/credentials/reveal`, { method: "POST" });
|
|
489
489
|
}
|
|
490
|
-
terminate(id) {
|
|
491
|
-
return this.request(`/deployments/${encodeURIComponent(id)}/terminate`, { method: "POST", body: JSON.stringify({ reason: "USER_REQUESTED" }) });
|
|
490
|
+
terminate(id, signal) {
|
|
491
|
+
return this.request(`/deployments/${encodeURIComponent(id)}/terminate`, { signal: signal ?? null, method: "POST", body: JSON.stringify({ reason: "USER_REQUESTED" }) });
|
|
492
492
|
}
|
|
493
493
|
checkout(offerId, budgetMinor, idempotencyKey) {
|
|
494
494
|
return this.request("/orders/checkout", { method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify({ offerId, budgetMinor }) });
|
|
@@ -746,7 +746,7 @@ function registerTools(server, call) {
|
|
|
746
746
|
);
|
|
747
747
|
server.tool(
|
|
748
748
|
"terminate_deployment",
|
|
749
|
-
"Terminate a deployment. This is irreversible
|
|
749
|
+
"Terminate a deployment. This is irreversible and destroys instance data. Confirm with the user before calling. Listed-runtime rentals return the final usage charge; legacy prepaid rentals forfeit remaining runtime.",
|
|
750
750
|
{ deploymentId },
|
|
751
751
|
({ deploymentId: id }) => reply(`/deployments/${encodeURIComponent(id)}/terminate`, { method: "POST", body: JSON.stringify({ reason: "USER_REQUESTED" }) })
|
|
752
752
|
);
|
|
@@ -796,7 +796,7 @@ function registerTools(server, call) {
|
|
|
796
796
|
return server;
|
|
797
797
|
}
|
|
798
798
|
function buildServer(call) {
|
|
799
|
-
return registerTools(new McpServer({ name: "ukiyo", version: "0.2.
|
|
799
|
+
return registerTools(new McpServer({ name: "ukiyo", version: "0.2.1" }), call);
|
|
800
800
|
}
|
|
801
801
|
export {
|
|
802
802
|
buildServer,
|
package/dist/main.js
CHANGED
|
@@ -440,8 +440,8 @@ var UkiyoClient = class {
|
|
|
440
440
|
offers() {
|
|
441
441
|
return this.request("/offers", { authenticated: false });
|
|
442
442
|
}
|
|
443
|
-
me() {
|
|
444
|
-
return this.request("/me");
|
|
443
|
+
me(signal) {
|
|
444
|
+
return this.request("/me", { signal: signal ?? null });
|
|
445
445
|
}
|
|
446
446
|
balance() {
|
|
447
447
|
return this.request("/billing/balance");
|
|
@@ -473,11 +473,11 @@ var UkiyoClient = class {
|
|
|
473
473
|
throw error;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
rent(offerId, budgetMinor, idempotencyKey) {
|
|
477
|
-
return this.request("/rentals", { method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify({ offerId, ...budgetMinor === void 0 ? {} : { budgetMinor } }) });
|
|
476
|
+
rent(offerId, budgetMinor, idempotencyKey, signal) {
|
|
477
|
+
return this.request("/rentals", { signal: signal ?? null, method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify({ offerId, ...budgetMinor === void 0 ? {} : { budgetMinor } }) });
|
|
478
478
|
}
|
|
479
|
-
rentGpu(input, idempotencyKey) {
|
|
480
|
-
return this.request("/rentals", { method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify(input) });
|
|
479
|
+
rentGpu(input, idempotencyKey, signal) {
|
|
480
|
+
return this.request("/rentals", { signal: signal ?? null, method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify(input) });
|
|
481
481
|
}
|
|
482
482
|
rental(id, signal) {
|
|
483
483
|
return this.request(`/rentals/${encodeURIComponent(id)}`, signal ? { signal } : {});
|
|
@@ -491,8 +491,8 @@ var UkiyoClient = class {
|
|
|
491
491
|
credentials(id) {
|
|
492
492
|
return this.request(`/deployments/${encodeURIComponent(id)}/credentials/reveal`, { method: "POST" });
|
|
493
493
|
}
|
|
494
|
-
terminate(id) {
|
|
495
|
-
return this.request(`/deployments/${encodeURIComponent(id)}/terminate`, { method: "POST", body: JSON.stringify({ reason: "USER_REQUESTED" }) });
|
|
494
|
+
terminate(id, signal) {
|
|
495
|
+
return this.request(`/deployments/${encodeURIComponent(id)}/terminate`, { signal: signal ?? null, method: "POST", body: JSON.stringify({ reason: "USER_REQUESTED" }) });
|
|
496
496
|
}
|
|
497
497
|
checkout(offerId, budgetMinor, idempotencyKey) {
|
|
498
498
|
return this.request("/orders/checkout", { method: "POST", headers: { "idempotency-key": idempotencyKey }, body: JSON.stringify({ offerId, budgetMinor }) });
|
|
@@ -750,7 +750,7 @@ function registerTools(server, call) {
|
|
|
750
750
|
);
|
|
751
751
|
server.tool(
|
|
752
752
|
"terminate_deployment",
|
|
753
|
-
"Terminate a deployment. This is irreversible
|
|
753
|
+
"Terminate a deployment. This is irreversible and destroys instance data. Confirm with the user before calling. Listed-runtime rentals return the final usage charge; legacy prepaid rentals forfeit remaining runtime.",
|
|
754
754
|
{ deploymentId },
|
|
755
755
|
({ deploymentId: id }) => reply(`/deployments/${encodeURIComponent(id)}/terminate`, { method: "POST", body: JSON.stringify({ reason: "USER_REQUESTED" }) })
|
|
756
756
|
);
|
|
@@ -800,7 +800,7 @@ function registerTools(server, call) {
|
|
|
800
800
|
return server;
|
|
801
801
|
}
|
|
802
802
|
function buildServer(call) {
|
|
803
|
-
return registerTools(new McpServer({ name: "ukiyo", version: "0.2.
|
|
803
|
+
return registerTools(new McpServer({ name: "ukiyo", version: "0.2.1" }), call);
|
|
804
804
|
}
|
|
805
805
|
|
|
806
806
|
// apps/mcp/src/main.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukiyocompute/mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/library.js",
|
|
6
6
|
"exports": {
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
"node": ">=24"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
|
-
"access": "public"
|
|
22
|
-
"provenance": true
|
|
21
|
+
"access": "public"
|
|
23
22
|
},
|
|
24
23
|
"repository": {
|
|
25
24
|
"type": "git",
|