@vestream/mcp 0.0.0-stage → 1.3.1
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 +213 -2
- package/dist/vestream.d.ts +20 -0
- package/dist/vestream.d.ts.map +1 -0
- package/dist/vestream.js +292 -0
- package/dist/vestream.js.map +1 -0
- package/package.json +51 -4
package/README.md
CHANGED
|
@@ -1,3 +1,214 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@vestream/mcp`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> MCP server for [Vestream](https://vestream.io) — give your AI agent live token-vesting data across 13 protocols and 13 chains.
|
|
4
|
+
|
|
5
|
+
> ### ✅ Official package
|
|
6
|
+
> The only official Vestream MCP server is published as **`@vestream/mcp`** under the `vestream` npm org, with builds signed via [npm provenance](https://docs.npmjs.com/generating-provenance-statements). Any package with a different scope or name (`vestream-mcp`, `vestream-data`, `@anything-else/vestream*`, etc.) is unofficial and may proxy your API key to a third party. Verify the provenance badge on the [npm page](https://www.npmjs.com/package/@vestream/mcp) before installing.
|
|
7
|
+
|
|
8
|
+
This package is a tiny [Model Context Protocol](https://modelcontextprotocol.io) server that exposes the Vestream REST API as native tools for any MCP-compatible client (Claude Desktop, Cursor, Windsurf, ChatGPT desktop, LangChain, CrewAI, custom). Plug it in, point your agent at your wallet, and ask things like "what unlocks for me in March?" or "which of my positions has the highest sell pressure next week?".
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## What you get
|
|
13
|
+
|
|
14
|
+
Six tools, all schema-validated:
|
|
15
|
+
|
|
16
|
+
| Tool | Tier | What it does |
|
|
17
|
+
|---|---|---|
|
|
18
|
+
| `get_wallet_vestings` | Free | Every active and historical vesting stream for a wallet across all supported protocols + chains. EVM (`0x…`) and Solana (base58 pubkey) addresses both work. Paginated 1–500 per call. |
|
|
19
|
+
| `get_upcoming_unlocks` | Free | Forecast every unlock event in the next N days for a wallet, sorted by date. Cliff completions, tranche unlocks, linear stream completions — all in one feed. |
|
|
20
|
+
| `get_stream` | Free | Full detail for a single stream by its composite ID (`{protocol}-{chainId}-{nativeId}`). Use this after `get_wallet_vestings` to drill in. |
|
|
21
|
+
| `list_webhook_subscriptions` | **Pro** | List your webhook subscriptions — URLs Vestream POSTs to when a matching unlock fires. |
|
|
22
|
+
| `create_webhook_subscription` | **Pro** | Register a new webhook with optional filters (wallet, protocol, chain) and a lookahead window. Returns a signing secret once — store it for HMAC verification. **Cap: 50 active subscriptions per API key** — delete unused ones with `delete_webhook_subscription`. |
|
|
23
|
+
| `delete_webhook_subscription` | **Pro** | Remove a subscription by id. |
|
|
24
|
+
|
|
25
|
+
Supported **protocols**: Sablier · Hedgey · UNCX · Unvest · Team Finance · Superfluid · PinkSale · LlamaPay · HoodLock · Magna · Streamflow · Jupiter Lock.
|
|
26
|
+
|
|
27
|
+
Supported **chains**: Ethereum (`1`) · BNB Chain (`56`) · Polygon (`137`) · Base (`8453`) · Arbitrum (`42161`) · Optimism (`10`) · Avalanche (`43114`) · Robinhood Chain (`4663`) · Solana (`101`).
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
You don't need to install anything ahead of time — most MCP clients run the server on demand via `npx`.
|
|
34
|
+
|
|
35
|
+
You **do** need a Vestream API key. Request one at [vestream.io/developer](https://vestream.io/developer); we approve free-tier keys within 24 hours of the request.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Configure your MCP client
|
|
40
|
+
|
|
41
|
+
### Claude Desktop
|
|
42
|
+
|
|
43
|
+
Edit your config file:
|
|
44
|
+
|
|
45
|
+
- **macOS** — `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
46
|
+
- **Windows** — `%APPDATA%\Claude\claude_desktop_config.json`
|
|
47
|
+
- **Linux** — `~/.config/Claude/claude_desktop_config.json`
|
|
48
|
+
|
|
49
|
+
Add Vestream to the `mcpServers` block:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"mcpServers": {
|
|
54
|
+
"vestream": {
|
|
55
|
+
"command": "npx",
|
|
56
|
+
"args": ["-y", "@vestream/mcp"],
|
|
57
|
+
"env": {
|
|
58
|
+
"VESTREAM_API_KEY": "vstr_live_..."
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Restart Claude Desktop. Open a new chat and ask: *"What's vesting for `0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045`?"*
|
|
66
|
+
|
|
67
|
+
### Cursor / Windsurf / Cline
|
|
68
|
+
|
|
69
|
+
Open settings → MCP servers (the exact path varies by version) and paste:
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"vestream": {
|
|
74
|
+
"command": "npx",
|
|
75
|
+
"args": ["-y", "@vestream/mcp"],
|
|
76
|
+
"env": { "VESTREAM_API_KEY": "vstr_live_..." }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### ChatGPT (Custom GPT / Actions)
|
|
82
|
+
|
|
83
|
+
ChatGPT doesn't speak MCP natively yet — for ChatGPT we recommend pointing your **Custom GPT Action** at the [Vestream OpenAPI spec](https://vestream.io/openapi.json) directly. That gives you the same three endpoints (`/wallet/{address}/vestings`, `/wallet/{address}/upcoming-unlocks`, `/stream/{id}`) with built-in auth handling.
|
|
84
|
+
|
|
85
|
+
A native ChatGPT MCP bridge is in beta — check [vestream.io/developer](https://vestream.io/developer) for the current recommended path.
|
|
86
|
+
|
|
87
|
+
### Run it manually (for debugging)
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
npm install -g @vestream/mcp
|
|
91
|
+
VESTREAM_API_KEY=vstr_live_... vestream-mcp
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
The server speaks MCP over stdio. A "Server running on stdio. Waiting for MCP client..." log on stderr means it's ready.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Tool reference
|
|
99
|
+
|
|
100
|
+
### `get_wallet_vestings`
|
|
101
|
+
|
|
102
|
+
Get every vesting stream for one wallet.
|
|
103
|
+
|
|
104
|
+
**Parameters**
|
|
105
|
+
|
|
106
|
+
| name | required | type | notes |
|
|
107
|
+
|---|---|---|---|
|
|
108
|
+
| `address` | yes | `string` | EVM `0x…` or Solana base58 pubkey |
|
|
109
|
+
| `protocol` | no | `string` | comma-separated; e.g. `"sablier,hedgey"` |
|
|
110
|
+
| `chain` | no | `string` | comma-separated chain ids; e.g. `"1,8453"` |
|
|
111
|
+
| `active_only` | no | `boolean` | `true` to skip fully-vested streams |
|
|
112
|
+
| `limit` | no | `integer` | page size 1–500; default 100 |
|
|
113
|
+
| `offset` | no | `integer` | zero-indexed; use `pagination.next_offset` from a prior page |
|
|
114
|
+
|
|
115
|
+
**Example**
|
|
116
|
+
|
|
117
|
+
```js
|
|
118
|
+
get_wallet_vestings({
|
|
119
|
+
address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
|
|
120
|
+
active_only: true
|
|
121
|
+
})
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Paginating large wallets**
|
|
125
|
+
|
|
126
|
+
A wallet with hundreds of streams can blow your agent's context window in
|
|
127
|
+
one shot. Page through it with `limit` + `offset` — the response includes a
|
|
128
|
+
`pagination` block with `total`, `next_offset` (null when exhausted), and
|
|
129
|
+
the count returned. Typical loop in agent pseudocode:
|
|
130
|
+
|
|
131
|
+
```js
|
|
132
|
+
let offset = 0;
|
|
133
|
+
const all = [];
|
|
134
|
+
while (true) {
|
|
135
|
+
const page = get_wallet_vestings({ address, limit: 100, offset });
|
|
136
|
+
all.push(...page.streams);
|
|
137
|
+
if (page.pagination.next_offset == null) break;
|
|
138
|
+
offset = page.pagination.next_offset;
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### `get_upcoming_unlocks`
|
|
143
|
+
|
|
144
|
+
Forecast unlock events in a forward window.
|
|
145
|
+
|
|
146
|
+
| name | required | type | notes |
|
|
147
|
+
|---|---|---|---|
|
|
148
|
+
| `address` | yes | `string` | EVM `0x…` or Solana base58 pubkey |
|
|
149
|
+
| `days` | no | `integer` | 1–365, default 30 |
|
|
150
|
+
| `protocol` | no | `string` | comma-separated, same set as above |
|
|
151
|
+
|
|
152
|
+
### `get_stream`
|
|
153
|
+
|
|
154
|
+
| name | required | type | notes |
|
|
155
|
+
|---|---|---|---|
|
|
156
|
+
| `stream_id` | yes | `string` | `"{protocol}-{chainId}-{nativeId}"` — e.g. `"sablier-1-12345"`, `"streamflow-101-7xKX…"` |
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Authentication & rate limits
|
|
161
|
+
|
|
162
|
+
Every request includes `Authorization: Bearer ${VESTREAM_API_KEY}`. The plaintext key is shown to you once at issue time — store it in your shell profile or a secret manager, never commit it.
|
|
163
|
+
|
|
164
|
+
**Free tier limits**
|
|
165
|
+
|
|
166
|
+
- 30 requests / minute (burst)
|
|
167
|
+
- 150 requests / day
|
|
168
|
+
|
|
169
|
+
**Pro tier limits**
|
|
170
|
+
|
|
171
|
+
- 120 requests / minute
|
|
172
|
+
- 5,000 requests / day
|
|
173
|
+
|
|
174
|
+
Higher limits and bulk-export entitlements are available on Enterprise — email <enterprise@vestream.io>.
|
|
175
|
+
|
|
176
|
+
The server returns standard error JSON on failure:
|
|
177
|
+
|
|
178
|
+
```json
|
|
179
|
+
{ "error": "Invalid API key.", "docs": "https://www.vestream.io/api-docs" }
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Environment
|
|
185
|
+
|
|
186
|
+
| variable | default | description |
|
|
187
|
+
|---|---|---|
|
|
188
|
+
| `VESTREAM_API_KEY` | *required* | Your `vstr_live_…` API key |
|
|
189
|
+
| `VESTREAM_API_URL` | `https://www.vestream.io/api/v1` | Override for staging or self-hosted backends. |
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Versioning
|
|
194
|
+
|
|
195
|
+
This package follows [SemVer](https://semver.org). Tool **names** and required-parameter shapes are stable within a major version. Optional parameters and added tools are minor bumps. Breaking changes — removed tools or required-parameter shape changes — happen on major bumps with a deprecation window of at least 90 days.
|
|
196
|
+
|
|
197
|
+
The matching REST API is versioned at the URL prefix (`/api/v1`); we'll bump to `/api/v2` before any breaking change there.
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Links
|
|
202
|
+
|
|
203
|
+
- Website — <https://vestream.io>
|
|
204
|
+
- Developer portal — <https://vestream.io/developer>
|
|
205
|
+
- OpenAPI spec — <https://vestream.io/openapi.json>
|
|
206
|
+
- Live API docs (Swagger UI) — <https://www.vestream.io/api-docs> (gated; sign in via the developer portal)
|
|
207
|
+
- GitHub — <https://github.com/NonFungibleH/Vestream/tree/main/mcp>
|
|
208
|
+
- Contact — <hello@vestream.io>
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Licence
|
|
213
|
+
|
|
214
|
+
MIT. Vestream is operated by 3UILD LLC.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Vestream MCP Server
|
|
4
|
+
*
|
|
5
|
+
* Exposes Vestream's vesting data API as native tools for AI agents
|
|
6
|
+
* (Claude, Cursor, Windsurf, LangChain, etc.) via the Model Context Protocol.
|
|
7
|
+
*
|
|
8
|
+
* Usage — add to your Claude Desktop config:
|
|
9
|
+
* {
|
|
10
|
+
* "mcpServers": {
|
|
11
|
+
* "vestream": {
|
|
12
|
+
* "command": "npx",
|
|
13
|
+
* "args": ["-y", "@vestream/mcp"],
|
|
14
|
+
* "env": { "VESTREAM_API_KEY": "vstr_live_..." }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=vestream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vestream.d.ts","sourceRoot":"","sources":["../vestream.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;GAgBG"}
|
package/dist/vestream.js
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Vestream MCP Server
|
|
4
|
+
*
|
|
5
|
+
* Exposes Vestream's vesting data API as native tools for AI agents
|
|
6
|
+
* (Claude, Cursor, Windsurf, LangChain, etc.) via the Model Context Protocol.
|
|
7
|
+
*
|
|
8
|
+
* Usage — add to your Claude Desktop config:
|
|
9
|
+
* {
|
|
10
|
+
* "mcpServers": {
|
|
11
|
+
* "vestream": {
|
|
12
|
+
* "command": "npx",
|
|
13
|
+
* "args": ["-y", "@vestream/mcp"],
|
|
14
|
+
* "env": { "VESTREAM_API_KEY": "vstr_live_..." }
|
|
15
|
+
* }
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
20
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
21
|
+
import { z } from "zod";
|
|
22
|
+
const BASE_URL = process.env.VESTREAM_API_URL ?? "https://www.vestream.io/api/v1";
|
|
23
|
+
const API_KEY = process.env.VESTREAM_API_KEY ?? "";
|
|
24
|
+
if (!API_KEY) {
|
|
25
|
+
console.error("[vestream-mcp] ERROR: VESTREAM_API_KEY environment variable is required.");
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
// ─── API helper ───────────────────────────────────────────────────────────────
|
|
29
|
+
//
|
|
30
|
+
// Wraps fetch with: 30s timeout (so a dead endpoint doesn't hang the MCP host
|
|
31
|
+
// indefinitely), and a small classifier on the error path that turns raw HTTP
|
|
32
|
+
// status codes into messages the agent can actually reason about ("you're
|
|
33
|
+
// rate-limited, retry in 12s" beats "Vestream API error 429"). Mapped codes:
|
|
34
|
+
// 401 — invalid / missing key → tells the user how to get one
|
|
35
|
+
// 402 — Pro-only endpoint → flags the upgrade path
|
|
36
|
+
// 403 — revoked / disabled key → distinct from typo'd 401
|
|
37
|
+
// 404 — wallet/stream not indexed → distinguishes "no data" from "bad input"
|
|
38
|
+
// 429 — rate limited → surfaces Retry-After in seconds
|
|
39
|
+
// 5xx — upstream / transient → tells agents to back off
|
|
40
|
+
//
|
|
41
|
+
// `Retry-After` is parsed as either an integer (seconds) or an HTTP-date.
|
|
42
|
+
async function vstreamFetch(path, init = {}) {
|
|
43
|
+
let res;
|
|
44
|
+
try {
|
|
45
|
+
res = await fetch(`${BASE_URL}${path}`, {
|
|
46
|
+
...init,
|
|
47
|
+
signal: AbortSignal.timeout(30_000),
|
|
48
|
+
headers: {
|
|
49
|
+
Authorization: `Bearer ${API_KEY}`,
|
|
50
|
+
Accept: "application/json",
|
|
51
|
+
"User-Agent": "vestream-mcp/1.3.0",
|
|
52
|
+
...(init.body ? { "Content-Type": "application/json" } : {}),
|
|
53
|
+
...(init.headers ?? {}),
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
catch (e) {
|
|
58
|
+
const err = e;
|
|
59
|
+
if (err.name === "TimeoutError" || err.name === "AbortError") {
|
|
60
|
+
throw new Error("Vestream API did not respond within 30 seconds. The server may be slow or unreachable — try again in a moment.");
|
|
61
|
+
}
|
|
62
|
+
throw new Error(`Could not reach the Vestream API: ${err.message ?? String(e)}`);
|
|
63
|
+
}
|
|
64
|
+
if (res.ok)
|
|
65
|
+
return res.json();
|
|
66
|
+
// Parse the error body if there is one — falls through to status-only on
|
|
67
|
+
// non-JSON or empty bodies. Never re-throws the JSON parse failure as the
|
|
68
|
+
// primary error.
|
|
69
|
+
const body = await res.json().catch(() => null);
|
|
70
|
+
const docs = body?.docs ?? "https://www.vestream.io/api-docs";
|
|
71
|
+
switch (res.status) {
|
|
72
|
+
case 401:
|
|
73
|
+
throw new Error("Your VESTREAM_API_KEY is missing or invalid. Get a free key at vestream.io/developer and " +
|
|
74
|
+
"set it in your MCP client config (the `env.VESTREAM_API_KEY` field).");
|
|
75
|
+
case 402:
|
|
76
|
+
throw new Error("This endpoint is Pro tier only. Upgrade at vestream.io/pricing or contact team@vestream.io.");
|
|
77
|
+
case 403:
|
|
78
|
+
throw new Error("Your API key has been revoked. Generate a new one at vestream.io/developer.");
|
|
79
|
+
case 404:
|
|
80
|
+
throw new Error(body?.error ?? "Resource not found. Check that the wallet address or stream ID is correct.");
|
|
81
|
+
case 429: {
|
|
82
|
+
const retryHdr = res.headers.get("Retry-After");
|
|
83
|
+
const retrySecs = parseRetryAfter(retryHdr);
|
|
84
|
+
const inSecs = retrySecs != null ? ` Retry in ${retrySecs}s.` : "";
|
|
85
|
+
throw new Error(`Rate limited.${inSecs} Free tier: 30 req/min, 150/day. Pro: 120 req/min, 5,000/day. See ${docs}.`);
|
|
86
|
+
}
|
|
87
|
+
default: {
|
|
88
|
+
if (res.status >= 500) {
|
|
89
|
+
throw new Error(`Vestream had a server error (HTTP ${res.status}). This is usually transient — try again in a few seconds.`);
|
|
90
|
+
}
|
|
91
|
+
const detail = body?.error ?? res.statusText ?? "Unknown error";
|
|
92
|
+
throw new Error(`Vestream API error ${res.status}: ${detail}`);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function parseRetryAfter(header) {
|
|
97
|
+
if (!header)
|
|
98
|
+
return null;
|
|
99
|
+
// RFC 7231: either seconds (integer) or an HTTP-date.
|
|
100
|
+
const asInt = Number(header);
|
|
101
|
+
if (Number.isFinite(asInt) && asInt >= 0)
|
|
102
|
+
return Math.ceil(asInt);
|
|
103
|
+
const asDate = Date.parse(header);
|
|
104
|
+
if (!Number.isNaN(asDate)) {
|
|
105
|
+
const diff = Math.ceil((asDate - Date.now()) / 1000);
|
|
106
|
+
return diff > 0 ? diff : null;
|
|
107
|
+
}
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
// ─── Shared Zod primitives ───────────────────────────────────────────────────
|
|
111
|
+
//
|
|
112
|
+
// The previous tool definitions accepted any string for `protocol` and any
|
|
113
|
+
// number for `days`, so a misbehaving agent could send `days=999999` or
|
|
114
|
+
// `protocol=invalid` and only see a backend rejection — opaque to the LLM.
|
|
115
|
+
// Constrain at the MCP layer so the model gets a tight schema and the
|
|
116
|
+
// backend never sees out-of-range values.
|
|
117
|
+
const PROTOCOL_VALUES = [
|
|
118
|
+
"sablier", "hedgey", "uncx", "unvest", "team-finance",
|
|
119
|
+
"superfluid", "pinksale", "llamapay", "hoodlock",
|
|
120
|
+
"streamflow", "jupiter-lock", "smithii",
|
|
121
|
+
];
|
|
122
|
+
// Accept comma-separated lists of the canonical slugs above. We don't try
|
|
123
|
+
// to enum-validate the comma-separated string at parse time (Zod can't
|
|
124
|
+
// elegantly express that); instead we lower-case + filter at the call
|
|
125
|
+
// site so unknown slugs are silently dropped.
|
|
126
|
+
const protocolFilter = z.string().optional().describe("Comma-separated protocol filter. Valid values: " + PROTOCOL_VALUES.join(", "));
|
|
127
|
+
function sanitiseProtocolFilter(raw) {
|
|
128
|
+
if (!raw)
|
|
129
|
+
return undefined;
|
|
130
|
+
const allow = new Set(PROTOCOL_VALUES);
|
|
131
|
+
const kept = raw.split(",").map((s) => s.trim().toLowerCase()).filter((s) => allow.has(s));
|
|
132
|
+
return kept.length > 0 ? kept.join(",") : undefined;
|
|
133
|
+
}
|
|
134
|
+
// ─── MCP Server ───────────────────────────────────────────────────────────────
|
|
135
|
+
const server = new McpServer({
|
|
136
|
+
name: "vestream",
|
|
137
|
+
version: "1.3.0",
|
|
138
|
+
});
|
|
139
|
+
// ── Tool: get_wallet_vestings ─────────────────────────────────────────────────
|
|
140
|
+
server.tool("get_wallet_vestings", "Get all token vesting streams for a wallet across every supported protocol " +
|
|
141
|
+
"and chain (including Solana). EVM protocols: Sablier, Hedgey, UNCX, Unvest, " +
|
|
142
|
+
"Team Finance, Superfluid, PinkSale, LlamaPay, HoodLock. " +
|
|
143
|
+
"Solana protocols: Streamflow, Jupiter Lock. " +
|
|
144
|
+
"EVM chains: Ethereum, BSC, Polygon, Base, Arbitrum, Optimism, Avalanche, " +
|
|
145
|
+
"Robinhood Chain. Non-EVM chains: Solana. " +
|
|
146
|
+
"Returns normalised stream data: token, amounts locked/claimable/withdrawn, " +
|
|
147
|
+
"schedule dates, cliff time, next unlock, and claim history — identical " +
|
|
148
|
+
"JSON shape regardless of source protocol or ecosystem.", {
|
|
149
|
+
address: z.string().describe("Wallet address. EVM: 0x-prefixed hex (e.g. '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'). " +
|
|
150
|
+
"Solana: base58-encoded pubkey (e.g. '7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU')"),
|
|
151
|
+
protocol: protocolFilter,
|
|
152
|
+
chain: z.string().optional().describe("Comma-separated chain ID filter, e.g. '1,101,8453'. " +
|
|
153
|
+
"Supported: 1 (Ethereum), 56 (BSC), 137 (Polygon), 8453 (Base), 42161 (Arbitrum), 10 (Optimism), 43114 (Avalanche), 4663 (Robinhood Chain), 101 (Solana)"),
|
|
154
|
+
active_only: z.boolean().optional().describe("If true, only return streams that are not yet fully vested (default: false)"),
|
|
155
|
+
limit: z.number().int().min(1).max(500).optional().describe("Page size, 1–500. Default 100. Use with `offset` to page through wallets " +
|
|
156
|
+
"with hundreds of streams without overflowing your context window."),
|
|
157
|
+
offset: z.number().int().min(0).optional().describe("Zero-indexed page offset. Use the `pagination.next_offset` field from a " +
|
|
158
|
+
"prior response to fetch the next page."),
|
|
159
|
+
}, async ({ address, protocol, chain, active_only, limit, offset }) => {
|
|
160
|
+
const qs = new URLSearchParams();
|
|
161
|
+
const cleanedProtocol = sanitiseProtocolFilter(protocol);
|
|
162
|
+
if (cleanedProtocol)
|
|
163
|
+
qs.set("protocol", cleanedProtocol);
|
|
164
|
+
if (chain)
|
|
165
|
+
qs.set("chain", chain);
|
|
166
|
+
if (active_only)
|
|
167
|
+
qs.set("active_only", "true");
|
|
168
|
+
if (typeof limit === "number")
|
|
169
|
+
qs.set("limit", String(limit));
|
|
170
|
+
if (typeof offset === "number")
|
|
171
|
+
qs.set("offset", String(offset));
|
|
172
|
+
const query = qs.toString() ? `?${qs}` : "";
|
|
173
|
+
const data = await vstreamFetch(`/wallet/${address}/vestings${query}`);
|
|
174
|
+
return {
|
|
175
|
+
content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
// ── Tool: get_upcoming_unlocks ────────────────────────────────────────────────
|
|
179
|
+
server.tool("get_upcoming_unlocks", "Get all upcoming token unlock events for a wallet within a future time window. " +
|
|
180
|
+
"Works for both EVM 0x addresses and Solana base58 pubkeys. Returns cliff " +
|
|
181
|
+
"completions, tranche unlocks, and locks releasing at their end date, sorted " +
|
|
182
|
+
"by date. Linear streams release continuously, so they have no end event. " +
|
|
183
|
+
"Ideal for forecasting when tokens become available, scheduling claims, or " +
|
|
184
|
+
"building alerts.", {
|
|
185
|
+
address: z.string().describe("Wallet address — EVM 0x hex or Solana base58 pubkey"),
|
|
186
|
+
days: z.number().int().min(1).max(365).optional().describe("Lookahead window in days. Default 30, minimum 1, maximum 365."),
|
|
187
|
+
protocol: protocolFilter,
|
|
188
|
+
}, async ({ address, days, protocol }) => {
|
|
189
|
+
const qs = new URLSearchParams();
|
|
190
|
+
if (days)
|
|
191
|
+
qs.set("days", String(days));
|
|
192
|
+
const cleanedProtocol = sanitiseProtocolFilter(protocol);
|
|
193
|
+
if (cleanedProtocol)
|
|
194
|
+
qs.set("protocol", cleanedProtocol);
|
|
195
|
+
const query = qs.toString() ? `?${qs}` : "";
|
|
196
|
+
const data = await vstreamFetch(`/wallet/${address}/upcoming-unlocks${query}`);
|
|
197
|
+
return {
|
|
198
|
+
content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
|
|
199
|
+
};
|
|
200
|
+
});
|
|
201
|
+
// ── Tool: get_token_unlocks ───────────────────────────────────────────────────
|
|
202
|
+
server.tool("get_token_unlocks", "Get the supply-side vesting view for one token across every indexed schedule: " +
|
|
203
|
+
"how much is still locked now, how much linear streams release per day, and " +
|
|
204
|
+
"the discrete unlocks (cliffs, tranches, lock ends) due in the next N days, " +
|
|
205
|
+
"grouped by unlock time with schedule and recipient counts. Use this for " +
|
|
206
|
+
"token-level unlock analysis; use get_upcoming_unlocks for a single wallet. " +
|
|
207
|
+
"Amounts are raw base units: divide by 10^token_decimals.", {
|
|
208
|
+
chain_id: z.number().int().describe("Chain ID: 1 (Ethereum), 10 (Optimism), 56 (BSC), 101 (Solana), 137 (Polygon), " +
|
|
209
|
+
"143 (Monad), 324 (zkSync Era), 4663 (Robinhood Chain), 8453 (Base), 42161 (Arbitrum), " +
|
|
210
|
+
"43114 (Avalanche), 80094 (Berachain), 81457 (Blast)"),
|
|
211
|
+
token_address: z.string().describe("Token contract address (EVM 0x hex) or Solana mint (base58, case-sensitive)"),
|
|
212
|
+
days: z.number().int().min(1).max(365).optional().describe("Lookahead window in days. Default 90, minimum 1, maximum 365."),
|
|
213
|
+
protocol: protocolFilter,
|
|
214
|
+
}, async ({ chain_id, token_address, days, protocol }) => {
|
|
215
|
+
const qs = new URLSearchParams();
|
|
216
|
+
if (days)
|
|
217
|
+
qs.set("days", String(days));
|
|
218
|
+
const cleanedProtocol = sanitiseProtocolFilter(protocol);
|
|
219
|
+
if (cleanedProtocol)
|
|
220
|
+
qs.set("protocol", cleanedProtocol);
|
|
221
|
+
const query = qs.toString() ? `?${qs}` : "";
|
|
222
|
+
const data = await vstreamFetch(`/token/${chain_id}/${token_address}/unlocks${query}`);
|
|
223
|
+
return {
|
|
224
|
+
content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
|
|
225
|
+
};
|
|
226
|
+
});
|
|
227
|
+
// ── Tool: get_stream ──────────────────────────────────────────────────────────
|
|
228
|
+
server.tool("get_stream", "Get full details for a single vesting stream by its composite ID. " +
|
|
229
|
+
"Stream IDs follow the format: {protocol}-{chainId}-{nativeId}, " +
|
|
230
|
+
"e.g. 'sablier-1-12345' (EVM) or 'streamflow-101-7xKX...' (Solana). " +
|
|
231
|
+
"Use get_wallet_vestings first to discover stream IDs for a wallet.", {
|
|
232
|
+
stream_id: z.string().describe("Composite stream ID in format 'protocol-chainId-nativeId', " +
|
|
233
|
+
"e.g. 'sablier-1-12345', 'uncx-8453-99', 'streamflow-101-7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU'"),
|
|
234
|
+
}, async ({ stream_id }) => {
|
|
235
|
+
const data = await vstreamFetch(`/stream/${stream_id}`);
|
|
236
|
+
return {
|
|
237
|
+
content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
|
|
238
|
+
};
|
|
239
|
+
});
|
|
240
|
+
// ── Tool: list_webhook_subscriptions ──────────────────────────────────────
|
|
241
|
+
//
|
|
242
|
+
// Webhook tools wrap the /api/v1/webhooks endpoints — Pro tier only on the
|
|
243
|
+
// backend. Lets agents set up "ping this URL when an unlock matching X
|
|
244
|
+
// happens" rules without leaving the chat. Subscription state lives in
|
|
245
|
+
// Vestream's DB; the MCP host never holds it.
|
|
246
|
+
server.tool("list_webhook_subscriptions", "List the webhook subscriptions registered to the caller's API key. Pro " +
|
|
247
|
+
"tier only — free-tier keys get a 402 error. Each subscription describes " +
|
|
248
|
+
"a URL Vestream POSTs to when a matching upcoming-unlock event fires.", {}, async () => {
|
|
249
|
+
const data = await vstreamFetch("/webhooks");
|
|
250
|
+
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
|
|
251
|
+
});
|
|
252
|
+
// ── Tool: create_webhook_subscription ──────────────────────────────────────
|
|
253
|
+
server.tool("create_webhook_subscription", "Register a new webhook subscription. Vestream will POST to the given URL " +
|
|
254
|
+
"every time an upcoming-unlock event matches the optional filters " +
|
|
255
|
+
"(wallet, protocol, chain). Returns the secret ONCE — store it somewhere " +
|
|
256
|
+
"safe; the receiver verifies each payload via the X-Vestream-Signature " +
|
|
257
|
+
"header (HMAC-SHA256 of the raw body using this secret). Pro tier only.", {
|
|
258
|
+
url: z.string().describe("Destination URL. Must be https in production. Vestream POSTs JSON to this URL on each matching event."),
|
|
259
|
+
wallet_filter: z.array(z.string()).optional().describe("Optional list of wallet addresses to scope notifications to. Omit to notify on every match."),
|
|
260
|
+
protocol_filter: z.array(z.string()).optional().describe("Optional list of protocol slugs (e.g. ['sablier', 'streamflow'])."),
|
|
261
|
+
chain_filter: z.array(z.number().int()).optional().describe("Optional list of chain IDs (e.g. [1, 8453])."),
|
|
262
|
+
hours_before: z.number().int().min(1).max(168).optional().describe("How many hours before unlock to fire the event. Default 24, range 1–168."),
|
|
263
|
+
}, async ({ url, wallet_filter, protocol_filter, chain_filter, hours_before }) => {
|
|
264
|
+
const body = JSON.stringify({
|
|
265
|
+
url,
|
|
266
|
+
wallet_filter,
|
|
267
|
+
protocol_filter,
|
|
268
|
+
chain_filter,
|
|
269
|
+
hours_before,
|
|
270
|
+
});
|
|
271
|
+
const data = await vstreamFetch("/webhooks", { method: "POST", body });
|
|
272
|
+
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
|
|
273
|
+
});
|
|
274
|
+
// ── Tool: delete_webhook_subscription ──────────────────────────────────────
|
|
275
|
+
server.tool("delete_webhook_subscription", "Permanently delete a webhook subscription. Use list_webhook_subscriptions " +
|
|
276
|
+
"first to discover the subscription's id.", {
|
|
277
|
+
subscription_id: z.string().describe("The subscription's UUID, e.g. as returned by list_webhook_subscriptions."),
|
|
278
|
+
}, async ({ subscription_id }) => {
|
|
279
|
+
const data = await vstreamFetch(`/webhooks/${subscription_id}`, { method: "DELETE" });
|
|
280
|
+
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
|
|
281
|
+
});
|
|
282
|
+
// ─── Start ────────────────────────────────────────────────────────────────────
|
|
283
|
+
async function main() {
|
|
284
|
+
const transport = new StdioServerTransport();
|
|
285
|
+
await server.connect(transport);
|
|
286
|
+
console.error("[vestream-mcp] Server running on stdio. Waiting for MCP client...");
|
|
287
|
+
}
|
|
288
|
+
main().catch((err) => {
|
|
289
|
+
console.error("[vestream-mcp] Fatal error:", err);
|
|
290
|
+
process.exit(1);
|
|
291
|
+
});
|
|
292
|
+
//# sourceMappingURL=vestream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vestream.js","sourceRoot":"","sources":["../vestream.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAe,yCAAyC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAuB,KAAK,CAAC;AAEzC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,gCAAgC,CAAC;AAClF,MAAM,OAAO,GAAI,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,EAAE,CAAC;AAEpD,IAAI,CAAC,OAAO,EAAE,CAAC;IACb,OAAO,CAAC,KAAK,CAAC,0EAA0E,CAAC,CAAC;IAC1F,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,iFAAiF;AACjF,EAAE;AACF,8EAA8E;AAC9E,8EAA8E;AAC9E,0EAA0E;AAC1E,6EAA6E;AAC7E,4EAA4E;AAC5E,qEAAqE;AACrE,uEAAuE;AACvE,uFAAuF;AACvF,8EAA8E;AAC9E,uEAAuE;AACvE,EAAE;AACF,0EAA0E;AAE1E,KAAK,UAAU,YAAY,CAAC,IAAY,EAAE,OAAoB,EAAE;IAC9D,IAAI,GAAa,CAAC;IAClB,IAAI,CAAC;QACH,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,QAAQ,GAAG,IAAI,EAAE,EAAE;YACtC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AE,CAAC;AACvF,CAAC,CACF,CAAC;AAEF,iFAAiF;AAEjF,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;AACrF,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;IAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vestream/mcp",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "1.3.1",
|
|
4
|
+
"mcpName": "io.vestream/mcp",
|
|
5
|
+
"description": "MCP server for Vestream — real-time token vesting data for AI agents",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"mcp",
|
|
8
|
+
"model-context-protocol",
|
|
9
|
+
"token",
|
|
10
|
+
"vesting",
|
|
11
|
+
"defi",
|
|
12
|
+
"crypto",
|
|
13
|
+
"sablier",
|
|
14
|
+
"uncx",
|
|
15
|
+
"web3"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://vestream.io/developer",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/NonFungibleH/Vestream.git",
|
|
21
|
+
"directory": "mcp"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"type": "module",
|
|
25
|
+
"bin": {
|
|
26
|
+
"vestream-mcp": "dist/vestream.js"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc",
|
|
33
|
+
"dev": "tsx vestream.ts",
|
|
34
|
+
"start": "node dist/vestream.js",
|
|
35
|
+
"prepublishOnly": "npm run build",
|
|
36
|
+
"publish:official": "npm publish --provenance --access public"
|
|
37
|
+
},
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@modelcontextprotocol/sdk": "^1.10.2",
|
|
43
|
+
"zod": "^3.23.8"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/node": "^20",
|
|
47
|
+
"tsx": "^4.19.2",
|
|
48
|
+
"typescript": "^5"
|
|
49
|
+
},
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=18"
|
|
52
|
+
}
|
|
53
|
+
}
|