@x402scan/mcp 0.1.1 → 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 +46 -6
- package/dist/cjs/run-server.cjs +361 -69
- package/dist/esm/{chunk-PAP5NZRW.js → chunk-5BVIGIIR.js} +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/{install-KQS3ZCOB.js → install-YSPOEUCV.js} +2 -2
- package/dist/esm/{server-AQZDUW42.js → server-OMQNEM4L.js} +357 -68
- package/dist/esm/server-OMQNEM4L.js.map +1 -0
- package/package.json +6 -6
- package/dist/esm/server-AQZDUW42.js.map +0 -1
- /package/dist/esm/{chunk-PAP5NZRW.js.map → chunk-5BVIGIIR.js.map} +0 -0
- /package/dist/esm/{install-KQS3ZCOB.js.map → install-YSPOEUCV.js.map} +0 -0
package/README.md
CHANGED
|
@@ -4,6 +4,12 @@ MCP server for calling [x402](https://x402.org)-protected APIs with automatic pa
|
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
|
+
### Recommended (Guided Install)
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx @x402scan/mcp install
|
|
11
|
+
```
|
|
12
|
+
|
|
7
13
|
### Claude Code
|
|
8
14
|
|
|
9
15
|
```bash
|
|
@@ -107,14 +113,48 @@ Base, Base Sepolia, Ethereum, Optimism, Arbitrum, Polygon (via CAIP-2)
|
|
|
107
113
|
## Develop
|
|
108
114
|
|
|
109
115
|
```bash
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
# Add local server to Claude Code
|
|
113
|
-
claude mcp add x402scan-dev -- bun run /path/to/x402scan-mcp/src/index.ts
|
|
116
|
+
pnpm install
|
|
114
117
|
|
|
115
118
|
# Build
|
|
116
|
-
|
|
119
|
+
pnpm -w dev:mcp
|
|
120
|
+
|
|
121
|
+
# In a separate terminal with cwd packages/external/mcp
|
|
122
|
+
pnpm dev install --dev
|
|
117
123
|
|
|
118
124
|
# Build .mcpb for Claude Desktop
|
|
119
|
-
|
|
125
|
+
pnpm build:mcpb
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Publishing
|
|
129
|
+
|
|
130
|
+
This package uses [changesets](https://github.com/changesets/changesets) for versioning and publishing.
|
|
131
|
+
|
|
132
|
+
### Standard Release Flow (main branch)
|
|
133
|
+
|
|
134
|
+
1. Create a changeset describing your changes:
|
|
135
|
+
```bash
|
|
136
|
+
pnpm changeset
|
|
137
|
+
```
|
|
138
|
+
2. Commit the changeset file with your PR
|
|
139
|
+
3. When merged to `main`, the CI creates a "Version Packages" PR
|
|
140
|
+
4. Merging the version PR triggers automatic npm publish
|
|
141
|
+
|
|
142
|
+
### Beta Release Flow (beta branch)
|
|
143
|
+
|
|
144
|
+
For pre-release versions, use the `beta` branch with prerelease mode:
|
|
145
|
+
|
|
146
|
+
1. Enter prerelease mode:
|
|
147
|
+
```bash
|
|
148
|
+
pnpm changeset pre enter beta
|
|
149
|
+
```
|
|
150
|
+
2. Commit the generated `.changeset/pre.json` file
|
|
151
|
+
3. Create changesets and merge to `beta` as normal
|
|
152
|
+
4. Versions will be published as `x.x.x-beta.x`
|
|
153
|
+
|
|
154
|
+
To exit prerelease mode and promote to stable:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
pnpm changeset pre exit
|
|
120
158
|
```
|
|
159
|
+
|
|
160
|
+
**Note:** The CI enforces that `beta` branch must have `pre.json` and `main` branch must not.
|