@vleap/warps-mcp 1.0.0-beta.22 → 1.0.0-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# @vleap/warps-mcp
|
|
2
|
+
|
|
3
|
+
Model Context Protocol (MCP) integration for the Warps SDK. Enables fetching and converting MCP tools into Warps.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @vleap/warps-mcp
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Prerequisites
|
|
12
|
+
|
|
13
|
+
- `@vleap/warps` core package
|
|
14
|
+
- `@modelcontextprotocol/sdk` (peer dependency)
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { WarpMcp } from '@vleap/warps-mcp'
|
|
20
|
+
import { WarpClient } from '@vleap/warps'
|
|
21
|
+
|
|
22
|
+
const config = {
|
|
23
|
+
env: 'mainnet',
|
|
24
|
+
// ... your config
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const mcp = new WarpMcp(config)
|
|
28
|
+
|
|
29
|
+
// Fetch Warps from an MCP server
|
|
30
|
+
const warps = await mcp.getWarpsFromTools('https://mcp-server.example.com', {
|
|
31
|
+
Authorization: 'Bearer token',
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
// Use the Warps with WarpClient
|
|
35
|
+
const client = new WarpClient(config, { chains: [...] })
|
|
36
|
+
for (const warp of warps) {
|
|
37
|
+
await client.execute(warp, inputs)
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Features
|
|
42
|
+
|
|
43
|
+
- Connect to MCP servers
|
|
44
|
+
- List available tools
|
|
45
|
+
- Convert MCP tools to Warps
|
|
46
|
+
- Execute Warps from MCP sources
|
|
47
|
+
|
|
48
|
+
## MCP Actions
|
|
49
|
+
|
|
50
|
+
Warps support `mcp` action types that can execute MCP tools directly:
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
{
|
|
54
|
+
type: 'mcp',
|
|
55
|
+
destination: {
|
|
56
|
+
url: 'https://mcp-server.example.com',
|
|
57
|
+
tool: 'tool-name',
|
|
58
|
+
headers: { Authorization: 'Bearer token' }
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vleap/warps-mcp",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.24",
|
|
4
4
|
"description": "MCP adapter for Warps SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"zod": "^4.2.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@vleap/warps": "^3.0.0-beta.
|
|
45
|
+
"@vleap/warps": "^3.0.0-beta.195"
|
|
46
46
|
}
|
|
47
47
|
}
|