@yepcode/mcp-server
Advanced tools
| import { z } from "zod"; | ||
| export declare const GetTokenSchema: z.ZodObject<{ | ||
| apiToken: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| apiToken: string; | ||
| }, { | ||
| apiToken: string; | ||
| }>; | ||
| export declare const GetAllServiceAccountsSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>; | ||
| export declare const CreateServiceAccountSchema: z.ZodObject<{ | ||
| name: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| name: string; | ||
| }, { | ||
| name: string; | ||
| }>; | ||
| export declare const DeleteServiceAccountSchema: z.ZodObject<{ | ||
| id: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| id: string; | ||
| }, { | ||
| id: string; | ||
| }>; | ||
| export declare const authToolNames: { | ||
| readonly getToken: "get_token"; | ||
| readonly getAllServiceAccounts: "get_all_service_accounts"; | ||
| readonly createServiceAccount: "create_service_account"; | ||
| readonly deleteServiceAccount: "delete_service_account"; | ||
| }; | ||
| export declare const authToolDefinitions: ({ | ||
| name: "get_token"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| apiToken: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| name?: undefined; | ||
| id?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "get_all_service_accounts"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| apiToken?: undefined; | ||
| name?: undefined; | ||
| id?: undefined; | ||
| }; | ||
| required?: undefined; | ||
| }; | ||
| } | { | ||
| name: "create_service_account"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| name: { | ||
| type: string; | ||
| description: string; | ||
| example: string; | ||
| }; | ||
| apiToken?: undefined; | ||
| id?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "delete_service_account"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| id: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| apiToken?: undefined; | ||
| name?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| })[]; |
| import { z } from "zod"; | ||
| // Schema for getting a token | ||
| export const GetTokenSchema = z.object({ | ||
| apiToken: z.string().describe("API token"), | ||
| }); | ||
| // Schema for getting all service accounts | ||
| export const GetAllServiceAccountsSchema = z.object({}); | ||
| // Schema for creating a service account | ||
| export const CreateServiceAccountSchema = z.object({ | ||
| name: z.string().describe("Service account name"), | ||
| }); | ||
| // Schema for deleting a service account | ||
| export const DeleteServiceAccountSchema = z.object({ | ||
| id: z | ||
| .string() | ||
| .describe("Unique identifier (UUID) of the service account to delete"), | ||
| }); | ||
| // Tool names | ||
| export const authToolNames = { | ||
| getToken: "get_token", | ||
| getAllServiceAccounts: "get_all_service_accounts", | ||
| createServiceAccount: "create_service_account", | ||
| deleteServiceAccount: "delete_service_account", | ||
| }; | ||
| // Tool definitions | ||
| export const authToolDefinitions = [ | ||
| { | ||
| name: authToolNames.getToken, | ||
| title: "Get Token", | ||
| description: "Gets an authentication token using an API token.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| apiToken: { | ||
| type: "string", | ||
| description: "API token", | ||
| }, | ||
| }, | ||
| required: ["apiToken"], | ||
| }, | ||
| }, | ||
| { | ||
| name: authToolNames.getAllServiceAccounts, | ||
| title: "Get All Service Accounts", | ||
| description: "Retrieves a list of all service accounts.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: {}, | ||
| }, | ||
| }, | ||
| { | ||
| name: authToolNames.createServiceAccount, | ||
| title: "Create Service Account", | ||
| description: "Creates a new service account.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| name: { | ||
| type: "string", | ||
| description: "Service account name", | ||
| example: "my-service-account", | ||
| }, | ||
| }, | ||
| required: ["name"], | ||
| }, | ||
| }, | ||
| { | ||
| name: authToolNames.deleteServiceAccount, | ||
| title: "Delete Service Account", | ||
| description: "Permanently deletes a service account. This action cannot be undone.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| id: { | ||
| type: "string", | ||
| description: "Unique identifier (UUID) of the service account to delete", | ||
| }, | ||
| }, | ||
| required: ["id"], | ||
| }, | ||
| }, | ||
| ]; |
+191
-5
@@ -11,10 +11,14 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js"; | ||
| import { runCodeToolDefinitions, RunCodeSchema, RunProcessSchema, runCodeToolNames, } from "./tools/run-code-tool-definitinos.js"; | ||
| import { GetSchedulesSchema, GetScheduleSchema, PauseScheduleSchema, ResumeScheduleSchema, DeleteScheduleSchema, schedulesToolDefinitions, schedulesToolNames, } from "./tools/schedules-tool-definitions.js"; | ||
| import { GetProcessesSchema, CreateProcessSchema, GetProcessSchema, DeleteProcessSchema, GetProcessVersionsSchema, ExecuteProcessAsyncSchema, ExecuteProcessSyncSchema, ScheduleProcessSchema, processesToolDefinitions, processesToolNames, } from "./tools/processes-tool-definitions.js"; | ||
| import { GetSchedulesSchema, GetScheduleSchema, PauseScheduleSchema, ResumeScheduleSchema, DeleteScheduleSchema, UpdateScheduleSchema, schedulesToolDefinitions, schedulesToolNames, } from "./tools/schedules-tool-definitions.js"; | ||
| import { GetProcessesSchema, CreateProcessSchema, GetProcessSchema, UpdateProcessSchema, DeleteProcessSchema, GetProcessVersionsSchema, PublishProcessVersionSchema, GetProcessVersionSchema, DeleteProcessVersionSchema, GetProcessVersionAliasesSchema, CreateProcessVersionAliasSchema, GetProcessVersionAliasSchema, DeleteProcessVersionAliasSchema, UpdateProcessVersionAliasSchema, ExecuteProcessAsyncSchema, ExecuteProcessSyncSchema, ScheduleProcessSchema, processesToolDefinitions, processesWithVersionsToolDefinitions, processesToolNames, } from "./tools/processes-tool-definitions.js"; | ||
| import { GetExecutionsSchema, GetExecutionSchema, KillExecutionSchema, RerunExecutionSchema, GetExecutionLogsSchema, executionsToolDefinitions, executionsToolNames, } from "./tools/executions-tool-definitions.js"; | ||
| import { GetModulesSchema, CreateModuleSchema, GetModuleSchema, DeleteModuleSchema, GetModuleVersionsSchema, GetModuleVersionSchema, DeleteModuleVersionSchema, GetModuleAliasesSchema, modulesToolDefinitions, modulesToolNames, } from "./tools/modules-tool-definitions.js"; | ||
| import { GetModulesSchema, CreateModuleSchema, GetModuleSchema, UpdateModuleSchema, DeleteModuleSchema, GetModuleVersionsSchema, PublishModuleVersionSchema, GetModuleVersionSchema, DeleteModuleVersionSchema, GetModuleAliasesSchema, CreateModuleVersionAliasSchema, GetModuleVersionAliasSchema, DeleteModuleVersionAliasSchema, UpdateModuleVersionAliasSchema, modulesToolDefinitions, modulesWithVersionsToolDefinitions, modulesToolNames, } from "./tools/modules-tool-definitions.js"; | ||
| import { GetTokenSchema, GetAllServiceAccountsSchema, CreateServiceAccountSchema, DeleteServiceAccountSchema, authToolDefinitions, authToolNames, } from "./tools/auth-tool-definitions.js"; | ||
| const RUN_PROCESS_TOOL_NAME_PREFIX = "yc_"; | ||
| const RUN_PROCESS_TOOL_TAG = "mcp-tool"; | ||
| const RUN_CODE_TOOL_TAG = "run_code"; | ||
| const API_TOOL_TAG = "yc_api"; | ||
| const API_TOOL_TAGS = { | ||
| DEFAULT: "yc_api", | ||
| FULL: "yc_api_full", | ||
| }; | ||
| const DEFAULT_TOOL_TAGS = [RUN_CODE_TOOL_TAG, RUN_PROCESS_TOOL_TAG]; | ||
@@ -134,3 +138,4 @@ dotenv.config(); | ||
| const tools = []; | ||
| if (this.tools.includes(API_TOOL_TAG)) { | ||
| if (this.tools.includes(API_TOOL_TAGS.DEFAULT) || | ||
| this.tools.includes(API_TOOL_TAGS.FULL)) { | ||
| tools.push(...storageToolDefinitions); | ||
@@ -143,2 +148,7 @@ tools.push(...variablesToolDefinitions); | ||
| } | ||
| if (this.tools.includes(API_TOOL_TAGS.FULL)) { | ||
| tools.push(...processesWithVersionsToolDefinitions); | ||
| tools.push(...modulesWithVersionsToolDefinitions); | ||
| tools.push(...authToolDefinitions); | ||
| } | ||
| if (this.tools.includes(RUN_CODE_TOOL_TAG)) { | ||
@@ -361,2 +371,33 @@ const envVars = await this.yepCodeEnv.getEnvVars(); | ||
| }); | ||
| case schedulesToolNames.updateSchedule: | ||
| return this.handleToolRequest(UpdateScheduleSchema, request, async (data) => { | ||
| const { id, ...updateData } = data; | ||
| // Build the update object, handling input.parameters if it's a JSON string | ||
| const updatePayload = {}; | ||
| if (updateData.cron !== undefined) { | ||
| updatePayload.cron = updateData.cron; | ||
| } | ||
| if (updateData.dateTime !== undefined) { | ||
| updatePayload.dateTime = updateData.dateTime; | ||
| } | ||
| if (updateData.allowConcurrentExecutions !== undefined) { | ||
| updatePayload.allowConcurrentExecutions = | ||
| updateData.allowConcurrentExecutions; | ||
| } | ||
| if (updateData.input !== undefined) { | ||
| updatePayload.input = { ...updateData.input }; | ||
| // Parse parameters if it's a JSON string | ||
| if (updatePayload.input.parameters && | ||
| typeof updatePayload.input.parameters === "string") { | ||
| try { | ||
| updatePayload.input.parameters = JSON.parse(updatePayload.input.parameters); | ||
| } | ||
| catch (error) { | ||
| throw new Error(`Invalid JSON string for parameters: ${error}`); | ||
| } | ||
| } | ||
| } | ||
| const schedule = await this.yepCodeApi.updateSchedule(id, updatePayload); | ||
| return schedule; | ||
| }); | ||
| case processesToolNames.getProcesses: | ||
@@ -394,2 +435,8 @@ return this.handleToolRequest(GetProcessesSchema, request, async (data) => { | ||
| }); | ||
| case processesToolNames.updateProcess: | ||
| return this.handleToolRequest(UpdateProcessSchema, request, async (data) => { | ||
| const { identifier, ...rest } = data; | ||
| const process = await this.yepCodeApi.updateProcess(identifier, rest); | ||
| return process; | ||
| }); | ||
| case processesToolNames.deleteProcess: | ||
@@ -410,2 +457,69 @@ return this.handleToolRequest(DeleteProcessSchema, request, async (data) => { | ||
| }); | ||
| case processesToolNames.publishProcessVersion: | ||
| return this.handleToolRequest(PublishProcessVersionSchema, request, async (data) => { | ||
| const { processId, tag, readme, comment, sourceCode, parametersSchema, } = data; | ||
| const publishData = {}; | ||
| if (tag !== undefined) | ||
| publishData.tag = tag; | ||
| if (readme !== undefined) | ||
| publishData.readme = readme; | ||
| if (comment !== undefined) | ||
| publishData.comment = comment; | ||
| if (sourceCode !== undefined) | ||
| publishData.sourceCode = sourceCode; | ||
| if (parametersSchema !== undefined) | ||
| publishData.parametersSchema = parametersSchema; | ||
| const version = await this.yepCodeApi.publishProcessVersion(processId, publishData); | ||
| return version; | ||
| }); | ||
| case processesToolNames.getProcessVersion: | ||
| return this.handleToolRequest(GetProcessVersionSchema, request, async (data) => { | ||
| const version = await this.yepCodeApi.getProcessVersion(data.processId, data.versionId); | ||
| return version; | ||
| }); | ||
| case processesToolNames.deleteProcessVersion: | ||
| return this.handleToolRequest(DeleteProcessVersionSchema, request, async (data) => { | ||
| await this.yepCodeApi.deleteProcessVersion(data.processId, data.versionId); | ||
| return { | ||
| result: `Process version ${data.versionId} deleted successfully`, | ||
| }; | ||
| }); | ||
| case processesToolNames.getProcessVersionAliases: | ||
| return this.handleToolRequest(GetProcessVersionAliasesSchema, request, async (data) => { | ||
| const aliases = await this.yepCodeApi.getProcessVersionAliases(data.processId, { | ||
| versionId: data.versionId, | ||
| page: data.page, | ||
| limit: data.limit, | ||
| }); | ||
| return aliases; | ||
| }); | ||
| case processesToolNames.createProcessVersionAlias: | ||
| return this.handleToolRequest(CreateProcessVersionAliasSchema, request, async (data) => { | ||
| const { processId, ...aliasData } = data; | ||
| const alias = await this.yepCodeApi.createProcessVersionAlias(processId, aliasData); | ||
| return alias; | ||
| }); | ||
| case processesToolNames.getProcessVersionAlias: | ||
| return this.handleToolRequest(GetProcessVersionAliasSchema, request, async (data) => { | ||
| const alias = await this.yepCodeApi.getProcessVersionAlias(data.processId, data.aliasId); | ||
| return alias; | ||
| }); | ||
| case processesToolNames.deleteProcessVersionAlias: | ||
| return this.handleToolRequest(DeleteProcessVersionAliasSchema, request, async (data) => { | ||
| await this.yepCodeApi.deleteProcessVersionAlias(data.processId, data.aliasId); | ||
| return { | ||
| result: `Process version alias ${data.aliasId} deleted successfully`, | ||
| }; | ||
| }); | ||
| case processesToolNames.updateProcessVersionAlias: | ||
| return this.handleToolRequest(UpdateProcessVersionAliasSchema, request, async (data) => { | ||
| const { processId, aliasId, name, versionId } = data; | ||
| const updateData = {}; | ||
| if (name !== undefined) | ||
| updateData.name = name; | ||
| if (versionId !== undefined) | ||
| updateData.versionId = versionId; | ||
| const alias = await this.yepCodeApi.updateProcessVersionAlias(processId, aliasId, updateData); | ||
| return alias; | ||
| }); | ||
| case processesToolNames.executeProcessAsync: | ||
@@ -518,2 +632,8 @@ return this.handleToolRequest(ExecuteProcessAsyncSchema, request, async (data) => { | ||
| }); | ||
| case modulesToolNames.updateModule: | ||
| return this.handleToolRequest(UpdateModuleSchema, request, async (data) => { | ||
| const { id, ...updateData } = data; | ||
| const module = await this.yepCodeApi.updateModule(id, updateData); | ||
| return module; | ||
| }); | ||
| case modulesToolNames.deleteModule: | ||
@@ -532,2 +652,15 @@ return this.handleToolRequest(DeleteModuleSchema, request, async (data) => { | ||
| }); | ||
| case modulesToolNames.publishModuleVersion: | ||
| return this.handleToolRequest(PublishModuleVersionSchema, request, async (data) => { | ||
| const { moduleId, tag, comment, sourceCode } = data; | ||
| const publishData = {}; | ||
| if (tag !== undefined) | ||
| publishData.tag = tag; | ||
| if (comment !== undefined) | ||
| publishData.comment = comment; | ||
| if (sourceCode !== undefined) | ||
| publishData.sourceCode = sourceCode; | ||
| const version = await this.yepCodeApi.publishModuleVersion(moduleId, publishData); | ||
| return version; | ||
| }); | ||
| case modulesToolNames.getModuleVersion: | ||
@@ -548,2 +681,55 @@ return this.handleToolRequest(GetModuleVersionSchema, request, async (data) => { | ||
| }); | ||
| case modulesToolNames.createModuleVersionAlias: | ||
| return this.handleToolRequest(CreateModuleVersionAliasSchema, request, async (data) => { | ||
| const { moduleId, ...aliasData } = data; | ||
| const alias = await this.yepCodeApi.createModuleVersionAlias(moduleId, aliasData); | ||
| return alias; | ||
| }); | ||
| case modulesToolNames.getModuleVersionAlias: | ||
| return this.handleToolRequest(GetModuleVersionAliasSchema, request, async (data) => { | ||
| const alias = await this.yepCodeApi.getModuleVersionAlias(data.moduleId, data.aliasId); | ||
| return alias; | ||
| }); | ||
| case modulesToolNames.deleteModuleVersionAlias: | ||
| return this.handleToolRequest(DeleteModuleVersionAliasSchema, request, async (data) => { | ||
| await this.yepCodeApi.deleteModuleVersionAlias(data.moduleId, data.aliasId); | ||
| return { | ||
| result: `Module version alias ${data.aliasId} deleted successfully`, | ||
| }; | ||
| }); | ||
| case modulesToolNames.updateModuleVersionAlias: | ||
| return this.handleToolRequest(UpdateModuleVersionAliasSchema, request, async (data) => { | ||
| const { moduleId, aliasId, name, versionId } = data; | ||
| const updateData = {}; | ||
| if (name !== undefined) | ||
| updateData.name = name; | ||
| if (versionId !== undefined) | ||
| updateData.versionId = versionId; | ||
| const alias = await this.yepCodeApi.updateModuleVersionAlias(moduleId, aliasId, updateData); | ||
| return alias; | ||
| }); | ||
| case authToolNames.getToken: | ||
| return this.handleToolRequest(GetTokenSchema, request, async (data) => { | ||
| const token = await this.yepCodeApi.getToken(data.apiToken); | ||
| return token; | ||
| }); | ||
| case authToolNames.getAllServiceAccounts: | ||
| return this.handleToolRequest(GetAllServiceAccountsSchema, request, async () => { | ||
| const serviceAccounts = await this.yepCodeApi.getAllServiceAccounts(); | ||
| return serviceAccounts; | ||
| }); | ||
| case authToolNames.createServiceAccount: | ||
| return this.handleToolRequest(CreateServiceAccountSchema, request, async (data) => { | ||
| const serviceAccount = await this.yepCodeApi.createServiceAccount({ | ||
| name: data.name, | ||
| }); | ||
| return serviceAccount; | ||
| }); | ||
| case authToolNames.deleteServiceAccount: | ||
| return this.handleToolRequest(DeleteServiceAccountSchema, request, async (data) => { | ||
| await this.yepCodeApi.deleteServiceAccount(data.id); | ||
| return { | ||
| result: `Service account ${data.id} deleted successfully`, | ||
| }; | ||
| }); | ||
| default: | ||
@@ -550,0 +736,0 @@ this.logger.error(`Unknown tool requested: ${request.params.name}`); |
@@ -41,2 +41,15 @@ import { z } from "zod"; | ||
| }>; | ||
| export declare const UpdateModuleSchema: z.ZodObject<{ | ||
| id: z.ZodString; | ||
| name: z.ZodOptional<z.ZodString>; | ||
| sourceCode: z.ZodOptional<z.ZodString>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| id: string; | ||
| name?: string | undefined; | ||
| sourceCode?: string | undefined; | ||
| }, { | ||
| id: string; | ||
| name?: string | undefined; | ||
| sourceCode?: string | undefined; | ||
| }>; | ||
| export declare const DeleteModuleSchema: z.ZodObject<{ | ||
@@ -66,7 +79,7 @@ id: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| versionId: string; | ||
| moduleId: string; | ||
| }, { | ||
| versionId: string; | ||
| }, { | ||
| moduleId: string; | ||
| versionId: string; | ||
| }>; | ||
@@ -77,7 +90,23 @@ export declare const DeleteModuleVersionSchema: z.ZodObject<{ | ||
| }, "strip", z.ZodTypeAny, { | ||
| versionId: string; | ||
| moduleId: string; | ||
| }, { | ||
| versionId: string; | ||
| moduleId: string; | ||
| }>; | ||
| export declare const PublishModuleVersionSchema: z.ZodObject<{ | ||
| moduleId: z.ZodString; | ||
| tag: z.ZodOptional<z.ZodString>; | ||
| comment: z.ZodOptional<z.ZodString>; | ||
| sourceCode: z.ZodOptional<z.ZodString>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| moduleId: string; | ||
| comment?: string | undefined; | ||
| tag?: string | undefined; | ||
| sourceCode?: string | undefined; | ||
| }, { | ||
| moduleId: string; | ||
| versionId: string; | ||
| comment?: string | undefined; | ||
| tag?: string | undefined; | ||
| sourceCode?: string | undefined; | ||
| }>; | ||
@@ -100,2 +129,51 @@ export declare const GetModuleAliasesSchema: z.ZodObject<{ | ||
| }>; | ||
| export declare const CreateModuleVersionAliasSchema: z.ZodObject<{ | ||
| moduleId: z.ZodString; | ||
| name: z.ZodString; | ||
| versionId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| name: string; | ||
| versionId: string; | ||
| moduleId: string; | ||
| }, { | ||
| name: string; | ||
| versionId: string; | ||
| moduleId: string; | ||
| }>; | ||
| export declare const GetModuleVersionAliasSchema: z.ZodObject<{ | ||
| moduleId: z.ZodString; | ||
| aliasId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| aliasId: string; | ||
| moduleId: string; | ||
| }, { | ||
| aliasId: string; | ||
| moduleId: string; | ||
| }>; | ||
| export declare const DeleteModuleVersionAliasSchema: z.ZodObject<{ | ||
| moduleId: z.ZodString; | ||
| aliasId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| aliasId: string; | ||
| moduleId: string; | ||
| }, { | ||
| aliasId: string; | ||
| moduleId: string; | ||
| }>; | ||
| export declare const UpdateModuleVersionAliasSchema: z.ZodObject<{ | ||
| moduleId: z.ZodString; | ||
| aliasId: z.ZodString; | ||
| name: z.ZodOptional<z.ZodString>; | ||
| versionId: z.ZodOptional<z.ZodString>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| aliasId: string; | ||
| moduleId: string; | ||
| name?: string | undefined; | ||
| versionId?: string | undefined; | ||
| }, { | ||
| aliasId: string; | ||
| moduleId: string; | ||
| name?: string | undefined; | ||
| versionId?: string | undefined; | ||
| }>; | ||
| export declare const modulesToolNames: { | ||
@@ -105,7 +183,13 @@ readonly getModules: "get_modules"; | ||
| readonly getModule: "get_module"; | ||
| readonly updateModule: "update_module"; | ||
| readonly deleteModule: "delete_module"; | ||
| readonly getModuleVersions: "get_module_versions"; | ||
| readonly publishModuleVersion: "publish_module_version"; | ||
| readonly getModuleVersion: "get_module_version"; | ||
| readonly deleteModuleVersion: "delete_module_version"; | ||
| readonly getModuleAliases: "get_module_aliases"; | ||
| readonly createModuleVersionAlias: "create_module_version_alias"; | ||
| readonly getModuleVersionAlias: "get_module_version_alias"; | ||
| readonly deleteModuleVersionAlias: "delete_module_version_alias"; | ||
| readonly updateModuleVersionAlias: "update_module_version_alias"; | ||
| }; | ||
@@ -138,4 +222,3 @@ export declare const modulesToolDefinitions: ({ | ||
| id?: undefined; | ||
| moduleId?: undefined; | ||
| versionId?: undefined; | ||
| sourceCode?: undefined; | ||
| }; | ||
@@ -182,4 +265,3 @@ required?: undefined; | ||
| id?: undefined; | ||
| moduleId?: undefined; | ||
| versionId?: undefined; | ||
| sourceCode?: undefined; | ||
| }; | ||
@@ -207,4 +289,3 @@ required: string[]; | ||
| settings?: undefined; | ||
| moduleId?: undefined; | ||
| versionId?: undefined; | ||
| sourceCode?: undefined; | ||
| }; | ||
@@ -214,2 +295,31 @@ required: string[]; | ||
| } | { | ||
| name: "update_module"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| id: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| name: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| sourceCode: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| description?: undefined; | ||
| code?: undefined; | ||
| language?: undefined; | ||
| tags?: undefined; | ||
| settings?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "delete_module"; | ||
@@ -233,8 +343,8 @@ title: string; | ||
| settings?: undefined; | ||
| moduleId?: undefined; | ||
| versionId?: undefined; | ||
| sourceCode?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| })[]; | ||
| export declare const modulesWithVersionsToolDefinitions: ({ | ||
| name: "get_module_versions"; | ||
@@ -262,10 +372,8 @@ title: string; | ||
| }; | ||
| versionId?: undefined; | ||
| tag?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| name?: undefined; | ||
| description?: undefined; | ||
| code?: undefined; | ||
| language?: undefined; | ||
| tags?: undefined; | ||
| settings?: undefined; | ||
| id?: undefined; | ||
| versionId?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
@@ -291,9 +399,7 @@ required: string[]; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| name?: undefined; | ||
| description?: undefined; | ||
| code?: undefined; | ||
| language?: undefined; | ||
| tags?: undefined; | ||
| settings?: undefined; | ||
| id?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
@@ -319,9 +425,7 @@ required: string[]; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| name?: undefined; | ||
| description?: undefined; | ||
| code?: undefined; | ||
| language?: undefined; | ||
| tags?: undefined; | ||
| settings?: undefined; | ||
| id?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
@@ -357,12 +461,144 @@ required: string[]; | ||
| }; | ||
| tag?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| name?: undefined; | ||
| description?: undefined; | ||
| code?: undefined; | ||
| language?: undefined; | ||
| tags?: undefined; | ||
| settings?: undefined; | ||
| id?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "publish_module_version"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| moduleId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| tag: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| comment: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| sourceCode: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| versionId?: undefined; | ||
| name?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "create_module_version_alias"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| moduleId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| name: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| versionId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "get_module_version_alias"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| aliasId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| moduleId?: undefined; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| versionId?: undefined; | ||
| tag?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| name?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "delete_module_version_alias"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| aliasId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| moduleId?: undefined; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| versionId?: undefined; | ||
| tag?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| name?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "update_module_version_alias"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| moduleId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| aliasId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| name: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| versionId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| })[]; |
| import { z } from "zod"; | ||
| // Schema for getting modules with pagination | ||
| export const GetModulesSchema = z.object({ | ||
| page: z.number().int().min(0).default(0).optional().describe("Page number for pagination (0-based index)"), | ||
| limit: z.number().int().min(1).max(100).default(10).optional().describe("Maximum number of modules to retrieve per page"), | ||
| page: z | ||
| .number() | ||
| .int() | ||
| .min(0) | ||
| .default(0) | ||
| .optional() | ||
| .describe("Page number for pagination (0-based index)"), | ||
| limit: z | ||
| .number() | ||
| .int() | ||
| .min(1) | ||
| .max(100) | ||
| .default(10) | ||
| .optional() | ||
| .describe("Maximum number of modules to retrieve per page"), | ||
| }); | ||
@@ -18,7 +31,25 @@ // Schema for creating a module | ||
| export const GetModuleSchema = z.object({ | ||
| id: z.string().describe("Unique identifier (UUID) of the script library module to retrieve"), | ||
| id: z | ||
| .string() | ||
| .describe("Unique identifier (UUID) of the script library module to retrieve"), | ||
| }); | ||
| // Schema for updating a module | ||
| export const UpdateModuleSchema = z.object({ | ||
| id: z | ||
| .string() | ||
| .describe("Unique identifier (UUID) of the script library module to update"), | ||
| name: z | ||
| .string() | ||
| .optional() | ||
| .describe("The name of the script library. Must not have spaces, dashes and dots are allowed"), | ||
| sourceCode: z | ||
| .string() | ||
| .optional() | ||
| .describe("The updated source code of the script library module. This is the reusable code that can be imported by processes."), | ||
| }); | ||
| // Schema for deleting a module | ||
| export const DeleteModuleSchema = z.object({ | ||
| id: z.string().describe("Unique identifier (UUID) of the script library module to delete"), | ||
| id: z | ||
| .string() | ||
| .describe("Unique identifier (UUID) of the script library module to delete"), | ||
| }); | ||
@@ -29,3 +60,10 @@ // Schema for getting module versions | ||
| page: z.number().int().min(0).default(0).optional().describe("Page number"), | ||
| limit: z.number().int().min(1).max(100).default(10).optional().describe("Amount of items to retrieve"), | ||
| limit: z | ||
| .number() | ||
| .int() | ||
| .min(1) | ||
| .max(100) | ||
| .default(10) | ||
| .optional() | ||
| .describe("Amount of items to retrieve"), | ||
| }); | ||
@@ -42,2 +80,9 @@ // Schema for getting a specific module version | ||
| }); | ||
| // Schema for publishing a module version | ||
| export const PublishModuleVersionSchema = z.object({ | ||
| moduleId: z.string().describe("Module ID"), | ||
| tag: z.string().optional().describe("Version tag"), | ||
| comment: z.string().optional().describe("Version comment"), | ||
| sourceCode: z.string().optional().describe("Module source code"), | ||
| }); | ||
| // Schema for getting module aliases | ||
@@ -48,4 +93,39 @@ export const GetModuleAliasesSchema = z.object({ | ||
| page: z.number().int().min(0).default(0).optional().describe("Page number"), | ||
| limit: z.number().int().min(1).max(100).default(10).optional().describe("Amount of items to retrieve"), | ||
| limit: z | ||
| .number() | ||
| .int() | ||
| .min(1) | ||
| .max(100) | ||
| .default(10) | ||
| .optional() | ||
| .describe("Amount of items to retrieve"), | ||
| }); | ||
| // Schema for creating a module version alias | ||
| export const CreateModuleVersionAliasSchema = z.object({ | ||
| moduleId: z.string().describe("Module ID"), | ||
| name: z.string().describe("Alias name"), | ||
| versionId: z | ||
| .string() | ||
| .describe("The version id of the script library being aliased"), | ||
| }); | ||
| // Schema for getting a specific module version alias | ||
| export const GetModuleVersionAliasSchema = z.object({ | ||
| moduleId: z.string().describe("Module ID"), | ||
| aliasId: z.string().describe("Alias ID"), | ||
| }); | ||
| // Schema for deleting a module version alias | ||
| export const DeleteModuleVersionAliasSchema = z.object({ | ||
| moduleId: z.string().describe("Module ID"), | ||
| aliasId: z.string().describe("Alias ID"), | ||
| }); | ||
| // Schema for updating a module version alias | ||
| export const UpdateModuleVersionAliasSchema = z.object({ | ||
| moduleId: z.string().describe("Module ID"), | ||
| aliasId: z.string().describe("Alias ID"), | ||
| name: z.string().optional().describe("Alias name"), | ||
| versionId: z | ||
| .string() | ||
| .optional() | ||
| .describe("The version id of the script library being aliased"), | ||
| }); | ||
| // Tool names | ||
@@ -56,7 +136,13 @@ export const modulesToolNames = { | ||
| getModule: "get_module", | ||
| updateModule: "update_module", | ||
| deleteModule: "delete_module", | ||
| getModuleVersions: "get_module_versions", | ||
| publishModuleVersion: "publish_module_version", | ||
| getModuleVersion: "get_module_version", | ||
| deleteModuleVersion: "delete_module_version", | ||
| getModuleAliases: "get_module_aliases", | ||
| createModuleVersionAlias: "create_module_version_alias", | ||
| getModuleVersionAlias: "get_module_version_alias", | ||
| deleteModuleVersionAlias: "delete_module_version_alias", | ||
| updateModuleVersionAlias: "update_module_version_alias", | ||
| }; | ||
@@ -140,5 +226,28 @@ // Tool definitions | ||
| { | ||
| name: modulesToolNames.updateModule, | ||
| title: "Update Module", | ||
| description: "Updates an existing script library module with new source code or metadata. All provided fields will replace the existing values.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| id: { | ||
| type: "string", | ||
| description: "Unique identifier (UUID) of the script library module to update", | ||
| }, | ||
| name: { | ||
| type: "string", | ||
| description: "The name of the script library. Must not have spaces, dashes and dots are allowed", | ||
| }, | ||
| sourceCode: { | ||
| type: "string", | ||
| description: "The updated source code of the script library module. This is the reusable code that can be imported by processes.", | ||
| }, | ||
| }, | ||
| required: ["id"], | ||
| }, | ||
| }, | ||
| { | ||
| name: modulesToolNames.deleteModule, | ||
| title: "Delete Module", | ||
| description: "Deletes a script library module and all its versions. This action cannot be undone.", | ||
| description: "Permanently deletes a script library module. This action cannot be undone and may affect processes that import this module.", | ||
| inputSchema: { | ||
@@ -155,2 +264,4 @@ type: "object", | ||
| }, | ||
| ]; | ||
| export const modulesWithVersionsToolDefinitions = [ | ||
| { | ||
@@ -252,2 +363,109 @@ name: modulesToolNames.getModuleVersions, | ||
| }, | ||
| { | ||
| name: modulesToolNames.publishModuleVersion, | ||
| title: "Publish Module Version", | ||
| description: "Publishes a new version of a module.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| moduleId: { | ||
| type: "string", | ||
| description: "Module ID", | ||
| }, | ||
| tag: { | ||
| type: "string", | ||
| description: "Version tag", | ||
| }, | ||
| comment: { | ||
| type: "string", | ||
| description: "Version comment", | ||
| }, | ||
| sourceCode: { | ||
| type: "string", | ||
| description: "Module source code", | ||
| }, | ||
| }, | ||
| required: ["moduleId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: modulesToolNames.createModuleVersionAlias, | ||
| title: "Create Module Version Alias", | ||
| description: "Creates a new alias for a module version.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| moduleId: { | ||
| type: "string", | ||
| description: "Module ID", | ||
| }, | ||
| name: { | ||
| type: "string", | ||
| description: "Alias name", | ||
| }, | ||
| versionId: { | ||
| type: "string", | ||
| description: "The version id of the script library being aliased", | ||
| }, | ||
| }, | ||
| required: ["moduleId", "name", "versionId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: modulesToolNames.getModuleVersionAlias, | ||
| title: "Get Module Version Alias", | ||
| description: "Retrieves detailed information about a specific module version alias.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| aliasId: { | ||
| type: "string", | ||
| description: "Alias ID", | ||
| }, | ||
| }, | ||
| required: ["moduleId", "aliasId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: modulesToolNames.deleteModuleVersionAlias, | ||
| title: "Delete Module Version Alias", | ||
| description: "Permanently deletes a module version alias. This action cannot be undone.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| aliasId: { | ||
| type: "string", | ||
| description: "Alias ID", | ||
| }, | ||
| }, | ||
| required: ["moduleId", "aliasId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: modulesToolNames.updateModuleVersionAlias, | ||
| title: "Update Module Version Alias", | ||
| description: "Updates an existing module version alias with new configuration. All provided fields will replace the existing values.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| moduleId: { | ||
| type: "string", | ||
| description: "Module ID", | ||
| }, | ||
| aliasId: { | ||
| type: "string", | ||
| description: "Alias ID", | ||
| }, | ||
| name: { | ||
| type: "string", | ||
| description: "Alias name", | ||
| }, | ||
| versionId: { | ||
| type: "string", | ||
| description: "The version id of the script library being aliased", | ||
| }, | ||
| }, | ||
| required: ["moduleId", "aliasId"], | ||
| }, | ||
| }, | ||
| ]; |
@@ -69,2 +69,39 @@ import { z } from "zod"; | ||
| }>; | ||
| export declare const UpdateProcessSchema: z.ZodObject<{ | ||
| identifier: z.ZodString; | ||
| name: z.ZodOptional<z.ZodString>; | ||
| slug: z.ZodOptional<z.ZodString>; | ||
| description: z.ZodOptional<z.ZodString>; | ||
| readme: z.ZodOptional<z.ZodString>; | ||
| sourceCode: z.ZodOptional<z.ZodString>; | ||
| parametersSchema: z.ZodOptional<z.ZodString>; | ||
| webhook: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; | ||
| settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; | ||
| manifest: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>; | ||
| tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| identifier: string; | ||
| settings?: Record<string, any> | undefined; | ||
| tags?: string[] | undefined; | ||
| name?: string | undefined; | ||
| slug?: string | undefined; | ||
| description?: string | undefined; | ||
| readme?: string | undefined; | ||
| sourceCode?: string | undefined; | ||
| parametersSchema?: string | undefined; | ||
| webhook?: Record<string, any> | undefined; | ||
| manifest?: Record<string, any> | undefined; | ||
| }, { | ||
| identifier: string; | ||
| settings?: Record<string, any> | undefined; | ||
| tags?: string[] | undefined; | ||
| name?: string | undefined; | ||
| slug?: string | undefined; | ||
| description?: string | undefined; | ||
| readme?: string | undefined; | ||
| sourceCode?: string | undefined; | ||
| parametersSchema?: string | undefined; | ||
| webhook?: Record<string, any> | undefined; | ||
| manifest?: Record<string, any> | undefined; | ||
| }>; | ||
| export declare const GetProcessVersionsSchema: z.ZodObject<{ | ||
@@ -83,2 +120,109 @@ processId: z.ZodString; | ||
| }>; | ||
| export declare const PublishProcessVersionSchema: z.ZodObject<{ | ||
| processId: z.ZodString; | ||
| tag: z.ZodOptional<z.ZodString>; | ||
| readme: z.ZodOptional<z.ZodString>; | ||
| comment: z.ZodOptional<z.ZodString>; | ||
| sourceCode: z.ZodOptional<z.ZodString>; | ||
| parametersSchema: z.ZodOptional<z.ZodString>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| processId: string; | ||
| comment?: string | undefined; | ||
| tag?: string | undefined; | ||
| readme?: string | undefined; | ||
| sourceCode?: string | undefined; | ||
| parametersSchema?: string | undefined; | ||
| }, { | ||
| processId: string; | ||
| comment?: string | undefined; | ||
| tag?: string | undefined; | ||
| readme?: string | undefined; | ||
| sourceCode?: string | undefined; | ||
| parametersSchema?: string | undefined; | ||
| }>; | ||
| export declare const GetProcessVersionSchema: z.ZodObject<{ | ||
| processId: z.ZodString; | ||
| versionId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| processId: string; | ||
| versionId: string; | ||
| }, { | ||
| processId: string; | ||
| versionId: string; | ||
| }>; | ||
| export declare const DeleteProcessVersionSchema: z.ZodObject<{ | ||
| processId: z.ZodString; | ||
| versionId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| processId: string; | ||
| versionId: string; | ||
| }, { | ||
| processId: string; | ||
| versionId: string; | ||
| }>; | ||
| export declare const GetProcessVersionAliasesSchema: z.ZodObject<{ | ||
| processId: z.ZodString; | ||
| versionId: z.ZodOptional<z.ZodString>; | ||
| page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; | ||
| limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| processId: string; | ||
| page?: number | undefined; | ||
| limit?: number | undefined; | ||
| versionId?: string | undefined; | ||
| }, { | ||
| processId: string; | ||
| page?: number | undefined; | ||
| limit?: number | undefined; | ||
| versionId?: string | undefined; | ||
| }>; | ||
| export declare const CreateProcessVersionAliasSchema: z.ZodObject<{ | ||
| processId: z.ZodString; | ||
| name: z.ZodString; | ||
| versionId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| processId: string; | ||
| name: string; | ||
| versionId: string; | ||
| }, { | ||
| processId: string; | ||
| name: string; | ||
| versionId: string; | ||
| }>; | ||
| export declare const GetProcessVersionAliasSchema: z.ZodObject<{ | ||
| processId: z.ZodString; | ||
| aliasId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| processId: string; | ||
| aliasId: string; | ||
| }, { | ||
| processId: string; | ||
| aliasId: string; | ||
| }>; | ||
| export declare const DeleteProcessVersionAliasSchema: z.ZodObject<{ | ||
| processId: z.ZodString; | ||
| aliasId: z.ZodString; | ||
| }, "strip", z.ZodTypeAny, { | ||
| processId: string; | ||
| aliasId: string; | ||
| }, { | ||
| processId: string; | ||
| aliasId: string; | ||
| }>; | ||
| export declare const UpdateProcessVersionAliasSchema: z.ZodObject<{ | ||
| processId: z.ZodString; | ||
| aliasId: z.ZodString; | ||
| name: z.ZodOptional<z.ZodString>; | ||
| versionId: z.ZodOptional<z.ZodString>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| processId: string; | ||
| aliasId: string; | ||
| name?: string | undefined; | ||
| versionId?: string | undefined; | ||
| }, { | ||
| processId: string; | ||
| aliasId: string; | ||
| name?: string | undefined; | ||
| versionId?: string | undefined; | ||
| }>; | ||
| export declare const ExecuteProcessSettingsSchema: z.ZodObject<{ | ||
@@ -194,4 +338,13 @@ agentPoolSlug: z.ZodOptional<z.ZodString>; | ||
| readonly getProcess: "get_process"; | ||
| readonly updateProcess: "update_process"; | ||
| readonly deleteProcess: "delete_process"; | ||
| readonly getProcessVersions: "get_process_versions"; | ||
| readonly publishProcessVersion: "publish_process_version"; | ||
| readonly getProcessVersion: "get_process_version"; | ||
| readonly deleteProcessVersion: "delete_process_version"; | ||
| readonly getProcessVersionAliases: "get_process_version_aliases"; | ||
| readonly createProcessVersionAlias: "create_process_version_alias"; | ||
| readonly getProcessVersionAlias: "get_process_version_alias"; | ||
| readonly deleteProcessVersionAlias: "delete_process_version_alias"; | ||
| readonly updateProcessVersionAlias: "update_process_version_alias"; | ||
| readonly executeProcessAsync: "execute_process_async"; | ||
@@ -242,3 +395,2 @@ readonly executeProcessSync: "execute_process_sync"; | ||
| identifier?: undefined; | ||
| processId?: undefined; | ||
| parameters?: undefined; | ||
@@ -314,3 +466,2 @@ tag?: undefined; | ||
| identifier?: undefined; | ||
| processId?: undefined; | ||
| parameters?: undefined; | ||
@@ -351,3 +502,2 @@ tag?: undefined; | ||
| settings?: undefined; | ||
| processId?: undefined; | ||
| parameters?: undefined; | ||
@@ -364,3 +514,3 @@ tag?: undefined; | ||
| } | { | ||
| name: "delete_process"; | ||
| name: "update_process"; | ||
| title: string; | ||
@@ -375,17 +525,50 @@ description: string; | ||
| }; | ||
| name: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| slug: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| description: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| readme: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| sourceCode: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| parametersSchema: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| webhook: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| settings: { | ||
| type: string; | ||
| description: string; | ||
| properties?: undefined; | ||
| }; | ||
| manifest: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| tags: { | ||
| type: string; | ||
| items: { | ||
| type: string; | ||
| }; | ||
| description: string; | ||
| }; | ||
| keywords?: undefined; | ||
| tags?: undefined; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| name?: undefined; | ||
| slug?: undefined; | ||
| description?: undefined; | ||
| readme?: undefined; | ||
| programmingLanguage?: undefined; | ||
| sourceCode?: undefined; | ||
| parametersSchema?: undefined; | ||
| webhook?: undefined; | ||
| manifest?: undefined; | ||
| settings?: undefined; | ||
| processId?: undefined; | ||
| parameters?: undefined; | ||
@@ -402,3 +585,3 @@ tag?: undefined; | ||
| } | { | ||
| name: "get_process_versions"; | ||
| name: "delete_process"; | ||
| title: string; | ||
@@ -409,20 +592,10 @@ description: string; | ||
| properties: { | ||
| processId: { | ||
| identifier: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page: { | ||
| type: string; | ||
| format: string; | ||
| default: number; | ||
| description: string; | ||
| }; | ||
| limit: { | ||
| type: string; | ||
| format: string; | ||
| default: number; | ||
| description: string; | ||
| }; | ||
| keywords?: undefined; | ||
| tags?: undefined; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| name?: undefined; | ||
@@ -438,3 +611,2 @@ slug?: undefined; | ||
| settings?: undefined; | ||
| identifier?: undefined; | ||
| parameters?: undefined; | ||
@@ -504,3 +676,2 @@ tag?: undefined; | ||
| manifest?: undefined; | ||
| processId?: undefined; | ||
| type?: undefined; | ||
@@ -566,3 +737,2 @@ cron?: undefined; | ||
| manifest?: undefined; | ||
| processId?: undefined; | ||
| type?: undefined; | ||
@@ -620,3 +790,2 @@ cron?: undefined; | ||
| manifest?: undefined; | ||
| processId?: undefined; | ||
| tag?: undefined; | ||
@@ -629,1 +798,283 @@ comment?: undefined; | ||
| })[]; | ||
| export declare const processesWithVersionsToolDefinitions: ({ | ||
| name: "get_process_versions"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| processId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page: { | ||
| type: string; | ||
| format: string; | ||
| default: number; | ||
| description: string; | ||
| }; | ||
| limit: { | ||
| type: string; | ||
| format: string; | ||
| default: number; | ||
| description: string; | ||
| }; | ||
| tag?: undefined; | ||
| readme?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| parametersSchema?: undefined; | ||
| versionId?: undefined; | ||
| name?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "publish_process_version"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| processId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| tag: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| readme: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| comment: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| sourceCode: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| parametersSchema: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| versionId?: undefined; | ||
| name?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "get_process_version"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| processId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| versionId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| readme?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| parametersSchema?: undefined; | ||
| name?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "delete_process_version"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| processId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| versionId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| readme?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| parametersSchema?: undefined; | ||
| name?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "get_process_version_aliases"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| processId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| versionId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page: { | ||
| type: string; | ||
| format: string; | ||
| default: number; | ||
| description: string; | ||
| }; | ||
| limit: { | ||
| type: string; | ||
| format: string; | ||
| default: number; | ||
| description: string; | ||
| }; | ||
| tag?: undefined; | ||
| readme?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| parametersSchema?: undefined; | ||
| name?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "create_process_version_alias"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| processId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| name: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| versionId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| readme?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| parametersSchema?: undefined; | ||
| aliasId?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "get_process_version_alias"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| processId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| aliasId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| readme?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| parametersSchema?: undefined; | ||
| versionId?: undefined; | ||
| name?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "delete_process_version_alias"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| processId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| aliasId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| readme?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| parametersSchema?: undefined; | ||
| versionId?: undefined; | ||
| name?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "update_process_version_alias"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| processId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| aliasId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| name: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| versionId: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| tag?: undefined; | ||
| readme?: undefined; | ||
| comment?: undefined; | ||
| sourceCode?: undefined; | ||
| parametersSchema?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| })[]; |
@@ -84,2 +84,48 @@ import { z } from "zod"; | ||
| }); | ||
| // Schema for updating a process | ||
| export const UpdateProcessSchema = z.object({ | ||
| identifier: z | ||
| .string() | ||
| .describe("Unique identifier of the process to update (UUID or slug)"), | ||
| name: z | ||
| .string() | ||
| .optional() | ||
| .describe("The updated name of the process. This will be displayed in the UI and used for identification."), | ||
| slug: z | ||
| .string() | ||
| .optional() | ||
| .describe("The updated unique identifier for the process. Used in URLs and API calls. Must be URL-safe (lowercase, hyphens, no spaces)."), | ||
| description: z | ||
| .string() | ||
| .optional() | ||
| .describe("The updated detailed description of what the process does. This helps users understand the process purpose and functionality."), | ||
| readme: z | ||
| .string() | ||
| .optional() | ||
| .describe("The updated markdown documentation for the process. This can include usage instructions, examples, and additional context."), | ||
| sourceCode: z | ||
| .string() | ||
| .optional() | ||
| .describe("The updated source code of the process. This is the executable code that will run when the process is executed."), | ||
| parametersSchema: z | ||
| .string() | ||
| .optional() | ||
| .describe("The updated JSON Schema defining the input parameters for the process. This schema is used to generate forms in the UI and validate input data."), | ||
| webhook: z | ||
| .record(z.any()) | ||
| .optional() | ||
| .describe("Updated webhook configuration for the process. Defines how the process can be triggered via HTTP webhooks."), | ||
| settings: z | ||
| .record(z.any()) | ||
| .optional() | ||
| .describe("Updated process settings and configuration options. Includes publication settings, form configurations, and dependencies."), | ||
| manifest: z | ||
| .record(z.any()) | ||
| .optional() | ||
| .describe("Updated process manifest configuration. Contains metadata and configuration for the process deployment and execution."), | ||
| tags: z | ||
| .array(z.string()) | ||
| .optional() | ||
| .describe("Updated tags for categorizing and organizing processes. Used for filtering and grouping in the UI."), | ||
| }); | ||
| // Schema for getting process versions | ||
@@ -98,2 +144,64 @@ export const GetProcessVersionsSchema = z.object({ | ||
| }); | ||
| // Schema for publishing a process version | ||
| export const PublishProcessVersionSchema = z.object({ | ||
| processId: z.string().describe("Process ID"), | ||
| tag: z.string().optional().describe("Version tag"), | ||
| readme: z.string().optional().describe("Version readme"), | ||
| comment: z.string().optional().describe("Version comment"), | ||
| sourceCode: z.string().optional().describe("Process source code"), | ||
| parametersSchema: z | ||
| .string() | ||
| .optional() | ||
| .describe("JSON Schema defining the input parameters for the process version"), | ||
| }); | ||
| // Schema for getting a specific process version | ||
| export const GetProcessVersionSchema = z.object({ | ||
| processId: z.string().describe("Process ID"), | ||
| versionId: z.string().describe("Version ID"), | ||
| }); | ||
| // Schema for deleting a process version | ||
| export const DeleteProcessVersionSchema = z.object({ | ||
| processId: z.string().describe("Process ID"), | ||
| versionId: z.string().describe("Version ID"), | ||
| }); | ||
| // Schema for getting process version aliases | ||
| export const GetProcessVersionAliasesSchema = z.object({ | ||
| processId: z.string().describe("Process ID"), | ||
| versionId: z.string().optional().describe("Version ID"), | ||
| page: z.number().int().min(0).default(0).optional().describe("Page number"), | ||
| limit: z | ||
| .number() | ||
| .int() | ||
| .min(1) | ||
| .max(100) | ||
| .default(10) | ||
| .optional() | ||
| .describe("Amount of items to retrieve"), | ||
| }); | ||
| // Schema for creating a process version alias | ||
| export const CreateProcessVersionAliasSchema = z.object({ | ||
| processId: z.string().describe("Process ID"), | ||
| name: z.string().describe("Alias name"), | ||
| versionId: z.string().describe("The version id of the process being aliased"), | ||
| }); | ||
| // Schema for getting a specific process version alias | ||
| export const GetProcessVersionAliasSchema = z.object({ | ||
| processId: z.string().describe("Process ID"), | ||
| aliasId: z.string().describe("Alias ID"), | ||
| }); | ||
| // Schema for deleting a process version alias | ||
| export const DeleteProcessVersionAliasSchema = z.object({ | ||
| processId: z.string().describe("Process ID"), | ||
| aliasId: z.string().describe("Alias ID"), | ||
| }); | ||
| // Schema for updating a process version alias | ||
| export const UpdateProcessVersionAliasSchema = z.object({ | ||
| processId: z.string().describe("Process ID"), | ||
| aliasId: z.string().describe("Alias ID"), | ||
| name: z.string().optional().describe("Alias name"), | ||
| versionId: z | ||
| .string() | ||
| .optional() | ||
| .describe("The version id of the process being aliased"), | ||
| }); | ||
| // Schema for execution settings | ||
@@ -175,4 +283,13 @@ export const ExecuteProcessSettingsSchema = z.object({ | ||
| getProcess: "get_process", | ||
| updateProcess: "update_process", | ||
| deleteProcess: "delete_process", | ||
| getProcessVersions: "get_process_versions", | ||
| publishProcessVersion: "publish_process_version", | ||
| getProcessVersion: "get_process_version", | ||
| deleteProcessVersion: "delete_process_version", | ||
| getProcessVersionAliases: "get_process_version_aliases", | ||
| createProcessVersionAlias: "create_process_version_alias", | ||
| getProcessVersionAlias: "get_process_version_alias", | ||
| deleteProcessVersionAlias: "delete_process_version_alias", | ||
| updateProcessVersionAlias: "update_process_version_alias", | ||
| executeProcessAsync: "execute_process_async", | ||
@@ -288,5 +405,5 @@ executeProcessSync: "execute_process_sync", | ||
| { | ||
| name: processesToolNames.deleteProcess, | ||
| title: "Delete Process", | ||
| description: "Deletes a process and all its versions. This action cannot be undone.", | ||
| name: processesToolNames.updateProcess, | ||
| title: "Update Process", | ||
| description: "Updates an existing process with new configuration, source code, or metadata. All fields provided will replace the existing values.", | ||
| inputSchema: { | ||
@@ -297,4 +414,45 @@ type: "object", | ||
| type: "string", | ||
| description: "Unique identifier of the process to delete (UUID or slug)", | ||
| description: "Unique identifier of the process to update (UUID or slug)", | ||
| }, | ||
| name: { | ||
| type: "string", | ||
| description: "The updated name of the process. This will be displayed in the UI and used for identification.", | ||
| }, | ||
| slug: { | ||
| type: "string", | ||
| description: "The updated unique identifier for the process. Used in URLs and API calls. Must be URL-safe (lowercase, hyphens, no spaces).", | ||
| }, | ||
| description: { | ||
| type: "string", | ||
| description: "The updated detailed description of what the process does. This helps users understand the process purpose and functionality.", | ||
| }, | ||
| readme: { | ||
| type: "string", | ||
| description: "The updated markdown documentation for the process. This can include usage instructions, examples, and additional context.", | ||
| }, | ||
| sourceCode: { | ||
| type: "string", | ||
| description: "The updated source code of the process. This is the executable code that will run when the process is executed.", | ||
| }, | ||
| parametersSchema: { | ||
| type: "string", | ||
| description: "The updated JSON Schema defining the input parameters for the process. This schema is used to generate forms in the UI and validate input data.", | ||
| }, | ||
| webhook: { | ||
| type: "object", | ||
| description: "Updated webhook configuration for the process. Defines how the process can be triggered via HTTP webhooks.", | ||
| }, | ||
| settings: { | ||
| type: "object", | ||
| description: "Updated process settings and configuration options. Includes publication settings, form configurations, and dependencies.", | ||
| }, | ||
| manifest: { | ||
| type: "object", | ||
| description: "Updated process manifest configuration. Contains metadata and configuration for the process deployment and execution.", | ||
| }, | ||
| tags: { | ||
| type: "array", | ||
| items: { type: "string" }, | ||
| description: "Updated tags for categorizing and organizing processes. Used for filtering and grouping in the UI.", | ||
| }, | ||
| }, | ||
@@ -305,26 +463,14 @@ required: ["identifier"], | ||
| { | ||
| name: processesToolNames.getProcessVersions, | ||
| title: "Get Process Versions", | ||
| description: "Retrieves a paginated list of versions for a specific process.", | ||
| name: processesToolNames.deleteProcess, | ||
| title: "Delete Process", | ||
| description: "Deletes a process and all its versions. This action cannot be undone.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| identifier: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| description: "Unique identifier of the process to delete (UUID or slug)", | ||
| }, | ||
| page: { | ||
| type: "integer", | ||
| format: "int32", | ||
| default: 0, | ||
| description: "Page number", | ||
| }, | ||
| limit: { | ||
| type: "integer", | ||
| format: "int32", | ||
| default: 10, | ||
| description: "Amount of items to retrieve", | ||
| }, | ||
| }, | ||
| required: ["processId"], | ||
| required: ["identifier"], | ||
| }, | ||
@@ -459,1 +605,222 @@ }, | ||
| ]; | ||
| export const processesWithVersionsToolDefinitions = [ | ||
| { | ||
| name: processesToolNames.getProcessVersions, | ||
| title: "Get Process Versions", | ||
| description: "Retrieves a paginated list of versions for a specific process.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| }, | ||
| page: { | ||
| type: "integer", | ||
| format: "int32", | ||
| default: 0, | ||
| description: "Page number", | ||
| }, | ||
| limit: { | ||
| type: "integer", | ||
| format: "int32", | ||
| default: 10, | ||
| description: "Amount of items to retrieve", | ||
| }, | ||
| }, | ||
| required: ["processId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: processesToolNames.publishProcessVersion, | ||
| title: "Publish Process Version", | ||
| description: "Publishes a new version of a process.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| }, | ||
| tag: { | ||
| type: "string", | ||
| description: "Version tag", | ||
| }, | ||
| readme: { | ||
| type: "string", | ||
| description: "Version readme", | ||
| }, | ||
| comment: { | ||
| type: "string", | ||
| description: "Version comment", | ||
| }, | ||
| sourceCode: { | ||
| type: "string", | ||
| description: "Process source code", | ||
| }, | ||
| parametersSchema: { | ||
| type: "string", | ||
| description: "JSON Schema defining the input parameters for the process version", | ||
| }, | ||
| }, | ||
| required: ["processId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: processesToolNames.getProcessVersion, | ||
| title: "Get Process Version", | ||
| description: "Retrieves detailed information about a specific process version.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| }, | ||
| versionId: { | ||
| type: "string", | ||
| description: "Version ID", | ||
| }, | ||
| }, | ||
| required: ["processId", "versionId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: processesToolNames.deleteProcessVersion, | ||
| title: "Delete Process Version", | ||
| description: "Deletes a specific process version. This action cannot be undone.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| }, | ||
| versionId: { | ||
| type: "string", | ||
| description: "Version ID", | ||
| }, | ||
| }, | ||
| required: ["processId", "versionId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: processesToolNames.getProcessVersionAliases, | ||
| title: "Get Process Version Aliases", | ||
| description: "Retrieves a paginated list of version aliases for a specific process.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| }, | ||
| versionId: { | ||
| type: "string", | ||
| description: "Version ID", | ||
| }, | ||
| page: { | ||
| type: "integer", | ||
| format: "int32", | ||
| default: 0, | ||
| description: "Page number", | ||
| }, | ||
| limit: { | ||
| type: "integer", | ||
| format: "int32", | ||
| default: 10, | ||
| description: "Amount of items to retrieve", | ||
| }, | ||
| }, | ||
| required: ["processId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: processesToolNames.createProcessVersionAlias, | ||
| title: "Create Process Version Alias", | ||
| description: "Creates a new alias for a process version.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| }, | ||
| name: { | ||
| type: "string", | ||
| description: "Alias name", | ||
| }, | ||
| versionId: { | ||
| type: "string", | ||
| description: "The version id of the process being aliased", | ||
| }, | ||
| }, | ||
| required: ["processId", "name", "versionId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: processesToolNames.getProcessVersionAlias, | ||
| title: "Get Process Version Alias", | ||
| description: "Retrieves detailed information about a specific process version alias.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| }, | ||
| aliasId: { | ||
| type: "string", | ||
| description: "Alias ID", | ||
| }, | ||
| }, | ||
| required: ["processId", "aliasId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: processesToolNames.deleteProcessVersionAlias, | ||
| title: "Delete Process Version Alias", | ||
| description: "Permanently deletes a process version alias. This action cannot be undone.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| }, | ||
| aliasId: { | ||
| type: "string", | ||
| description: "Alias ID", | ||
| }, | ||
| }, | ||
| required: ["processId", "aliasId"], | ||
| }, | ||
| }, | ||
| { | ||
| name: processesToolNames.updateProcessVersionAlias, | ||
| title: "Update Process Version Alias", | ||
| description: "Updates an existing process version alias with new configuration. All provided fields will replace the existing values.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| processId: { | ||
| type: "string", | ||
| description: "Process ID", | ||
| }, | ||
| aliasId: { | ||
| type: "string", | ||
| description: "Alias ID", | ||
| }, | ||
| name: { | ||
| type: "string", | ||
| description: "Alias name", | ||
| }, | ||
| versionId: { | ||
| type: "string", | ||
| description: "The version id of the process being aliased", | ||
| }, | ||
| }, | ||
| required: ["processId", "aliasId"], | ||
| }, | ||
| }, | ||
| ]; |
@@ -46,2 +46,67 @@ import { z } from "zod"; | ||
| }>; | ||
| export declare const UpdateScheduleSchema: z.ZodObject<{ | ||
| id: z.ZodString; | ||
| cron: z.ZodOptional<z.ZodString>; | ||
| dateTime: z.ZodOptional<z.ZodString>; | ||
| allowConcurrentExecutions: z.ZodOptional<z.ZodBoolean>; | ||
| input: z.ZodOptional<z.ZodObject<{ | ||
| parameters: z.ZodOptional<z.ZodString>; | ||
| tag: z.ZodOptional<z.ZodString>; | ||
| comment: z.ZodOptional<z.ZodString>; | ||
| settings: z.ZodOptional<z.ZodObject<{ | ||
| agentPoolSlug: z.ZodOptional<z.ZodString>; | ||
| callbackUrl: z.ZodOptional<z.ZodString>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| agentPoolSlug?: string | undefined; | ||
| callbackUrl?: string | undefined; | ||
| }, { | ||
| agentPoolSlug?: string | undefined; | ||
| callbackUrl?: string | undefined; | ||
| }>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| comment?: string | undefined; | ||
| settings?: { | ||
| agentPoolSlug?: string | undefined; | ||
| callbackUrl?: string | undefined; | ||
| } | undefined; | ||
| parameters?: string | undefined; | ||
| tag?: string | undefined; | ||
| }, { | ||
| comment?: string | undefined; | ||
| settings?: { | ||
| agentPoolSlug?: string | undefined; | ||
| callbackUrl?: string | undefined; | ||
| } | undefined; | ||
| parameters?: string | undefined; | ||
| tag?: string | undefined; | ||
| }>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| id: string; | ||
| cron?: string | undefined; | ||
| dateTime?: string | undefined; | ||
| allowConcurrentExecutions?: boolean | undefined; | ||
| input?: { | ||
| comment?: string | undefined; | ||
| settings?: { | ||
| agentPoolSlug?: string | undefined; | ||
| callbackUrl?: string | undefined; | ||
| } | undefined; | ||
| parameters?: string | undefined; | ||
| tag?: string | undefined; | ||
| } | undefined; | ||
| }, { | ||
| id: string; | ||
| cron?: string | undefined; | ||
| dateTime?: string | undefined; | ||
| allowConcurrentExecutions?: boolean | undefined; | ||
| input?: { | ||
| comment?: string | undefined; | ||
| settings?: { | ||
| agentPoolSlug?: string | undefined; | ||
| callbackUrl?: string | undefined; | ||
| } | undefined; | ||
| parameters?: string | undefined; | ||
| tag?: string | undefined; | ||
| } | undefined; | ||
| }>; | ||
| export declare const schedulesToolNames: { | ||
@@ -53,2 +118,3 @@ readonly getSchedules: "get_schedules"; | ||
| readonly deleteSchedule: "delete_schedule"; | ||
| readonly updateSchedule: "update_schedule"; | ||
| }; | ||
@@ -83,2 +149,6 @@ export declare const schedulesToolDefinitions: ({ | ||
| id?: undefined; | ||
| cron?: undefined; | ||
| dateTime?: undefined; | ||
| allowConcurrentExecutions?: undefined; | ||
| input?: undefined; | ||
| }; | ||
@@ -102,2 +172,6 @@ required?: undefined; | ||
| keywords?: undefined; | ||
| cron?: undefined; | ||
| dateTime?: undefined; | ||
| allowConcurrentExecutions?: undefined; | ||
| input?: undefined; | ||
| }; | ||
@@ -121,2 +195,6 @@ required: string[]; | ||
| keywords?: undefined; | ||
| cron?: undefined; | ||
| dateTime?: undefined; | ||
| allowConcurrentExecutions?: undefined; | ||
| input?: undefined; | ||
| }; | ||
@@ -140,2 +218,6 @@ required: string[]; | ||
| keywords?: undefined; | ||
| cron?: undefined; | ||
| dateTime?: undefined; | ||
| allowConcurrentExecutions?: undefined; | ||
| input?: undefined; | ||
| }; | ||
@@ -159,5 +241,73 @@ required: string[]; | ||
| keywords?: undefined; | ||
| cron?: undefined; | ||
| dateTime?: undefined; | ||
| allowConcurrentExecutions?: undefined; | ||
| input?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| } | { | ||
| name: "update_schedule"; | ||
| title: string; | ||
| description: string; | ||
| inputSchema: { | ||
| type: string; | ||
| properties: { | ||
| id: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| cron: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| dateTime: { | ||
| type: string; | ||
| format: string; | ||
| description: string; | ||
| }; | ||
| allowConcurrentExecutions: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| input: { | ||
| type: string; | ||
| description: string; | ||
| properties: { | ||
| parameters: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| tag: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| comment: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| settings: { | ||
| type: string; | ||
| description: string; | ||
| properties: { | ||
| agentPoolSlug: { | ||
| type: string; | ||
| description: string; | ||
| }; | ||
| callbackUrl: { | ||
| type: string; | ||
| format: string; | ||
| description: string; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| }; | ||
| page?: undefined; | ||
| limit?: undefined; | ||
| processId?: undefined; | ||
| keywords?: undefined; | ||
| }; | ||
| required: string[]; | ||
| }; | ||
| })[]; |
@@ -52,2 +52,52 @@ import { z } from "zod"; | ||
| }); | ||
| // Schema for updating a schedule | ||
| export const UpdateScheduleSchema = z.object({ | ||
| id: z | ||
| .string() | ||
| .describe("Unique identifier (UUID) of the scheduled process to update"), | ||
| cron: z | ||
| .string() | ||
| .optional() | ||
| .describe("Cron expression defining when the process should be executed. Uses standard cron syntax (minute hour day month dayOfWeek)."), | ||
| dateTime: z | ||
| .string() | ||
| .datetime() | ||
| .optional() | ||
| .describe("Specific date and time when the process should be executed. Used for one-time scheduled executions (ISO 8601 format)."), | ||
| allowConcurrentExecutions: z | ||
| .boolean() | ||
| .optional() | ||
| .describe("Whether multiple executions of the same process can run concurrently. If false, new executions will be queued if one is already running."), | ||
| input: z | ||
| .object({ | ||
| parameters: z | ||
| .string() | ||
| .optional() | ||
| .describe("JSON string containing the input parameters for the process execution. Must match the process parameter schema."), | ||
| tag: z | ||
| .string() | ||
| .optional() | ||
| .describe("A version tag or an alias of the version"), | ||
| comment: z | ||
| .string() | ||
| .optional() | ||
| .describe("Optional comment or description for this execution. Useful for tracking and debugging purposes."), | ||
| settings: z | ||
| .object({ | ||
| agentPoolSlug: z | ||
| .string() | ||
| .optional() | ||
| .describe("Agent pool where to execute"), | ||
| callbackUrl: z | ||
| .string() | ||
| .url() | ||
| .optional() | ||
| .describe("URL to receive execution results upon completion (success or failure)"), | ||
| }) | ||
| .optional() | ||
| .describe("Execution-specific settings and configuration options. Overrides default process settings for this execution."), | ||
| }) | ||
| .optional() | ||
| .describe("Input parameters and settings for the scheduled process execution. Defines what parameters will be passed to the process when it runs."), | ||
| }); | ||
| // Tool names | ||
@@ -60,2 +110,3 @@ export const schedulesToolNames = { | ||
| deleteSchedule: "delete_schedule", | ||
| updateSchedule: "update_schedule", | ||
| }; | ||
@@ -154,2 +205,63 @@ // Tool definitions | ||
| }, | ||
| { | ||
| name: schedulesToolNames.updateSchedule, | ||
| title: "Update Scheduled Process", | ||
| description: "Updates an existing scheduled process with new configuration, schedule settings, or parameters. All provided fields will replace the existing values.", | ||
| inputSchema: { | ||
| type: "object", | ||
| properties: { | ||
| id: { | ||
| type: "string", | ||
| description: "Unique identifier (UUID) of the scheduled process to update", | ||
| }, | ||
| cron: { | ||
| type: "string", | ||
| description: "Cron expression defining when the process should be executed. Uses standard cron syntax (minute hour day month dayOfWeek).", | ||
| }, | ||
| dateTime: { | ||
| type: "string", | ||
| format: "date-time", | ||
| description: "Specific date and time when the process should be executed. Used for one-time scheduled executions (ISO 8601 format).", | ||
| }, | ||
| allowConcurrentExecutions: { | ||
| type: "boolean", | ||
| description: "Whether multiple executions of the same process can run concurrently. If false, new executions will be queued if one is already running.", | ||
| }, | ||
| input: { | ||
| type: "object", | ||
| description: "Input parameters and settings for the scheduled process execution. Defines what parameters will be passed to the process when it runs.", | ||
| properties: { | ||
| parameters: { | ||
| type: "string", | ||
| description: "JSON string containing the input parameters for the process execution. Must match the process parameter schema.", | ||
| }, | ||
| tag: { | ||
| type: "string", | ||
| description: "A version tag or an alias of the version", | ||
| }, | ||
| comment: { | ||
| type: "string", | ||
| description: "Optional comment or description for this execution. Useful for tracking and debugging purposes.", | ||
| }, | ||
| settings: { | ||
| type: "object", | ||
| description: "Execution-specific settings and configuration options. Overrides default process settings for this execution.", | ||
| properties: { | ||
| agentPoolSlug: { | ||
| type: "string", | ||
| description: "Agent pool where to execute", | ||
| }, | ||
| callbackUrl: { | ||
| type: "string", | ||
| format: "uri", | ||
| description: "URL to receive execution results upon completion (success or failure)", | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| required: ["id"], | ||
| }, | ||
| }, | ||
| ]; |
+2
-2
| { | ||
| "name": "@yepcode/mcp-server", | ||
| "version": "1.0.2", | ||
| "version": "1.1.0", | ||
| "description": "MCP server for YepCode", | ||
@@ -53,3 +53,3 @@ "main": "dist/index.js", | ||
| "@modelcontextprotocol/sdk": "^1.19.1", | ||
| "@yepcode/run": "^1.10.0", | ||
| "@yepcode/run": "^1.11.0", | ||
| "dotenv": "^16.4.7", | ||
@@ -56,0 +56,0 @@ "zod": "^3.24.2" |
+17
-5
@@ -163,3 +163,4 @@  | ||
| - `run_code`: Enables the code execution tool | ||
| - `yc_api`: Enables all API management tools (processes, schedules, variables, storage, executions, modules) | ||
| - `yc_api`: Enables all basic API management tools (processes, schedules, variables, storage, executions, modules) | ||
| - `yc_api_full`: Enables all API management tools including version-related tools (extends `yc_api` with additional process and module version management tools) | ||
@@ -200,3 +201,4 @@ **Process tags:** | ||
| **Example scenarios:** | ||
| - `YEPCODE_MCP_TOOLS=run_code,yc_api` - Enables built-in code execution and API management tools | ||
| - `YEPCODE_MCP_TOOLS=run_code,yc_api` - Enables built-in code execution and basic API management tools | ||
| - `YEPCODE_MCP_TOOLS=run_code,yc_api_full` - Enables built-in code execution and all API management tools (including version management) | ||
| - `YEPCODE_MCP_TOOLS=core,automation` - Only exposes processes tagged with "core" or "automation" as tools | ||
@@ -353,4 +355,10 @@ - `YEPCODE_MCP_TOOLS=run_code,yc_api,core` - Enables built-in tools plus all processes tagged with "core" | ||
| The `yc_api` tool category provides comprehensive API access to manage all aspects of your YepCode workspace: | ||
| The API management tool categories (`yc_api` and `yc_api_full`) provide comprehensive API access to manage all aspects of your YepCode workspace: | ||
| **Basic API tools (`yc_api`):** | ||
| The `yc_api` tag enables standard API management tools for core operations across your workspace. | ||
| **Extended API tools (`yc_api_full`):** | ||
| The `yc_api_full` tag includes everything from `yc_api` plus additional tools for managing process and module versions. | ||
| **Processes Management:** | ||
@@ -360,4 +368,5 @@ - `get_processes` - List processes with optional filtering | ||
| - `get_process` - Get process details | ||
| - `update_process` - Update an existing process | ||
| - `delete_process` - Delete a process | ||
| - `get_process_versions` - Get process versions | ||
| - `get_process_versions` - Get process versions (requires `yc_api_full`) | ||
| - `execute_process_async` - Execute a process asynchronously | ||
@@ -398,3 +407,6 @@ - `execute_process_sync` - Execute a process synchronously | ||
| - `delete_module` - Delete a module | ||
| - `get_module_versions` - Get module versions | ||
| - `get_module_versions` - Get module versions (requires `yc_api_full`) | ||
| - `get_module_version` - Get a specific module version (requires `yc_api_full`) | ||
| - `delete_module_version` - Delete a module version (requires `yc_api_full`) | ||
| - `get_module_aliases` - Get module version aliases (requires `yc_api_full`) | ||
@@ -401,0 +413,0 @@ ## License |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
222163
45.13%29
7.41%5758
49.06%411
3.01%Updated