@insforge/mcp 1.2.10-dev.3 → 1.2.10

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.
@@ -2644,7 +2644,7 @@ import { tmpdir as tmpdir2 } from "os";
2644
2644
  import { join as join2, relative, sep } from "path";
2645
2645
  import archiver from "archiver";
2646
2646
  import FormData2 from "form-data";
2647
- var DIRECT_DEPLOYMENT_MIN_VERSION = "2.0.4";
2647
+ var DIRECT_DEPLOYMENT_MIN_VERSION = "2.0.6";
2648
2648
  var DEFAULT_DIRECT_UPLOAD_CONCURRENCY = 8;
2649
2649
  var MAX_DIRECT_UPLOAD_CONCURRENCY = 32;
2650
2650
  var EXCLUDED_DEPLOYMENT_SEGMENTS = /* @__PURE__ */ new Set([
@@ -2661,6 +2661,13 @@ var DirectDeploymentUnsupportedError = class extends Error {
2661
2661
  this.name = "DirectDeploymentUnsupportedError";
2662
2662
  }
2663
2663
  };
2664
+ function isInsforgeCloudApiBaseUrl(apiBaseUrl) {
2665
+ try {
2666
+ return new URL(apiBaseUrl).hostname.endsWith(".insforge.app");
2667
+ } catch {
2668
+ return false;
2669
+ }
2670
+ }
2664
2671
  function isAbsoluteSourcePath(sourceDirectory) {
2665
2672
  return sourceDirectory.startsWith("/") || /^[a-zA-Z]:[/\\]/.test(sourceDirectory);
2666
2673
  }
@@ -3005,7 +3012,7 @@ NODE
3005
3012
 
3006
3013
  After the script succeeds, call the \`start-deployment\` tool with the printed deployment ID.
3007
3014
 
3008
- If the upload is interrupted after the deployment ID is printed, query \`system.deployment_files\` with the raw SQL tool for that \`deployment_id\` to inspect \`uploaded_at\`. You can rerun \`create-deployment\` to create a fresh deployment, or upload missing file IDs to \`PUT /api/deployments/:id/files/:fileId/content\` using the queried manifest rows.`;
3015
+ If the upload is interrupted after the deployment ID is printed, query \`deployments.files\` with the raw SQL tool for that \`deployment_id\` to inspect \`uploaded_at\`. You can rerun \`create-deployment\` to create a fresh deployment, or upload missing file IDs to \`PUT /api/deployments/:id/files/:fileId/content\` using the queried manifest rows.`;
3009
3016
  }
3010
3017
  function registerDeploymentTools(ctx) {
3011
3018
  const {
@@ -3169,7 +3176,9 @@ Run each step in order. If any step fails, do not proceed to the next step.`;
3169
3176
  content: [
3170
3177
  {
3171
3178
  type: "text",
3172
- text: formatSuccessMessage("Deployment started", startResult) + "\n\nNote: You can check deployment status by querying the system.deployments table."
3179
+ text: formatSuccessMessage("Deployment started", startResult) + `
3180
+
3181
+ ${supportsDirectDeployment ? isInsforgeCloudApiBaseUrl(API_BASE_URL) ? "Note: You can check deployment status by querying the deployments.runs table." : "Note: For self-hosted direct deployments, check the result in your Vercel dashboard instead of InsForge deployment logs." : "Note: You can check deployment status by querying the deployments.runs table."}`
3173
3182
  }
3174
3183
  ]
3175
3184
  });
@@ -3251,7 +3260,7 @@ Run each step in order. If any step fails, do not proceed to the next step.`;
3251
3260
 
3252
3261
  ${uploadSummary}
3253
3262
 
3254
- Note: You can check deployment status by querying the system.deployments table. If file uploads are interrupted, inspect system.deployment_files with the raw SQL tool to see which files are already uploaded before retrying missing files.`
3263
+ ${isInsforgeCloudApiBaseUrl(API_BASE_URL) ? "Note: You can check deployment status by querying the deployments.runs table. If file uploads are interrupted, inspect deployments.files with the raw SQL tool to see which files are already uploaded before retrying missing files." : "Note: For self-hosted direct deployments, check the result in your Vercel dashboard instead of InsForge deployment logs. If file uploads are interrupted, inspect deployments.files with the raw SQL tool to see which files are already uploaded before retrying missing files."}`
3255
3264
  }
3256
3265
  ]
3257
3266
  });
@@ -3320,7 +3329,7 @@ Note: You can check deployment status by querying the system.deployments table.
3320
3329
  content: [
3321
3330
  {
3322
3331
  type: "text",
3323
- text: formatSuccessMessage("Deployment started", startResult) + "\n\nNote: You can check deployment status by querying the system.deployments table."
3332
+ text: formatSuccessMessage("Deployment started", startResult) + "\n\nNote: You can check deployment status by querying the deployments.runs table."
3324
3333
  }
3325
3334
  ]
3326
3335
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  registerInsforgeTools
4
- } from "./chunk-QCZGHGBY.js";
4
+ } from "./chunk-VSNX22WU.js";
5
5
 
6
6
  // src/http/server.ts
7
7
  import "dotenv/config";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  registerInsforgeTools
4
- } from "./chunk-QCZGHGBY.js";
4
+ } from "./chunk-VSNX22WU.js";
5
5
 
6
6
  // src/stdio/index.ts
7
7
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insforge/mcp",
3
- "version": "1.2.10-dev.3",
3
+ "version": "1.2.10",
4
4
  "description": "MCP (Model Context Protocol) server for Insforge backend-as-a-service",
5
5
  "mcpName": "io.github.InsForge/insforge-mcp",
6
6
  "type": "module",