@insforge/mcp 1.2.4-deployment.5 → 1.2.4-deployment.7

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.
@@ -7,6 +7,7 @@ import { promises as fs } from "fs";
7
7
  import { exec } from "child_process";
8
8
  import { promisify } from "util";
9
9
  import { tmpdir } from "os";
10
+ import path from "path";
10
11
  import archiver from "archiver";
11
12
 
12
13
  // src/shared/response-handler.ts
@@ -2028,6 +2029,7 @@ To: Your current project directory
2028
2029
  },
2029
2030
  withUsageTracking("create-deployment", async ({ sourceDirectory, projectSettings, envVars, meta }) => {
2030
2031
  try {
2032
+ const resolvedSourceDir = path.resolve(sourceDirectory);
2031
2033
  const createResponse = await fetch2(`${API_BASE_URL}/api/deployments`, {
2032
2034
  method: "POST",
2033
2035
  headers: {
@@ -2043,18 +2045,29 @@ To: Your current project directory
2043
2045
  archive.on("data", (chunk) => chunks.push(chunk));
2044
2046
  archive.on("end", () => resolve(Buffer.concat(chunks)));
2045
2047
  archive.on("error", (err) => reject(err));
2046
- archive.glob("**/*", {
2047
- cwd: sourceDirectory,
2048
- ignore: [
2049
- "node_modules/**",
2050
- ".git/**",
2051
- ".next/**",
2052
- "dist/**",
2053
- ".env.local",
2054
- ".DS_Store"
2055
- ],
2056
- dot: true
2057
- // Include dotfiles like .env
2048
+ archive.on("warning", (err) => {
2049
+ console.warn("Archiver warning:", err.message);
2050
+ });
2051
+ const excludePatterns = [
2052
+ "node_modules",
2053
+ ".git",
2054
+ ".next",
2055
+ "dist",
2056
+ "build",
2057
+ ".env.local",
2058
+ ".DS_Store"
2059
+ ];
2060
+ archive.directory(resolvedSourceDir, false, (entry) => {
2061
+ const normalizedName = entry.name.replace(/\\/g, "/");
2062
+ for (const pattern of excludePatterns) {
2063
+ if (normalizedName.startsWith(pattern + "/") || normalizedName === pattern || normalizedName.endsWith("/" + pattern) || normalizedName.includes("/" + pattern + "/")) {
2064
+ return false;
2065
+ }
2066
+ }
2067
+ if (normalizedName.endsWith(".log")) {
2068
+ return false;
2069
+ }
2070
+ return entry;
2058
2071
  });
2059
2072
  archive.finalize();
2060
2073
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  registerInsforgeTools
4
- } from "./chunk-LLO6ZJQR.js";
4
+ } from "./chunk-UC5S2WUP.js";
5
5
 
6
6
  // src/http/server.ts
7
7
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  registerInsforgeTools
4
- } from "./chunk-LLO6ZJQR.js";
4
+ } from "./chunk-UC5S2WUP.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.4-deployment.5",
3
+ "version": "1.2.4-deployment.7",
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",