@aibtc/mcp-server 1.0.0 → 1.1.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 +3 -3
- package/dist/index.js +1 -1
- package/dist/tools/scaffold.tools.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,9 +25,9 @@ npx @aibtc/mcp-server@latest --install
|
|
|
25
25
|
|
|
26
26
|
That's it! This automatically configures Claude Code. Restart your terminal and start chatting.
|
|
27
27
|
|
|
28
|
-
**For
|
|
28
|
+
**For testnet:**
|
|
29
29
|
```bash
|
|
30
|
-
npx @aibtc/mcp-server@latest --install --
|
|
30
|
+
npx @aibtc/mcp-server@latest --install --testnet
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
> **Why npx?** Using `npx @aibtc/mcp-server@latest` ensures you always get the newest version automatically. Global installs (`npm install -g`) won't auto-update.
|
|
@@ -275,7 +275,7 @@ Or use any SIP-010 token by contract ID: `SP2X...::token-name`
|
|
|
275
275
|
|
|
276
276
|
| Environment Variable | Description | Default |
|
|
277
277
|
|---------------------|-------------|---------|
|
|
278
|
-
| `NETWORK` | `mainnet` or `testnet` | `
|
|
278
|
+
| `NETWORK` | `mainnet` or `testnet` | `mainnet` |
|
|
279
279
|
| `API_URL` | Default x402 API base URL | `https://x402.biwas.xyz` |
|
|
280
280
|
| `CLIENT_MNEMONIC` | (Optional) Pre-configured mnemonic | - |
|
|
281
281
|
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { NETWORK, API_URL } from "./config/index.js";
|
|
|
12
12
|
// =============================================================================
|
|
13
13
|
async function installToClaudeCode() {
|
|
14
14
|
const claudeConfigPath = path.join(os.homedir(), ".claude.json");
|
|
15
|
-
const network = process.argv.includes("--
|
|
15
|
+
const network = process.argv.includes("--testnet") ? "testnet" : "mainnet";
|
|
16
16
|
console.log("🔧 Installing @aibtc/mcp-server to Claude Code...\n");
|
|
17
17
|
// Read existing config or create new one
|
|
18
18
|
let config = {};
|
|
@@ -63,8 +63,8 @@ The generated endpoints implement the x402 payment protocol:
|
|
|
63
63
|
network: z
|
|
64
64
|
.enum(["mainnet", "testnet"])
|
|
65
65
|
.optional()
|
|
66
|
-
.default("
|
|
67
|
-
.describe("Network for payments (default:
|
|
66
|
+
.default("mainnet")
|
|
67
|
+
.describe("Network for payments (default: mainnet)"),
|
|
68
68
|
facilitatorUrl: z
|
|
69
69
|
.string()
|
|
70
70
|
.url()
|
|
@@ -78,7 +78,7 @@ The generated endpoints implement the x402 payment protocol:
|
|
|
78
78
|
projectName,
|
|
79
79
|
endpoints: endpoints,
|
|
80
80
|
recipientAddress,
|
|
81
|
-
network: network || "
|
|
81
|
+
network: network || "mainnet",
|
|
82
82
|
facilitatorUrl: facilitatorUrl || "https://facilitator.x402stacks.xyz",
|
|
83
83
|
});
|
|
84
84
|
return createJsonResponse({
|
|
@@ -170,8 +170,8 @@ Creates a ready-to-deploy Hono.js application that:
|
|
|
170
170
|
network: z
|
|
171
171
|
.enum(["mainnet", "testnet"])
|
|
172
172
|
.optional()
|
|
173
|
-
.default("
|
|
174
|
-
.describe("Network for payments (default:
|
|
173
|
+
.default("mainnet")
|
|
174
|
+
.describe("Network for payments (default: mainnet)"),
|
|
175
175
|
facilitatorUrl: z
|
|
176
176
|
.string()
|
|
177
177
|
.url()
|
|
@@ -190,7 +190,7 @@ Creates a ready-to-deploy Hono.js application that:
|
|
|
190
190
|
projectName,
|
|
191
191
|
endpoints: endpoints,
|
|
192
192
|
recipientAddress,
|
|
193
|
-
network: network || "
|
|
193
|
+
network: network || "mainnet",
|
|
194
194
|
facilitatorUrl: facilitatorUrl || "https://facilitator.x402stacks.xyz",
|
|
195
195
|
defaultModel: defaultModel || "anthropic/claude-3-haiku",
|
|
196
196
|
});
|
package/package.json
CHANGED