@seasonkoh/webaz 0.1.0 → 0.1.2
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
CHANGED
|
@@ -20,15 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
### 方式一:Claude MCP 接入(Agent 原生体验)
|
|
22
22
|
|
|
23
|
-
**1.
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
git clone <repo-url> webaz
|
|
27
|
-
cd webaz
|
|
28
|
-
npm install
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**2. 添加到 Claude Desktop 配置**
|
|
23
|
+
**1. 添加到 Claude Desktop 配置**
|
|
32
24
|
|
|
33
25
|
编辑 `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
34
26
|
|
|
@@ -37,13 +29,13 @@ npm install
|
|
|
37
29
|
"mcpServers": {
|
|
38
30
|
"webaz": {
|
|
39
31
|
"command": "npx",
|
|
40
|
-
"args": ["
|
|
32
|
+
"args": ["-y", "@seasonkoh/webaz"]
|
|
41
33
|
}
|
|
42
34
|
}
|
|
43
35
|
}
|
|
44
36
|
```
|
|
45
37
|
|
|
46
|
-
重启 Claude Desktop
|
|
38
|
+
重启 Claude Desktop。无需手动安装,`npx` 会自动下载运行。
|
|
47
39
|
|
|
48
40
|
**3. 开始使用**
|
|
49
41
|
|
|
@@ -4,9 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import Database from 'better-sqlite3';
|
|
6
6
|
import path from 'path';
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
const
|
|
7
|
+
import os from 'os';
|
|
8
|
+
import fs from 'fs';
|
|
9
|
+
const DATA_DIR = path.join(os.homedir(), '.webaz');
|
|
10
|
+
if (!fs.existsSync(DATA_DIR))
|
|
11
|
+
fs.mkdirSync(DATA_DIR, { recursive: true });
|
|
12
|
+
const DB_PATH = path.join(DATA_DIR, 'webaz.db');
|
|
10
13
|
export function initDatabase() {
|
|
11
14
|
const db = new Database(DB_PATH);
|
|
12
15
|
db.pragma('journal_mode = WAL'); // 更好的并发性能
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seasonkoh/webaz",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Agent-native decentralized commerce protocol. Humans and AI agents trade on the same protocol via MCP tools.",
|
|
5
5
|
"main": "dist/mcp.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"webaz": "dist/mcp.js"
|
|
8
8
|
},
|
|
9
|
-
"mcpName": "webaz",
|
|
9
|
+
"mcpName": "io.github.seasonsagents-art/webaz",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"prepare": "npm run build",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
],
|
|
32
32
|
"author": "",
|
|
33
33
|
"license": "MIT",
|
|
34
|
-
"homepage": "https://github.com/
|
|
34
|
+
"homepage": "https://github.com/seasonsagents-art/webaz",
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
37
|
-
"url": "https://github.com/
|
|
37
|
+
"url": "https://github.com/seasonsagents-art/webaz.git"
|
|
38
38
|
},
|
|
39
39
|
"type": "module",
|
|
40
40
|
"files": [
|