@vleap/warps-mcp 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ import { WarpClientConfig, Warp } from '@vleap/warps';
2
+
3
+ declare const convertMcpToolToWarp: (config: WarpClientConfig, tool: {
4
+ name: string;
5
+ description?: string;
6
+ inputSchema?: any;
7
+ outputSchema?: any;
8
+ }, url: string, headers?: Record<string, string>) => Promise<Warp>;
9
+
10
+ declare class WarpMcp {
11
+ private readonly config;
12
+ constructor(config: WarpClientConfig);
13
+ getWarpsFromTools(url: string, headers?: Record<string, string>): Promise<Warp[]>;
14
+ }
15
+
16
+ export { WarpMcp, convertMcpToolToWarp };
@@ -0,0 +1,16 @@
1
+ import { WarpClientConfig, Warp } from '@vleap/warps';
2
+
3
+ declare const convertMcpToolToWarp: (config: WarpClientConfig, tool: {
4
+ name: string;
5
+ description?: string;
6
+ inputSchema?: any;
7
+ outputSchema?: any;
8
+ }, url: string, headers?: Record<string, string>) => Promise<Warp>;
9
+
10
+ declare class WarpMcp {
11
+ private readonly config;
12
+ constructor(config: WarpClientConfig);
13
+ getWarpsFromTools(url: string, headers?: Record<string, string>): Promise<Warp[]>;
14
+ }
15
+
16
+ export { WarpMcp, convertMcpToolToWarp };
package/dist/index.js ADDED
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ WarpMcp: () => WarpMcp,
24
+ convertMcpToolToWarp: () => convertMcpToolToWarp
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
28
+ // src/helpers/warps.ts
29
+ var import_warps = require("@vleap/warps");
30
+ var convertMcpToolToWarp = async (config, tool, url, headers) => {
31
+ const inputs = [];
32
+ if (tool.inputSchema && tool.inputSchema.properties) {
33
+ const properties = tool.inputSchema.properties;
34
+ const required = tool.inputSchema.required || [];
35
+ Object.entries(properties).forEach(([key, value]) => {
36
+ const isRequired = required.includes(key);
37
+ const inputType = convertJsonSchemaTypeToWarpType(value.type, value.format);
38
+ const inputDef = {
39
+ name: key,
40
+ label: value.title || { en: key },
41
+ description: value.description ? { en: value.description } : null,
42
+ type: inputType,
43
+ position: `payload:${key}`,
44
+ source: "field",
45
+ required: isRequired,
46
+ default: value.default
47
+ };
48
+ inputs.push(inputDef);
49
+ });
50
+ }
51
+ const output = {};
52
+ if (tool.outputSchema && tool.outputSchema.properties) {
53
+ const properties = tool.outputSchema.properties;
54
+ Object.keys(properties).forEach((key) => {
55
+ output[key] = `out.${key}`;
56
+ });
57
+ }
58
+ const mcpAction = {
59
+ type: "mcp",
60
+ label: { en: tool.name },
61
+ description: tool.description ? { en: tool.description } : null,
62
+ destination: { url, tool: tool.name, headers },
63
+ inputs
64
+ };
65
+ return await new import_warps.WarpBuilder(config).setName(tool.name).setTitle({ en: tool.name }).setDescription(tool.description ? { en: tool.description } : null).addAction(mcpAction).setOutput(Object.keys(output).length > 0 ? output : null).build(false);
66
+ };
67
+ var convertJsonSchemaTypeToWarpType = (type, format) => {
68
+ if (format === "date-time" || format === "date") return "string";
69
+ if (type === "string") return "string";
70
+ if (type === "number") return "uint256";
71
+ if (type === "integer") return "uint256";
72
+ if (type === "boolean") return "bool";
73
+ if (type === "array") return "string";
74
+ if (type === "object") return "string";
75
+ return "string";
76
+ };
77
+
78
+ // src/WarpMcp.ts
79
+ var import_client = require("@modelcontextprotocol/sdk/client/index.js");
80
+ var import_streamableHttp = require("@modelcontextprotocol/sdk/client/streamableHttp.js");
81
+ var WarpMcp = class {
82
+ constructor(config) {
83
+ this.config = config;
84
+ }
85
+ async getWarpsFromTools(url, headers) {
86
+ const transport = new import_streamableHttp.StreamableHTTPClientTransport(new URL(url), {
87
+ requestInit: { headers: headers || {} }
88
+ });
89
+ const client = new import_client.Client({ name: "warps-mcp-client", version: "1.0.0" }, { capabilities: {} });
90
+ try {
91
+ await client.connect(transport);
92
+ const tools = await client.listTools();
93
+ await client.close();
94
+ return await Promise.all(tools.tools.map((tool) => convertMcpToolToWarp(this.config, tool, url, headers)));
95
+ } catch (error) {
96
+ await client.close().catch(() => {
97
+ });
98
+ throw error;
99
+ }
100
+ }
101
+ };
102
+ // Annotate the CommonJS export names for ESM import in node:
103
+ 0 && (module.exports = {
104
+ WarpMcp,
105
+ convertMcpToolToWarp
106
+ });
107
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/helpers/warps.ts","../src/WarpMcp.ts"],"sourcesContent":["export * from './helpers'\nexport * from './WarpMcp'\n","import { Warp, WarpActionInput, WarpActionInputType, WarpBuilder, WarpClientConfig, WarpMcpAction } from '@vleap/warps'\n\nexport const convertMcpToolToWarp = async (\n config: WarpClientConfig,\n tool: { name: string; description?: string; inputSchema?: any; outputSchema?: any },\n url: string,\n headers?: Record<string, string>\n): Promise<Warp> => {\n const inputs: WarpActionInput[] = []\n\n if (tool.inputSchema && tool.inputSchema.properties) {\n const properties = tool.inputSchema.properties\n const required = tool.inputSchema.required || []\n\n Object.entries(properties).forEach(([key, value]: [string, any]) => {\n const isRequired = required.includes(key)\n const inputType = convertJsonSchemaTypeToWarpType(value.type, value.format)\n\n const inputDef: WarpActionInput = {\n name: key,\n label: value.title || { en: key },\n description: value.description ? { en: value.description } : null,\n type: inputType,\n position: `payload:${key}`,\n source: 'field',\n required: isRequired,\n default: value.default,\n }\n\n inputs.push(inputDef)\n })\n }\n\n const output: Record<string, string> = {}\n if (tool.outputSchema && tool.outputSchema.properties) {\n const properties = tool.outputSchema.properties\n Object.keys(properties).forEach((key) => {\n output[key] = `out.${key}`\n })\n }\n\n const mcpAction: WarpMcpAction = {\n type: 'mcp',\n label: { en: tool.name },\n description: tool.description ? { en: tool.description } : null,\n destination: { url, tool: tool.name, headers },\n inputs,\n }\n\n return await new WarpBuilder(config)\n .setName(tool.name)\n .setTitle({ en: tool.name })\n .setDescription(tool.description ? { en: tool.description } : null)\n .addAction(mcpAction)\n .setOutput(Object.keys(output).length > 0 ? output : null)\n .build(false)\n}\n\nconst convertJsonSchemaTypeToWarpType = (type: string, format?: string): WarpActionInputType => {\n if (format === 'date-time' || format === 'date') return 'string'\n if (type === 'string') return 'string'\n if (type === 'number') return 'uint256'\n if (type === 'integer') return 'uint256'\n if (type === 'boolean') return 'bool'\n if (type === 'array') return 'string'\n if (type === 'object') return 'string'\n return 'string'\n}\n","import { Client } from '@modelcontextprotocol/sdk/client/index.js'\nimport { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'\nimport { Warp, WarpClientConfig } from '@vleap/warps'\nimport { convertMcpToolToWarp } from './helpers/warps'\n\nexport class WarpMcp {\n constructor(private readonly config: WarpClientConfig) {}\n\n async getWarpsFromTools(url: string, headers?: Record<string, string>): Promise<Warp[]> {\n const transport = new StreamableHTTPClientTransport(new URL(url), {\n requestInit: { headers: headers || {} },\n })\n\n const client = new Client({ name: 'warps-mcp-client', version: '1.0.0' }, { capabilities: {} })\n\n try {\n await client.connect(transport)\n\n const tools = await client.listTools()\n\n await client.close()\n\n return await Promise.all(tools.tools.map((tool) => convertMcpToolToWarp(this.config, tool, url, headers)))\n } catch (error) {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AAA,IACR;AAAA,EACF;AACF;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,79 @@
1
+ // src/helpers/warps.ts
2
+ import { WarpBuilder } from "@vleap/warps";
3
+ var convertMcpToolToWarp = async (config, tool, url, headers) => {
4
+ const inputs = [];
5
+ if (tool.inputSchema && tool.inputSchema.properties) {
6
+ const properties = tool.inputSchema.properties;
7
+ const required = tool.inputSchema.required || [];
8
+ Object.entries(properties).forEach(([key, value]) => {
9
+ const isRequired = required.includes(key);
10
+ const inputType = convertJsonSchemaTypeToWarpType(value.type, value.format);
11
+ const inputDef = {
12
+ name: key,
13
+ label: value.title || { en: key },
14
+ description: value.description ? { en: value.description } : null,
15
+ type: inputType,
16
+ position: `payload:${key}`,
17
+ source: "field",
18
+ required: isRequired,
19
+ default: value.default
20
+ };
21
+ inputs.push(inputDef);
22
+ });
23
+ }
24
+ const output = {};
25
+ if (tool.outputSchema && tool.outputSchema.properties) {
26
+ const properties = tool.outputSchema.properties;
27
+ Object.keys(properties).forEach((key) => {
28
+ output[key] = `out.${key}`;
29
+ });
30
+ }
31
+ const mcpAction = {
32
+ type: "mcp",
33
+ label: { en: tool.name },
34
+ description: tool.description ? { en: tool.description } : null,
35
+ destination: { url, tool: tool.name, headers },
36
+ inputs
37
+ };
38
+ return await new WarpBuilder(config).setName(tool.name).setTitle({ en: tool.name }).setDescription(tool.description ? { en: tool.description } : null).addAction(mcpAction).setOutput(Object.keys(output).length > 0 ? output : null).build(false);
39
+ };
40
+ var convertJsonSchemaTypeToWarpType = (type, format) => {
41
+ if (format === "date-time" || format === "date") return "string";
42
+ if (type === "string") return "string";
43
+ if (type === "number") return "uint256";
44
+ if (type === "integer") return "uint256";
45
+ if (type === "boolean") return "bool";
46
+ if (type === "array") return "string";
47
+ if (type === "object") return "string";
48
+ return "string";
49
+ };
50
+
51
+ // src/WarpMcp.ts
52
+ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
53
+ import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
54
+ var WarpMcp = class {
55
+ constructor(config) {
56
+ this.config = config;
57
+ }
58
+ async getWarpsFromTools(url, headers) {
59
+ const transport = new StreamableHTTPClientTransport(new URL(url), {
60
+ requestInit: { headers: headers || {} }
61
+ });
62
+ const client = new Client({ name: "warps-mcp-client", version: "1.0.0" }, { capabilities: {} });
63
+ try {
64
+ await client.connect(transport);
65
+ const tools = await client.listTools();
66
+ await client.close();
67
+ return await Promise.all(tools.tools.map((tool) => convertMcpToolToWarp(this.config, tool, url, headers)));
68
+ } catch (error) {
69
+ await client.close().catch(() => {
70
+ });
71
+ throw error;
72
+ }
73
+ }
74
+ };
75
+ export {
76
+ WarpMcp,
77
+ convertMcpToolToWarp
78
+ };
79
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/helpers/warps.ts","../src/WarpMcp.ts"],"sourcesContent":["import { Warp, WarpActionInput, WarpActionInputType, WarpBuilder, WarpClientConfig, WarpMcpAction } from '@vleap/warps'\n\nexport const convertMcpToolToWarp = async (\n config: WarpClientConfig,\n tool: { name: string; description?: string; inputSchema?: any; outputSchema?: any },\n url: string,\n headers?: Record<string, string>\n): Promise<Warp> => {\n const inputs: WarpActionInput[] = []\n\n if (tool.inputSchema && tool.inputSchema.properties) {\n const properties = tool.inputSchema.properties\n const required = tool.inputSchema.required || []\n\n Object.entries(properties).forEach(([key, value]: [string, any]) => {\n const isRequired = required.includes(key)\n const inputType = convertJsonSchemaTypeToWarpType(value.type, value.format)\n\n const inputDef: WarpActionInput = {\n name: key,\n label: value.title || { en: key },\n description: value.description ? { en: value.description } : null,\n type: inputType,\n position: `payload:${key}`,\n source: 'field',\n required: isRequired,\n default: value.default,\n }\n\n inputs.push(inputDef)\n })\n }\n\n const output: Record<string, string> = {}\n if (tool.outputSchema && tool.outputSchema.properties) {\n const properties = tool.outputSchema.properties\n Object.keys(properties).forEach((key) => {\n output[key] = `out.${key}`\n })\n }\n\n const mcpAction: WarpMcpAction = {\n type: 'mcp',\n label: { en: tool.name },\n description: tool.description ? { en: tool.description } : null,\n destination: { url, tool: tool.name, headers },\n inputs,\n }\n\n return await new WarpBuilder(config)\n .setName(tool.name)\n .setTitle({ en: tool.name })\n .setDescription(tool.description ? { en: tool.description } : null)\n .addAction(mcpAction)\n .setOutput(Object.keys(output).length > 0 ? output : null)\n .build(false)\n}\n\nconst convertJsonSchemaTypeToWarpType = (type: string, format?: string): WarpActionInputType => {\n if (format === 'date-time' || format === 'date') return 'string'\n if (type === 'string') return 'string'\n if (type === 'number') return 'uint256'\n if (type === 'integer') return 'uint256'\n if (type === 'boolean') return 'bool'\n if (type === 'array') return 'string'\n if (type === 'object') return 'string'\n return 'string'\n}\n","import { Client } from '@modelcontextprotocol/sdk/client/index.js'\nimport { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js'\nimport { Warp, WarpClientConfig } from '@vleap/warps'\nimport { convertMcpToolToWarp } from './helpers/warps'\n\nexport class WarpMcp {\n constructor(private readonly config: WarpClientConfig) {}\n\n async getWarpsFromTools(url: string, headers?: Record<string, string>): Promise<Warp[]> {\n const transport = new StreamableHTTPClientTransport(new URL(url), {\n requestInit: { headers: headers || {} },\n })\n\n const client = new Client({ name: 'warps-mcp-client', version: '1.0.0' }, { capabilities: {} })\n\n try {\n await client.connect(transport)\n\n const tools = await client.listTools()\n\n await client.close()\n\n return await Promise.all(tools.tools.map((tool) => convertMcpToolToWarp(this.config, tool, url, headers)))\n } catch (error) {\n await client.close().catch(() => {})\n throw error\n }\n }\n}\n"],"mappings":";AAAA,SAAqD,mBAAoD;AAElG,IAAM,uBAAuB,OAClC,QACA,MACA,KACA,YACkB;AAClB,QAAM,SAA4B,CAAC;AAEnC,MAAI,KAAK,eAAe,KAAK,YAAY,YAAY;AACnD,UAAM,aAAa,KAAK,YAAY;AACpC,UAAM,WAAW,KAAK,YAAY,YAAY,CAAC;AAE/C,WAAO,QAAQ,UAAU,EAAE,QA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xD,MAAI,SAAS,SAAU,QAAO;AAC9B,MAAI,SAAS,SAAU,QAAO;AAC9B,MAAI,SAAS,UAAW,QAAO;AAC/B,MAAI,SAAS,UAAW,QAAO;AAC/B,MAAI,SAAS,QAAS,QAAO;AAC7B,MAAI,SAAS,SAAU,QAAO;AAC9B,SAAO;AACT;;;ACnEA,SAAS,cAAc;AACvB,SAAS,qCAAqC;AAIvC,IAAM,UAAN,MAAc;AAAA,EACnB,YAA6B,QAA0B;AAA1B;AAAA,EAA2B;AAAA,EAExD,MAAM,kBAAkB,KAAa,SAAmD;AACtF,UAAM,YAAY,IAAI,8BAA8B,IAAI,IAAI,GAAG,GAAG;AAAA,MAChE,aAAa,EAAE,SAAS,WAAW,CAAC,EAAE;AAAA,IACxC,CAAC;AAED,UAAM,SAAS,IAAI,OAAO,EAAE,MAAM,oBAAoB,SAAS,QAAQ,GAAG,EAAE,cAAc,CAAC,EAAE,CAAC;AAE9F,QAAI;AACF,YAAM,OAAO,QAAQ,SAAS;AAE9B,YAAM,QAAQ,MAAM,OAAO,UAAU;AAErC,YAAM,OAAO,MAAM;AAEnB,aAAO,MAAM,QAAQ,IAAI,MAAM,MAAM,IAAI,CAAC,SAAS,qBAAqB,KAAK,QAAQ,MAAM,KAAK,OAAO,CAAC,CAAC;AAAA,IAC3G,SAAS,OAAO;AACd,YAAM,OAAO,MAAM,EAAE,MAAM,MAAM;AAAA,MAAC,CAAC;AACnC,YAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@vleap/warps-mcp",
3
+ "version": "1.0.0-beta.3",
4
+ "description": "MCP adapter for Warps SDK",
5
+ "type": "module",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.js",
12
+ "default": "./dist/index.mjs"
13
+ }
14
+ },
15
+ "scripts": {
16
+ "build": "tsup",
17
+ "test": "jest --config jest.config.mjs",
18
+ "lint": "tsc --noEmit",
19
+ "prepare": "npm run build",
20
+ "preversion": "npm run lint && npm run build"
21
+ },
22
+ "author": "",
23
+ "license": "MIT",
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "devDependencies": {
28
+ "@types/jest": "^30.0.0",
29
+ "jest": "^30.2.0",
30
+ "jest-environment-jsdom": "^30.2.0",
31
+ "ts-jest": "^29.4.6",
32
+ "tsup": "^8.5.1",
33
+ "typescript": "^5.9.3"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "dependencies": {
39
+ "@modelcontextprotocol/sdk": "^1.24.3",
40
+ "zod": "^4.1.13"
41
+ },
42
+ "peerDependencies": {
43
+ "@vleap/warps": "^3.0.0-beta.171"
44
+ }
45
+ }