contextwise 0.1.0 → 0.2.0
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 +64 -0
- package/dist/{chunk-P7JW7EPW.js → chunk-5ZMX5TEM.js} +395 -1190
- package/dist/chunk-5ZMX5TEM.js.map +1 -0
- package/dist/chunk-OYCA37PJ.js +710 -0
- package/dist/chunk-OYCA37PJ.js.map +1 -0
- package/dist/chunk-WP7RH2Z2.js +417 -0
- package/dist/chunk-WP7RH2Z2.js.map +1 -0
- package/dist/cli.js +26 -89
- package/dist/cli.js.map +1 -1
- package/dist/client-3GQWPGI3.js +9 -0
- package/dist/client-3GQWPGI3.js.map +1 -0
- package/dist/index.d.ts +56 -24
- package/dist/index.js +49 -31
- package/dist/sync_manager-2WYXXGCN.js +10 -0
- package/dist/sync_manager-2WYXXGCN.js.map +1 -0
- package/package.json +2 -1
- package/dist/chunk-P7JW7EPW.js.map +0 -1
package/README.md
CHANGED
|
@@ -77,6 +77,38 @@ contextwise stats
|
|
|
77
77
|
|
|
78
78
|
## Quick Start
|
|
79
79
|
|
|
80
|
+
### Fastest: hosted gateway (no install)
|
|
81
|
+
|
|
82
|
+
Call ContextWise through the MCPaid edge — zero install, discovery free,
|
|
83
|
+
cloud sync metered per use ($0.01 push / $0.005 pull, USDC on Base L2):
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# One-shot / stdio bridge (works with any MCP client)
|
|
87
|
+
npx -y @mcpaid/sdk bridge --gateway https://mcpaid.dev/mcp/contextwise
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Claude Code
|
|
92
|
+
claude mcp add contextwise -- npx -y @mcpaid/sdk bridge --gateway https://mcpaid.dev/mcp/contextwise
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
```json
|
|
96
|
+
// Cursor (.cursor/mcp.json) or Claude Desktop — stdio entry
|
|
97
|
+
{
|
|
98
|
+
"mcpServers": {
|
|
99
|
+
"contextwise": {
|
|
100
|
+
"command": "npx",
|
|
101
|
+
"args": ["-y", "@mcpaid/sdk", "bridge", "--gateway", "https://mcpaid.dev/mcp/contextwise"]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
No API keys, no signup for discovery. Paid sync calls return a `402` with
|
|
108
|
+
funding instructions the first time; agents pay gaslessly via EIP-712 permits.
|
|
109
|
+
|
|
110
|
+
### Self-host: local install
|
|
111
|
+
|
|
80
112
|
### 1. Installation
|
|
81
113
|
|
|
82
114
|
Install globally via npm:
|
|
@@ -130,6 +162,38 @@ claude mcp add contextwise -- npx -y contextwise start
|
|
|
130
162
|
}
|
|
131
163
|
```
|
|
132
164
|
|
|
165
|
+
### 4. HTTP Mode (for MCPaid Publishing)
|
|
166
|
+
|
|
167
|
+
Expose ContextWise over Streamable HTTP instead of stdio, then monetize per-call with MCPaid:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
# 1. Serve ContextWise locally over HTTP
|
|
171
|
+
npx contextwise start --http --port 3000
|
|
172
|
+
# Listening on http://127.0.0.1:3000/mcp
|
|
173
|
+
|
|
174
|
+
# 2. Publish to the MCPaid edge (pay-per-use USDC on Base L2)
|
|
175
|
+
npx @mcpaid/sdk publish mcpaid.config.json
|
|
176
|
+
# Live at https://mcpaid.dev/mcp/contextwise
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Priced tools (`mcpaid.config.json`): `contextwise_cloud_push` $0.01/call,
|
|
180
|
+
`contextwise_cloud_pull` $0.005/call; search, execute, browse, server setup,
|
|
181
|
+
and sync status are free. No subscriptions — sync usage is metered through MCPaid instead.
|
|
182
|
+
|
|
183
|
+
#### Downstream Edge Receipt Enforcement
|
|
184
|
+
|
|
185
|
+
To protect your HTTP server from direct bypass and verify payments cryptographically:
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
# Get your server's receipt secret from MCPaid
|
|
189
|
+
npx @mcpaid/sdk server receipt-secret contextwise
|
|
190
|
+
|
|
191
|
+
# Export the secret on your host or deployment
|
|
192
|
+
export MCPAID_RECEIPT_SECRET=mcpaid_sec_...
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
When `MCPAID_RECEIPT_SECRET` is set, ContextWise verifies `X-MCPaid-Receipt` on incoming HTTP requests for priced tools before execution. Calls without a valid receipt or with replayed nonces are rejected with `402 Payment Required`. Verified receipts are securely forwarded to the ContextWise Cloud backend.
|
|
196
|
+
|
|
133
197
|
---
|
|
134
198
|
|
|
135
199
|
## Server Management & Marketplace CLI
|