@insforge/mcp 1.1.7-dev.15 → 1.1.7-dev.16
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.
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
import { z as z14 } from "zod";
|
|
5
5
|
import fetch2 from "node-fetch";
|
|
6
6
|
import { promises as fs } from "fs";
|
|
7
|
+
import { exec } from "child_process";
|
|
8
|
+
import { promisify } from "util";
|
|
7
9
|
|
|
8
10
|
// src/shared/response-handler.ts
|
|
9
11
|
async function handleApiResponse(response) {
|
|
@@ -735,6 +737,7 @@ var functionUpdateRequestSchema = z13.object({
|
|
|
735
737
|
|
|
736
738
|
// src/shared/tools.ts
|
|
737
739
|
import FormData from "form-data";
|
|
740
|
+
var execAsync = promisify(exec);
|
|
738
741
|
var TOOL_VERSION_REQUIREMENTS = {
|
|
739
742
|
"upsert-schedule": "1.1.1",
|
|
740
743
|
// 'get-schedules': '1.1.1',
|
|
@@ -851,8 +854,8 @@ function registerInsforgeTools(server, config = {}) {
|
|
|
851
854
|
"fetch-docs",
|
|
852
855
|
'Fetch Insforge documentation. Use "instructions" for essential backend setup (MANDATORY FIRST), or select specific SDK docs for database, auth, storage, functions, or AI integration.',
|
|
853
856
|
{
|
|
854
|
-
docType: z14.enum(["instructions", "db-sdk", "storage-sdk", "functions-sdk", "ai-integration-sdk", "auth-components-react", "auth-components-
|
|
855
|
-
'Documentation type: "instructions" (essential backend setup - use FIRST), "db-sdk" (database operations), "storage-sdk" (file storage), "functions-sdk" (edge functions), "ai-integration-sdk" (AI features), "auth-components-react" (authentication components for React+Vite applications), "auth-components-
|
|
857
|
+
docType: z14.enum(["instructions", "db-sdk", "storage-sdk", "functions-sdk", "ai-integration-sdk", "auth-components-react", "auth-components-react-router"]).describe(
|
|
858
|
+
'Documentation type: "instructions" (essential backend setup - use FIRST), "db-sdk" (database operations), "storage-sdk" (file storage), "functions-sdk" (edge functions), "ai-integration-sdk" (AI features), "auth-components-react" (authentication components for React+Vite applications), "auth-components-react-router" (authentication components for React + React Router applications),'
|
|
856
859
|
)
|
|
857
860
|
},
|
|
858
861
|
withUsageTracking("fetch-docs", async ({ docType }) => {
|
|
@@ -1578,7 +1581,7 @@ ${JSON.stringify(metadata, null, 2)}`
|
|
|
1578
1581
|
return {
|
|
1579
1582
|
apiKey: GLOBAL_API_KEY,
|
|
1580
1583
|
apiBaseUrl: API_BASE_URL,
|
|
1581
|
-
toolCount:
|
|
1584
|
+
toolCount: 17
|
|
1582
1585
|
};
|
|
1583
1586
|
}
|
|
1584
1587
|
|
package/dist/http-server.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED