@hoststack.dev/mcp 0.10.0 → 0.10.2
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 +19 -19
- package/dist/hoststack-mcp.js +8 -5
- package/dist/hoststack-mcp.js.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1944,6 +1944,7 @@ defineTool({
|
|
|
1944
1944
|
|
|
1945
1945
|
// src/tools/projects.ts
|
|
1946
1946
|
import { z as z12 } from "zod";
|
|
1947
|
+
var REGION_IDS = ["eu-central-1", "eu-central-2", "eu-west-1", "us-east-1"];
|
|
1947
1948
|
defineTool({
|
|
1948
1949
|
name: "list_projects",
|
|
1949
1950
|
category: "projects",
|
|
@@ -1976,20 +1977,22 @@ defineTool({
|
|
|
1976
1977
|
"Inputs:",
|
|
1977
1978
|
" - name: human-readable project name (1\u201360 chars).",
|
|
1978
1979
|
" - description (optional): short blurb shown in the dashboard.",
|
|
1979
|
-
' - region (optional): "
|
|
1980
|
+
' - region (optional): "eu-central-1" (Falkenstein) | "eu-central-2" (Nuremberg) | "eu-west-1" (Helsinki) | "us-east-1" (Ashburn). Defaults to eu-central-2.',
|
|
1980
1981
|
"",
|
|
1981
1982
|
"Returns: { project: Project } \u2014 includes the new id and publicId.",
|
|
1982
1983
|
"",
|
|
1983
|
-
'Example: create_project({ name: "billing-api", description: "Stripe webhooks", region: "
|
|
1984
|
+
'Example: create_project({ name: "billing-api", description: "Stripe webhooks", region: "eu-central-1" }) \u2192 { project: { id: 12, publicId: "prj_\u2026", \u2026 } }'
|
|
1984
1985
|
].join("\n"),
|
|
1985
1986
|
input: {
|
|
1986
1987
|
name: z12.string().min(1).max(60).describe("Project name (1\u201360 chars)."),
|
|
1987
1988
|
description: z12.string().max(500).optional().describe("Short description (\u2264500 chars)."),
|
|
1988
|
-
region: z12.enum(
|
|
1989
|
+
region: z12.enum(REGION_IDS).optional().describe("Region: eu-central-1 | eu-central-2 | eu-west-1 | us-east-1.")
|
|
1989
1990
|
},
|
|
1990
1991
|
handler: async (args, ctx) => {
|
|
1991
1992
|
const teamId = await ctx.resolveTeamId();
|
|
1992
|
-
const input = {
|
|
1993
|
+
const input = {
|
|
1994
|
+
name: args.name
|
|
1995
|
+
};
|
|
1993
1996
|
if (args.description !== void 0) input.description = args.description;
|
|
1994
1997
|
if (args.region !== void 0) input.region = args.region;
|
|
1995
1998
|
const response = await ctx.hoststack.projects.create(teamId, input);
|
|
@@ -2294,7 +2297,7 @@ defineTool({
|
|
|
2294
2297
|
const deploy = await ctx.hoststack.deploys.trigger(teamId, service.id);
|
|
2295
2298
|
const deployId = deploy.deploy?.id ?? null;
|
|
2296
2299
|
return respond({
|
|
2297
|
-
summary: `Created AI dev environment "${name}" (${service.publicId})${volumeAttached ? " with a /workspace volume" : ""} \u2014 deploying. Open
|
|
2300
|
+
summary: `Created AI dev environment "${name}" (${service.publicId})${volumeAttached ? " with a /workspace volume" : ""} \u2014 deploying. Open it in the dashboard's Development section (or the service's Terminal tab) once running.`,
|
|
2298
2301
|
data: { service: shapeService(service), volumeAttached, deployId }
|
|
2299
2302
|
});
|
|
2300
2303
|
}
|