indelible-mcp 3.2.1 → 3.4.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 +82 -158
- package/package.json +39 -35
- package/src/index.js +769 -0
- package/{lib/api.js → src/lib/api-client.js} +283 -243
- package/{lib → src/lib}/config.js +80 -101
- package/{lib → src/lib}/crypto.js +66 -94
- package/{lib → src/lib}/spv.js +422 -527
- package/src/lib/transcript.js +111 -0
- package/{tools → src/tools}/diary_chat.js +3 -4
- package/{tools → src/tools}/diary_connect.js +4 -4
- package/{tools → src/tools}/diary_save.js +44 -23
- package/{tools → src/tools}/load_context.js +298 -352
- package/src/tools/load_file.js +110 -0
- package/src/tools/load_project.js +133 -0
- package/{tools → src/tools}/load_style.js +0 -1
- package/{tools → src/tools}/save_file.js +252 -269
- package/src/tools/save_project.js +175 -0
- package/src/tools/save_session.js +645 -0
- package/{tools → src/tools}/setup_wallet.js +131 -119
- package/index.js +0 -404
- package/tools/backfill_index.js +0 -92
- package/tools/load_file.js +0 -178
- package/tools/load_project.js +0 -181
- package/tools/save_project.js +0 -210
- package/tools/save_session.js +0 -878
- /package/{tools → src/tools}/save_style.js +0 -0
- /package/{tools → src/tools}/update_vault_index.js +0 -0
package/README.md
CHANGED
|
@@ -1,158 +1,82 @@
|
|
|
1
|
-
# Indelible MCP Server
|
|
2
|
-
|
|
3
|
-
Blockchain-backed memory for Claude Code. Save your AI conversations permanently on BSV.
|
|
4
|
-
|
|
5
|
-
## Quick Start
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install -g indelible-mcp
|
|
9
|
-
indelible-mcp
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
indelible-mcp
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"Load my previous context"
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### `save_file`
|
|
87
|
-
Save a single file to the blockchain, encrypted with your key.
|
|
88
|
-
|
|
89
|
-
```
|
|
90
|
-
"Save this file to the blockchain"
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### `load_file`
|
|
94
|
-
Load a file from the blockchain by transaction ID.
|
|
95
|
-
|
|
96
|
-
```
|
|
97
|
-
"Load file from tx abc123..."
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### `save_project`
|
|
101
|
-
Save an entire project directory to the blockchain.
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
"Save this project to the blockchain"
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### `load_project`
|
|
108
|
-
Load a project from the blockchain by transaction ID.
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
"Load project from tx abc123..."
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### `save_style`
|
|
115
|
-
Save an AI interaction style (rules/preferences) to blockchain.
|
|
116
|
-
|
|
117
|
-
```
|
|
118
|
-
"Save my AI style to blockchain"
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
### `load_style`
|
|
122
|
-
Load an AI interaction style from blockchain. Called automatically by `load_context`.
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
"Load my AI style"
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### `update_vault_index`
|
|
129
|
-
Update the on-chain vault index with metadata for all saved files and projects.
|
|
130
|
-
|
|
131
|
-
```
|
|
132
|
-
"Update my vault index"
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
## How It Works
|
|
136
|
-
|
|
137
|
-
1. Your conversations are encrypted with AES-256-GCM using your WIF-derived key
|
|
138
|
-
2. Encrypted data is stored on the BSV blockchain via OP_RETURN
|
|
139
|
-
3. Only you can decrypt your data (using your WIF)
|
|
140
|
-
4. Sessions are chained together for continuity
|
|
141
|
-
|
|
142
|
-
## View Your Data
|
|
143
|
-
|
|
144
|
-
Visit [indelible.one](https://indelible.one) and sign in with Google to see all your saved sessions and code.
|
|
145
|
-
|
|
146
|
-
## Cost
|
|
147
|
-
|
|
148
|
-
~1 satoshi per byte. A typical session costs less than $0.01.
|
|
149
|
-
|
|
150
|
-
## Changelog
|
|
151
|
-
|
|
152
|
-
### 3.2.1
|
|
153
|
-
- Security fix: removed remote fallback paths
|
|
154
|
-
- All operations now route exclusively through SPV bridge
|
|
155
|
-
|
|
156
|
-
## License
|
|
157
|
-
|
|
158
|
-
MIT
|
|
1
|
+
# Indelible MCP Server
|
|
2
|
+
|
|
3
|
+
Blockchain-backed memory for Claude Code. Save your AI conversations permanently on BSV.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g indelible-mcp
|
|
9
|
+
indelible-mcp setup
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Setup
|
|
13
|
+
|
|
14
|
+
### 1. Install & Create Wallet
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install -g indelible-mcp
|
|
18
|
+
indelible-mcp setup
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
This generates a BSV keypair locally (your private key never leaves your machine) and registers with the Indelible server.
|
|
22
|
+
|
|
23
|
+
### 2. Fund Your Wallet
|
|
24
|
+
|
|
25
|
+
Send a small amount of BSV to the address shown after setup. Any BSV wallet works (HandCash, RelayX, etc.).
|
|
26
|
+
|
|
27
|
+
### 3. Add MCP Config to Claude Code
|
|
28
|
+
|
|
29
|
+
Run `indelible-mcp --show-config` to get your config, or add this to your Claude Code `settings.json`:
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"mcpServers": {
|
|
34
|
+
"indelible": {
|
|
35
|
+
"command": "indelible-mcp"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
|
|
43
|
+
Once configured, just talk to Claude Code naturally:
|
|
44
|
+
|
|
45
|
+
- **"Save this session to blockchain"** - saves your conversation
|
|
46
|
+
- **"Load my previous context"** - restores past sessions
|
|
47
|
+
- **"Delta save"** - saves only new messages (cheaper, faster)
|
|
48
|
+
|
|
49
|
+
### Auto-Save & Auto-Restore
|
|
50
|
+
|
|
51
|
+
Indelible automatically saves before Claude Code compacts your context, and restores your sessions after compaction. Nothing is lost.
|
|
52
|
+
|
|
53
|
+
### CLI Commands
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
indelible-mcp setup Generate wallet & register
|
|
57
|
+
indelible-mcp setup --migrate Derive API key from existing wallet
|
|
58
|
+
indelible-mcp save Save current session
|
|
59
|
+
indelible-mcp save --summary XYZ Save with custom summary
|
|
60
|
+
indelible-mcp load Load context from blockchain
|
|
61
|
+
indelible-mcp load --sessions=5 Load N sessions
|
|
62
|
+
indelible-mcp status Show account status
|
|
63
|
+
indelible-mcp hook pre-compact Pre-compaction save hook
|
|
64
|
+
indelible-mcp hook post-compact Post-compaction restore hook
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## How It Works
|
|
68
|
+
|
|
69
|
+
1. Your conversation is encrypted locally with your WIF key
|
|
70
|
+
2. An OP_RETURN transaction is built and signed locally using `@bsv/sdk`
|
|
71
|
+
3. The signed transaction is broadcast via Indelible's SPV bridge
|
|
72
|
+
4. Your private key **never** leaves your machine
|
|
73
|
+
|
|
74
|
+
## Security
|
|
75
|
+
|
|
76
|
+
- **Zero-knowledge encryption** - your WIF-derived AES-256-GCM key encrypts all data before it touches the network
|
|
77
|
+
- **Self-sovereign keys** - generated locally with `@bsv/sdk`, never transmitted
|
|
78
|
+
- **Immutable storage** - once on BSV, your data cannot be altered or deleted
|
|
79
|
+
|
|
80
|
+
## Learn More
|
|
81
|
+
|
|
82
|
+
[indelible.one](https://indelible.one)
|
package/package.json
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "indelible-mcp",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"bin": {
|
|
8
|
-
"indelible-mcp": "index.js"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"mcp",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "indelible-mcp",
|
|
3
|
+
"version": "3.4.0",
|
|
4
|
+
"description": "Blockchain-backed memory and code storage for Claude Code. Save AI conversations and source code permanently on BSV.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"indelible-mcp": "src/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"start": "node src/index.js",
|
|
15
|
+
"build": "bun build --compile src/index.js --outfile dist/indelible.exe",
|
|
16
|
+
"build:all": "bun build --compile --target=bun-windows-x64 src/index.js --outfile dist/indelible-win-x64.exe && bun build --compile --target=bun-linux-x64 src/index.js --outfile dist/indelible-linux-x64 && bun build --compile --target=bun-darwin-arm64 src/index.js --outfile dist/indelible-darwin-arm64"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"claude-code",
|
|
20
|
+
"mcp",
|
|
21
|
+
"blockchain",
|
|
22
|
+
"bsv",
|
|
23
|
+
"memory",
|
|
24
|
+
"context",
|
|
25
|
+
"indelible",
|
|
26
|
+
"code-vault",
|
|
27
|
+
"encrypted-storage"
|
|
28
|
+
],
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/indelibleai/indelible-mcp"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://indelible.one",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@bsv/sdk": "1.10.1",
|
|
37
|
+
"cross-keychain": "^1.1.0"
|
|
38
|
+
}
|
|
39
|
+
}
|