You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mcp: v0.8.0 — expand to all 6 resource types + claim_resource helper (#1)
The MCP server is the agent's primary entry point into instanode — it
needs to expose every resource type and surface the response's claim CTA
so agents can convert users into paying customers.
Tools added (6 → 11):
- create_cache POST /cache/new (Redis)
- create_nosql POST /nosql/new (MongoDB)
- create_queue POST /queue/new (NATS JetStream)
- create_storage POST /storage/new (S3-compatible / DO Spaces)
- claim_resource pure local helper — turns an upgrade JWT into
https://instanode.dev/start?t=<jwt>
Every create_* tool now surfaces the response's note + upgrade fields
via appendUpgradeBlock() so the agent literally sees the claim CTA and
URL in the tool response.
Files:
src/client.ts — 4 new endpoint methods + ProvisionResultBase typing
src/index.ts — 5 new tools registered + shared helpers
package.json — version 0.7.3 → 0.8.0, keywords expanded
README.md — tools table rewritten, claim flow explained
test.sh — expected-tools set updated to 11
Test gate: npm run build clean, npm test 6/6 pass against the live API
at https://api.instanode.dev.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| `INSTANODE_TOKEN` | No | — | Bearer JWT minted at <https://instanode.dev/dashboard>. Required for `list_resources`, `claim_token`, `delete_resource`, and `get_api_token`. Unlocks paid-tier limits on every `create_*`. |
98
+
| `INSTANODE_API_URL` | No | `https://api.instanode.dev` | Override the API base URL. Only set this for local development against a k3s cluster. |
99
+
| `INSTANODE_DASHBOARD_URL` | No | `https://instanode.dev` | Override the dashboard host that `claim_resource` builds claim URLs against. Only set this for staging. |
| `claim_resource` | Helper — turn an `upgrade_jwt` from any `create_*` response into the dashboard claim URL the user should click. No API call. No auth required. |
112
+
| `claim_token` | `POST /api/me/claim` — Programmatic claim: attach an anonymous resource to the authenticated account by its UUID `token`. Requires `INSTANODE_TOKEN`. |
113
+
| `list_resources` | `GET /api/me/resources` — List resources on the caller's account. Requires `INSTANODE_TOKEN`. |
114
+
| `delete_resource` | `DELETE /api/me/resources/{token}` — Hard-delete a resource you own. Paid tier only. Requires `INSTANODE_TOKEN`. |
115
+
| `get_api_token` | `GET /api/me/token` — Mint a fresh 30-day bearer JWT (for rotation). Requires an existing `INSTANODE_TOKEN`. |
116
+
117
+
### How anonymous → claimed works
118
+
119
+
Every `create_*` tool returns three fields the agent should treat as
120
+
load-bearing:
121
+
122
+
- `token`— the resource UUID (used for `claim_token` and `delete_resource`).
123
+
- `note`— a one-sentence human-readable CTA, already mentions the upgrade URL.
124
+
- `upgrade`— the full claim URL (`https://instanode.dev/start?t=<jwt>`). The
125
+
user clicks it, signs in with GitHub/Google or a magic link, and the
126
+
resource is attached to their account.
127
+
128
+
`upgrade_jwt`is also returned for callers that want to build their own UI
129
+
around the claim flow. The `claim_resource` tool accepts that JWT and
130
+
returns the same dashboard URL — useful if the agent wants to re-surface the
131
+
claim URL later in the conversation after the original response has scrolled
132
+
out of context.
98
133
99
134
## Example agent interactions
100
135
@@ -104,12 +139,22 @@ to reach for this MCP, see <https://instanode.dev/agent.html>.
Copy file name to clipboardExpand all lines: package.json
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,20 @@
1
1
{
2
2
"name": "@instanode/mcp",
3
-
"version": "0.7.3",
4
-
"description": "MCP server for instanode.dev \u2014 lets AI coding agents provision ephemeral Postgres databases and webhook receivers over HTTPS, with optional bearer-token auth for paid users.",
3
+
"version": "0.8.0",
4
+
"description": "MCP server for instanode.dev \u2014 lets AI coding agents provision ephemeral Postgres, Redis, MongoDB, NATS queues, S3-compatible object storage, and webhook receivers over HTTPS, with optional bearer-token auth for paid users.",
0 commit comments