Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@yepcode/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yepcode/mcp-server - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+32
-2
dist/server.js

@@ -407,4 +407,19 @@ import { Server } from "@modelcontextprotocol/sdk/server/index.js";

return this.handleToolRequest(ExecuteProcessAsyncSchema, request, async (data) => {
const { executionId } = await this.yepCodeApi.executeProcessAsync(data.identifier, data.parameters, {
// Normalize parameters: parse JSON string if needed
let params;
if (typeof data.parameters === "string") {
try {
params = JSON.parse(data.parameters);
}
catch (error) {
throw new Error(`Invalid JSON string for parameters: ${error}`);
}
}
else {
params = data.parameters;
}
const { executionId } = await this.yepCodeApi.executeProcessAsync(data.identifier, params, {
initiatedBy: data.initiatedBy || "@yepcode/mcp-server",
tag: data.tag,
comment: data.comment,
...data.settings,

@@ -416,4 +431,19 @@ });

return this.handleToolRequest(ExecuteProcessSyncSchema, request, async (data) => {
const result = await this.yepCodeApi.executeProcessSync(data.identifier, data.parameters, {
// Normalize parameters: parse JSON string if needed
let params;
if (typeof data.parameters === "string") {
try {
params = JSON.parse(data.parameters);
}
catch (error) {
throw new Error(`Invalid JSON string for parameters: ${error}`);
}
}
else {
params = data.parameters;
}
const result = await this.yepCodeApi.executeProcessSync(data.identifier, params, {
initiatedBy: data.initiatedBy || "@yepcode/mcp-server",
tag: data.tag,
comment: data.comment,
...data.settings,

@@ -420,0 +450,0 @@ });

@@ -82,16 +82,47 @@ import { z } from "zod";

}>;
export declare const ExecuteProcessSettingsSchema: 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;
}>;
export declare const ExecuteProcessAsyncSchema: z.ZodObject<{
identifier: z.ZodString;
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
parameters: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
tag: z.ZodOptional<z.ZodString>;
comment: z.ZodOptional<z.ZodString>;
initiatedBy: z.ZodOptional<z.ZodString>;
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
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, {
identifier: string;
settings?: Record<string, any> | undefined;
parameters?: Record<string, any> | undefined;
comment?: string | undefined;
settings?: {
agentPoolSlug?: string | undefined;
callbackUrl?: string | undefined;
} | undefined;
parameters?: string | Record<string, any> | undefined;
tag?: string | undefined;
initiatedBy?: string | undefined;
}, {
identifier: string;
settings?: Record<string, any> | undefined;
parameters?: Record<string, any> | undefined;
comment?: string | undefined;
settings?: {
agentPoolSlug?: string | undefined;
callbackUrl?: string | undefined;
} | undefined;
parameters?: string | Record<string, any> | undefined;
tag?: string | undefined;
initiatedBy?: string | undefined;

@@ -101,14 +132,35 @@ }>;

identifier: z.ZodString;
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
parameters: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
tag: z.ZodOptional<z.ZodString>;
comment: z.ZodOptional<z.ZodString>;
initiatedBy: z.ZodOptional<z.ZodString>;
settings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
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, {
identifier: string;
settings?: Record<string, any> | undefined;
parameters?: Record<string, any> | undefined;
comment?: string | undefined;
settings?: {
agentPoolSlug?: string | undefined;
callbackUrl?: string | undefined;
} | undefined;
parameters?: string | Record<string, any> | undefined;
tag?: string | undefined;
initiatedBy?: string | undefined;
}, {
identifier: string;
settings?: Record<string, any> | undefined;
parameters?: Record<string, any> | undefined;
comment?: string | undefined;
settings?: {
agentPoolSlug?: string | undefined;
callbackUrl?: string | undefined;
} | undefined;
parameters?: string | Record<string, any> | undefined;
tag?: string | undefined;
initiatedBy?: string | undefined;

@@ -191,2 +243,4 @@ }>;

parameters?: undefined;
tag?: undefined;
comment?: undefined;
initiatedBy?: undefined;

@@ -246,2 +300,3 @@ type?: undefined;

description: string;
properties?: undefined;
};

@@ -261,2 +316,4 @@ tags: {

parameters?: undefined;
tag?: undefined;
comment?: undefined;
initiatedBy?: undefined;

@@ -296,2 +353,4 @@ type?: undefined;

parameters?: undefined;
tag?: undefined;
comment?: undefined;
initiatedBy?: undefined;

@@ -331,2 +390,4 @@ type?: undefined;

parameters?: undefined;
tag?: undefined;
comment?: undefined;
initiatedBy?: undefined;

@@ -376,2 +437,4 @@ type?: undefined;

parameters?: undefined;
tag?: undefined;
comment?: undefined;
initiatedBy?: undefined;

@@ -396,5 +459,16 @@ type?: undefined;

parameters: {
oneOf: {
type: string;
}[];
description: string;
type?: undefined;
};
tag: {
type: string;
description: string;
};
comment: {
type: string;
description: string;
};
initiatedBy: {

@@ -406,2 +480,12 @@ type: string;

type: string;
properties: {
agentPoolSlug: {
type: string;
description: string;
};
callbackUrl: {
type: string;
description: string;
};
};
description: string;

@@ -441,5 +525,16 @@ };

parameters: {
oneOf: {
type: string;
}[];
description: string;
type?: undefined;
};
tag: {
type: string;
description: string;
};
comment: {
type: string;
description: string;
};
initiatedBy: {

@@ -451,2 +546,12 @@ type: string;

type: string;
properties: {
agentPoolSlug: {
type: string;
description: string;
};
callbackUrl: {
type: string;
description: string;
};
};
description: string;

@@ -488,2 +593,3 @@ };

description: string;
oneOf?: undefined;
};

@@ -506,2 +612,3 @@ type: {

description: string;
properties?: undefined;
};

@@ -522,2 +629,4 @@ keywords?: undefined;

processId?: undefined;
tag?: undefined;
comment?: undefined;
initiatedBy?: undefined;

@@ -524,0 +633,0 @@ };

@@ -97,2 +97,13 @@ import { z } from "zod";

});
// Schema for execution settings
export const ExecuteProcessSettingsSchema = z.object({
agentPoolSlug: z
.string()
.optional()
.describe("Agent pool where to execute"),
callbackUrl: z
.string()
.optional()
.describe("URL to receive execution results upon completion (success or failure)"),
});
// Schema for executing a process asynchronously

@@ -103,3 +114,14 @@ export const ExecuteProcessAsyncSchema = z.object({

.describe("Unique identifier of the process to execute asynchronously (UUID or slug)"),
parameters: z.record(z.any()).optional().describe("Process parameters"),
parameters: z
.union([z.string(), z.record(z.any())])
.optional()
.describe("Process parameters (JSON string or object). 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"),
initiatedBy: z

@@ -109,3 +131,3 @@ .string()

.describe("An identifier for the individual initiating the request"),
settings: z.record(z.any()).optional().describe("Execution settings"),
settings: ExecuteProcessSettingsSchema.optional().describe("Execution-specific settings and configuration options"),
});

@@ -117,3 +139,14 @@ // Schema for executing a process synchronously

.describe("Unique identifier of the process to execute synchronously (UUID or slug)"),
parameters: z.record(z.any()).optional().describe("Process parameters"),
parameters: z
.union([z.string(), z.record(z.any())])
.optional()
.describe("Process parameters (JSON string or object). 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"),
initiatedBy: z

@@ -123,3 +156,3 @@ .string()

.describe("An identifier for the individual initiating the request"),
settings: z.record(z.any()).optional().describe("Execution settings"),
settings: ExecuteProcessSettingsSchema.optional().describe("Execution-specific settings and configuration options"),
});

@@ -313,12 +346,30 @@ // Schema for scheduling a process

parameters: {
type: "object",
description: "Process parameters",
oneOf: [{ type: "string" }, { type: "object" }],
description: "Process parameters (JSON string or object). 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.",
},
initiatedBy: {
type: "string",
description: "An identifier for the individual initiating the request",
description: "An identifier for the individual initiating the request. This could be an employee ID, a username, or any other unique identifier.",
},
settings: {
type: "object",
description: "Execution settings",
properties: {
agentPoolSlug: {
type: "string",
description: "Agent pool where to execute",
},
callbackUrl: {
type: "string",
description: "URL to receive execution results upon completion (success or failure)",
},
},
description: "Execution-specific settings and configuration options. Overrides default process settings for this execution.",
},

@@ -341,12 +392,30 @@ },

parameters: {
type: "object",
description: "Process parameters",
oneOf: [{ type: "string" }, { type: "object" }],
description: "Process parameters (JSON string or object). 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.",
},
initiatedBy: {
type: "string",
description: "An identifier for the individual initiating the request",
description: "An identifier for the individual initiating the request. This could be an employee ID, a username, or any other unique identifier.",
},
settings: {
type: "object",
description: "Execution settings",
properties: {
agentPoolSlug: {
type: "string",
description: "Agent pool where to execute",
},
callbackUrl: {
type: "string",
description: "URL to receive execution results upon completion (success or failure)",
},
},
description: "Execution-specific settings and configuration options. Overrides default process settings for this execution.",
},

@@ -353,0 +422,0 @@ },

+1
-1
{
"name": "@yepcode/mcp-server",
"version": "1.0.0",
"version": "1.0.1",
"description": "MCP server for YepCode",

@@ -5,0 +5,0 @@ "main": "dist/index.js",