@scopieflows/shared 0.56.0 → 0.58.0
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.
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export declare const McpServer: z.ZodObject<{
|
|
|
10
10
|
projectId: z.ZodString;
|
|
11
11
|
status: z.ZodEnum<typeof McpServerStatus>;
|
|
12
12
|
token: z.ZodString;
|
|
13
|
-
|
|
13
|
+
disabledTools: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
14
14
|
id: z.ZodString;
|
|
15
15
|
created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
16
16
|
updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
@@ -19,7 +19,7 @@ export declare const PopulatedMcpServer: z.ZodObject<{
|
|
|
19
19
|
projectId: z.ZodString;
|
|
20
20
|
status: z.ZodEnum<typeof McpServerStatus>;
|
|
21
21
|
token: z.ZodString;
|
|
22
|
-
|
|
22
|
+
disabledTools: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
25
25
|
updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
@@ -112,7 +112,7 @@ export type PopulatedMcpServer = z.infer<typeof PopulatedMcpServer>;
|
|
|
112
112
|
export type McpServer = z.infer<typeof McpServer>;
|
|
113
113
|
export declare const UpdateMcpServerRequest: z.ZodObject<{
|
|
114
114
|
status: z.ZodOptional<z.ZodEnum<typeof McpServerStatus>>;
|
|
115
|
-
|
|
115
|
+
disabledTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
116
116
|
}, z.core.$strip>;
|
|
117
117
|
export type UpdateMcpServerRequest = z.infer<typeof UpdateMcpServerRequest>;
|
|
118
118
|
/** Tool definition for MCP: inputSchema is a raw Zod shape (same as MCP expects). */
|
|
@@ -126,11 +126,14 @@ export type McpToolDefinition = {
|
|
|
126
126
|
idempotentHint?: boolean;
|
|
127
127
|
openWorldHint?: boolean;
|
|
128
128
|
};
|
|
129
|
-
execute: (args: Record<string, unknown>) => Promise<
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
129
|
+
execute: (args: Record<string, unknown>) => Promise<McpToolResult>;
|
|
130
|
+
};
|
|
131
|
+
export type McpToolResult = {
|
|
132
|
+
content: Array<{
|
|
133
|
+
type: 'text';
|
|
134
|
+
text: string;
|
|
134
135
|
}>;
|
|
136
|
+
structuredContent?: Record<string, unknown>;
|
|
137
|
+
isError?: boolean;
|
|
135
138
|
};
|
|
136
139
|
//# sourceMappingURL=mcp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../../../src/lib/automation/mcp/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAGrD,MAAM,MAAM,KAAK,GAAG,IAAI,CAAA;AAExB,eAAO,MAAM,sBAAsB,yBAAyB,CAAA;AAE5D,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACxB;AAED,eAAO,MAAM,SAAS;;;;;;;;
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../../../src/lib/automation/mcp/mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAGrD,MAAM,MAAM,KAAK,GAAG,IAAI,CAAA;AAExB,eAAO,MAAM,sBAAsB,yBAAyB,CAAA;AAE5D,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACxB;AAED,eAAO,MAAM,SAAS;;;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
|
|
|
11
11
|
McpServerStatus["ENABLED"] = "ENABLED";
|
|
12
12
|
McpServerStatus["DISABLED"] = "DISABLED";
|
|
13
13
|
})(McpServerStatus || (exports.McpServerStatus = McpServerStatus = {}));
|
|
14
|
-
exports.McpServer = zod_1.z.object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { projectId: id_generator_1.ApId, status: zod_1.z.nativeEnum(McpServerStatus), token: id_generator_1.ApId,
|
|
14
|
+
exports.McpServer = zod_1.z.object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { projectId: id_generator_1.ApId, status: zod_1.z.nativeEnum(McpServerStatus), token: id_generator_1.ApId,
|
|
15
|
+
// Disabled-polarity (upstream-aligned): null/[] = every controllable tool is on,
|
|
16
|
+
// including tools added after the row was created. An enabled-list snapshot
|
|
17
|
+
// permanently hid newly added tools from pre-existing projects.
|
|
18
|
+
disabledTools: zod_1.z.array(zod_1.z.string()).nullable() }));
|
|
15
19
|
exports.PopulatedMcpServer = exports.McpServer.extend({
|
|
16
20
|
flows: zod_1.z.array(flow_1.PopulatedFlow),
|
|
17
21
|
});
|
|
18
22
|
exports.UpdateMcpServerRequest = zod_1.z.object({
|
|
19
23
|
status: zod_1.z.nativeEnum(McpServerStatus).optional(),
|
|
20
|
-
|
|
24
|
+
disabledTools: zod_1.z.array(zod_1.z.string()).optional(),
|
|
21
25
|
});
|
|
22
26
|
//# sourceMappingURL=mcp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../../../../src/lib/automation/mcp/mcp.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,8CAAmD;AACnD,iEAAqD;AACrD,wCAA6C;AAIhC,QAAA,sBAAsB,GAAG,sBAAsB,CAAA;AAE5D,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAEY,QAAA,SAAS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