@insforge/mcp 1.1.7-dev.22 → 1.1.7-dev.23

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.
@@ -1058,10 +1058,9 @@ ${JSON.stringify(metadata, null, 2)}`
1058
1058
  "CRITICAL: MANDATORY FIRST STEP for all new InsForge projects. Download pre-configured starter template (React/Next.js/React Router). ALWAYS use this tool BEFORE any other setup when starting a new project.",
1059
1059
  {
1060
1060
  frame: z14.enum(["react"]).describe("Framework to use for the template (currently only React is supported)"),
1061
- projectName: z14.string().optional().describe('Name for the project directory (optional, defaults to "insforge-react")'),
1062
- workingDirectory: z14.string().optional().describe("Working directory path where project should be created")
1061
+ projectName: z14.string().optional().describe('Name for the project directory (optional, defaults to "insforge-react")')
1063
1062
  },
1064
- withUsageTracking("download-template", async ({ frame, projectName, workingDirectory }) => {
1063
+ withUsageTracking("download-template", async ({ frame, projectName }) => {
1065
1064
  try {
1066
1065
  const response = await fetch2(`${API_BASE_URL}/api/auth/tokens/anon`, {
1067
1066
  method: "POST",
@@ -1076,18 +1075,15 @@ ${JSON.stringify(metadata, null, 2)}`
1076
1075
  throw new Error("Failed to retrieve anon key from backend");
1077
1076
  }
1078
1077
  const targetDir = projectName || `insforge-${frame}`;
1079
- const cwd = workingDirectory || process.cwd();
1080
1078
  const command = `npx create-insforge-app ${targetDir} --frame ${frame} --base-url ${API_BASE_URL} --anon-key ${anonKey}`;
1081
1079
  const { stdout, stderr } = await execAsync(command, {
1082
- maxBuffer: 10 * 1024 * 1024,
1080
+ maxBuffer: 10 * 1024 * 1024
1083
1081
  // 10MB buffer
1084
- cwd
1085
1082
  });
1086
1083
  const output = stdout || stderr || "";
1087
1084
  if (output.toLowerCase().includes("error") && !output.includes("successfully")) {
1088
1085
  throw new Error(`Failed to download template: ${output}`);
1089
1086
  }
1090
- const fullPath = `${cwd}/${targetDir}`;
1091
1087
  return {
1092
1088
  content: [
1093
1089
  {
@@ -1096,7 +1092,7 @@ ${JSON.stringify(metadata, null, 2)}`
1096
1092
  `React template created successfully`,
1097
1093
  {
1098
1094
  projectName: targetDir,
1099
- location: fullPath,
1095
+ location: `./${targetDir}`,
1100
1096
  baseUrl: API_BASE_URL,
1101
1097
  nextSteps: [
1102
1098
  `cd ${targetDir}`,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  registerInsforgeTools
4
- } from "./chunk-UVGZW3SJ.js";
4
+ } from "./chunk-FEBE2UDM.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-UVGZW3SJ.js";
4
+ } from "./chunk-FEBE2UDM.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.1.7-dev.22",
3
+ "version": "1.1.7-dev.23",
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",