@insforge/mcp 1.1.7-dev.1 → 1.1.7-dev.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.
|
@@ -162,9 +162,10 @@ var deleteTableResponse = z2.object({
|
|
|
162
162
|
var rawSQLRequestSchema = z2.object({
|
|
163
163
|
query: z2.string().min(1, "Query is required"),
|
|
164
164
|
params: z2.array(z2.any()).optional()
|
|
165
|
+
// z.any() generates valid JSON Schema with items: {}
|
|
165
166
|
});
|
|
166
167
|
var rawSQLResponseSchema = z2.object({
|
|
167
|
-
rows: z2.array(z2.
|
|
168
|
+
rows: z2.array(z2.record(z2.string(), z2.unknown())),
|
|
168
169
|
rowCount: z2.number().nullable(),
|
|
169
170
|
fields: z2.array(z2.object({
|
|
170
171
|
name: z2.string(),
|
|
@@ -222,7 +223,8 @@ var exportJsonDataSchema = z2.object({
|
|
|
222
223
|
newTable: z2.string().nullable(),
|
|
223
224
|
oldTable: z2.string().nullable()
|
|
224
225
|
})),
|
|
225
|
-
rows: z2.array(z2.
|
|
226
|
+
rows: z2.array(z2.record(z2.string(), z2.unknown())).optional(),
|
|
227
|
+
recordCount: z2.number().optional()
|
|
226
228
|
})),
|
|
227
229
|
functions: z2.array(z2.object({
|
|
228
230
|
functionName: z2.string(),
|
|
@@ -364,7 +366,19 @@ var userSchema = z5.object({
|
|
|
364
366
|
updatedAt: z5.string()
|
|
365
367
|
// PostgreSQL timestamp
|
|
366
368
|
});
|
|
367
|
-
var oAuthProvidersSchema = z5.enum([
|
|
369
|
+
var oAuthProvidersSchema = z5.enum([
|
|
370
|
+
"google",
|
|
371
|
+
"github",
|
|
372
|
+
"discord",
|
|
373
|
+
"linkedin",
|
|
374
|
+
"facebook",
|
|
375
|
+
"instagram",
|
|
376
|
+
"tiktok",
|
|
377
|
+
"apple",
|
|
378
|
+
"x",
|
|
379
|
+
"spotify",
|
|
380
|
+
"microsoft"
|
|
381
|
+
]);
|
|
368
382
|
var oAuthStateSchema = z5.object({
|
|
369
383
|
provider: oAuthProvidersSchema,
|
|
370
384
|
redirectUri: z5.string().url().optional()
|
|
@@ -462,15 +476,20 @@ var authMetadataSchema = z7.object({
|
|
|
462
476
|
oauths: z7.array(oAuthConfigSchema)
|
|
463
477
|
});
|
|
464
478
|
var databaseMetadataSchema = z7.object({
|
|
465
|
-
tables: z7.array(
|
|
466
|
-
|
|
479
|
+
tables: z7.array(z7.object({
|
|
480
|
+
schema: z7.string(),
|
|
481
|
+
tableName: z7.string(),
|
|
482
|
+
recordCount: z7.number()
|
|
483
|
+
})),
|
|
484
|
+
totalSizeInGB: z7.number(),
|
|
485
|
+
hint: z7.string().optional()
|
|
467
486
|
});
|
|
468
487
|
var bucketMetadataSchema = storageBucketSchema.extend({
|
|
469
488
|
objectCount: z7.number().optional()
|
|
470
489
|
});
|
|
471
490
|
var storageMetadataSchema = z7.object({
|
|
472
491
|
buckets: z7.array(bucketMetadataSchema),
|
|
473
|
-
|
|
492
|
+
totalSizeInGB: z7.number()
|
|
474
493
|
});
|
|
475
494
|
var edgeFunctionMetadataSchema = z7.object({
|
|
476
495
|
slug: z7.string(),
|
|
@@ -583,44 +602,13 @@ var imageGenerationResponseSchema = z9.object({
|
|
|
583
602
|
}).optional()
|
|
584
603
|
}).optional()
|
|
585
604
|
});
|
|
586
|
-
var
|
|
605
|
+
var aiModelSchema = z9.object({
|
|
587
606
|
id: z9.string(),
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
outputModalities: z9.array(z9.string()),
|
|
594
|
-
tokenizer: z9.string(),
|
|
595
|
-
instructType: z9.string()
|
|
596
|
-
}).optional(),
|
|
597
|
-
topProvider: z9.object({
|
|
598
|
-
isModerated: z9.boolean(),
|
|
599
|
-
contextLength: z9.number(),
|
|
600
|
-
maxCompletionTokens: z9.number()
|
|
601
|
-
}).optional(),
|
|
602
|
-
pricing: z9.object({
|
|
603
|
-
prompt: z9.string(),
|
|
604
|
-
completion: z9.string(),
|
|
605
|
-
image: z9.string().optional(),
|
|
606
|
-
request: z9.string().optional(),
|
|
607
|
-
webSearch: z9.string().optional(),
|
|
608
|
-
internalReasoning: z9.string().optional(),
|
|
609
|
-
inputCacheRead: z9.string().optional(),
|
|
610
|
-
inputCacheWrite: z9.string().optional()
|
|
611
|
-
})
|
|
612
|
-
});
|
|
613
|
-
var listModelsResponseSchema = z9.object({
|
|
614
|
-
text: z9.array(z9.object({
|
|
615
|
-
provider: z9.string(),
|
|
616
|
-
configured: z9.boolean(),
|
|
617
|
-
models: z9.array(openRouterModelSchema)
|
|
618
|
-
})),
|
|
619
|
-
image: z9.array(z9.object({
|
|
620
|
-
provider: z9.string(),
|
|
621
|
-
configured: z9.boolean(),
|
|
622
|
-
models: z9.array(openRouterModelSchema)
|
|
623
|
-
}))
|
|
607
|
+
inputModality: z9.array(modalitySchema).min(1),
|
|
608
|
+
outputModality: z9.array(modalitySchema).min(1),
|
|
609
|
+
provider: z9.string(),
|
|
610
|
+
modelId: z9.string(),
|
|
611
|
+
priceLevel: z9.number().min(0).max(3).optional()
|
|
624
612
|
});
|
|
625
613
|
var createAIConfigurationRequestSchema = aiConfigurationSchema.omit({
|
|
626
614
|
id: true
|
|
@@ -656,6 +644,23 @@ var auditLogSchema = z10.object({
|
|
|
656
644
|
createdAt: z10.string(),
|
|
657
645
|
updatedAt: z10.string()
|
|
658
646
|
});
|
|
647
|
+
var logSourceSchema = z10.object({
|
|
648
|
+
id: z10.string(),
|
|
649
|
+
name: z10.string(),
|
|
650
|
+
token: z10.string()
|
|
651
|
+
});
|
|
652
|
+
var logSchema = z10.object({
|
|
653
|
+
id: z10.string(),
|
|
654
|
+
eventMessage: z10.string(),
|
|
655
|
+
timestamp: z10.string(),
|
|
656
|
+
body: z10.record(z10.string(), z10.unknown()),
|
|
657
|
+
source: z10.string().optional()
|
|
658
|
+
});
|
|
659
|
+
var logStatsSchema = z10.object({
|
|
660
|
+
source: z10.string(),
|
|
661
|
+
count: z10.number(),
|
|
662
|
+
lastActivity: z10.string()
|
|
663
|
+
});
|
|
659
664
|
|
|
660
665
|
// node_modules/@insforge/shared-schemas/dist/logs-api.schema.js
|
|
661
666
|
import { z as z11 } from "zod";
|
|
@@ -693,6 +698,10 @@ var clearAuditLogsResponseSchema = z11.object({
|
|
|
693
698
|
message: z11.string(),
|
|
694
699
|
deleted: z11.number()
|
|
695
700
|
});
|
|
701
|
+
var getLogsResponseSchema = z11.object({
|
|
702
|
+
logs: z11.array(logSchema),
|
|
703
|
+
total: z11.number()
|
|
704
|
+
});
|
|
696
705
|
|
|
697
706
|
// node_modules/@insforge/shared-schemas/dist/functions.schema.js
|
|
698
707
|
import { z as z12 } from "zod";
|
package/dist/http-server.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insforge/mcp",
|
|
3
|
-
"version": "1.1.7-dev.
|
|
3
|
+
"version": "1.1.7-dev.2",
|
|
4
4
|
"description": "MCP (Model Context Protocol) server for Insforge backend-as-a-service",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"mcp.json"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@insforge/shared-schemas": "^1.1.
|
|
37
|
+
"@insforge/shared-schemas": "^1.1.6",
|
|
38
38
|
"@modelcontextprotocol/sdk": "^1.15.1",
|
|
39
39
|
"@types/express": "^5.0.3",
|
|
40
40
|
"commander": "^14.0.0",
|