do-not-resurrect-mcp 0.0.0-stage → 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Do Not Resurrect Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,55 @@
1
- # Temporary Holding Version
1
+ # do-not-resurrect-mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Before your AI imitates a real person, ask whether they agreed to it.
4
+
5
+ People are already building chatbots from the messages of the dead. [Do Not Resurrect](https://github.com/kapish505/DNR) lets someone write down, while alive, whether AI may imitate them, and lets their family switch it off later. This MCP server is the check any AI app can run first. It reads the answer straight from the public contracts on Ethereum Sepolia, so there is no account and no API key.
6
+
7
+ ## Add it to your assistant
8
+
9
+ Kiro (`.kiro/settings/mcp.json`), Claude Desktop, Cursor and any other MCP client:
10
+
11
+ ```json
12
+ {
13
+ "mcpServers": {
14
+ "dnr": {
15
+ "command": "npx",
16
+ "args": ["-y", "do-not-resurrect-mcp"]
17
+ }
18
+ }
19
+ }
20
+ ```
21
+
22
+ That's all. It talks to the live DNR deployment by default.
23
+
24
+ ## Tools
25
+
26
+ | Tool | Ask it | It answers |
27
+ |---|---|---|
28
+ | `check_consent` | "May I recreate person #4 for a private chat?" | `allowed`, or why not: still alive, opted out (`do_not_resurrect`), purpose, audience or scope beyond what they agreed to, consent expired |
29
+ | `verify_pass` | "Is summoning pass #12 still valid?" | valid, or revoked, expired or not found |
30
+ | `export_rules_odrl` | "What exactly did person #4 agree to?" | their rules as ODRL JSON-LD, the W3C rights language |
31
+ | `fetch_memories` | "Give me the memories pass #12 unlocks" | decrypted memories, only for the wallet the pass was issued to, only while the pass is valid |
32
+
33
+ Try it in your assistant: *"Use dnr to check whether consent token 0 allows private use."*
34
+
35
+ ## Settings (all optional)
36
+
37
+ | Variable | Default | Needed for |
38
+ |---|---|---|
39
+ | `RPC_URL` | public Sepolia RPC | a faster or private RPC |
40
+ | `CONSENT_TOKEN_ADDRESS` | `0xD168…1E57` | your own deployment |
41
+ | `SUMMONING_PASS_ADDRESS` | `0xEcCc…082C` | your own deployment |
42
+ | `VAULTGATE_URL` | none | `fetch_memories` |
43
+ | `GRANTEE_PRIVATE_KEY` | none | `fetch_memories`: the wallet a pass was issued to |
44
+
45
+ `fetch_memories` signs a single-use challenge with the grantee key, downloads the ciphertext, and recovers the key from Lighthouse Kavach, which releases it only if `hasValidPass` is true on-chain for that wallet. The DNR server never sees the key or the plaintext. Use a testnet-only key.
46
+
47
+ ## From source
48
+
49
+ ```bash
50
+ git clone https://github.com/kapish505/DNR && cd DNR/mcp-server
51
+ bun install && bun run build
52
+ node dist/index.js
53
+ ```
54
+
55
+ MIT licensed.
@@ -0,0 +1,50 @@
1
+ export declare const ConsentTokenABI: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "getConsentRules";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [{
6
+ readonly name: "tokenId";
7
+ readonly type: "uint256";
8
+ }];
9
+ readonly outputs: readonly [{
10
+ readonly name: "scopes";
11
+ readonly type: "string[]";
12
+ }, {
13
+ readonly name: "audience";
14
+ readonly type: "uint8";
15
+ }, {
16
+ readonly name: "purpose";
17
+ readonly type: "uint8";
18
+ }, {
19
+ readonly name: "expiry";
20
+ readonly type: "uint256";
21
+ }, {
22
+ readonly name: "state";
23
+ readonly type: "uint8";
24
+ }];
25
+ }, {
26
+ readonly type: "function";
27
+ readonly name: "getHeartbeatConfig";
28
+ readonly stateMutability: "view";
29
+ readonly inputs: readonly [{
30
+ readonly name: "tokenId";
31
+ readonly type: "uint256";
32
+ }];
33
+ readonly outputs: readonly [{
34
+ readonly name: "lastHeartbeat";
35
+ readonly type: "uint256";
36
+ }, {
37
+ readonly name: "interval";
38
+ readonly type: "uint256";
39
+ }, {
40
+ readonly name: "heirs";
41
+ readonly type: "address[]";
42
+ }, {
43
+ readonly name: "heirThreshold";
44
+ readonly type: "uint256";
45
+ }, {
46
+ readonly name: "attestationCount";
47
+ readonly type: "uint256";
48
+ }];
49
+ }];
50
+ //# sourceMappingURL=ConsentToken.d.ts.map
@@ -0,0 +1,31 @@
1
+ // This file will be auto-generated from contract ABIs
2
+ // For now, we include the minimal ABI needed for the MCP server
3
+ export const ConsentTokenABI = [
4
+ {
5
+ type: "function",
6
+ name: "getConsentRules",
7
+ stateMutability: "view",
8
+ inputs: [{ name: "tokenId", type: "uint256" }],
9
+ outputs: [
10
+ { name: "scopes", type: "string[]" },
11
+ { name: "audience", type: "uint8" },
12
+ { name: "purpose", type: "uint8" },
13
+ { name: "expiry", type: "uint256" },
14
+ { name: "state", type: "uint8" },
15
+ ],
16
+ },
17
+ {
18
+ type: "function",
19
+ name: "getHeartbeatConfig",
20
+ stateMutability: "view",
21
+ inputs: [{ name: "tokenId", type: "uint256" }],
22
+ outputs: [
23
+ { name: "lastHeartbeat", type: "uint256" },
24
+ { name: "interval", type: "uint256" },
25
+ { name: "heirs", type: "address[]" },
26
+ { name: "heirThreshold", type: "uint256" },
27
+ { name: "attestationCount", type: "uint256" },
28
+ ],
29
+ },
30
+ ];
31
+ //# sourceMappingURL=ConsentToken.js.map
@@ -0,0 +1,38 @@
1
+ export declare const SummoningPassABI: readonly [{
2
+ readonly type: "function";
3
+ readonly name: "isValid";
4
+ readonly stateMutability: "view";
5
+ readonly inputs: readonly [{
6
+ readonly name: "passId";
7
+ readonly type: "uint256";
8
+ }];
9
+ readonly outputs: readonly [{
10
+ readonly name: "";
11
+ readonly type: "bool";
12
+ }];
13
+ }, {
14
+ readonly type: "function";
15
+ readonly name: "getPassDetails";
16
+ readonly stateMutability: "view";
17
+ readonly inputs: readonly [{
18
+ readonly name: "passId";
19
+ readonly type: "uint256";
20
+ }];
21
+ readonly outputs: readonly [{
22
+ readonly name: "consentTokenId";
23
+ readonly type: "uint256";
24
+ }, {
25
+ readonly name: "grantee";
26
+ readonly type: "address";
27
+ }, {
28
+ readonly name: "expiry";
29
+ readonly type: "uint256";
30
+ }, {
31
+ readonly name: "scopes";
32
+ readonly type: "string[]";
33
+ }, {
34
+ readonly name: "revoked";
35
+ readonly type: "bool";
36
+ }];
37
+ }];
38
+ //# sourceMappingURL=SummoningPass.d.ts.map
@@ -0,0 +1,25 @@
1
+ // This file will be auto-generated from contract ABIs
2
+ // For now, we include the minimal ABI needed for the MCP server
3
+ export const SummoningPassABI = [
4
+ {
5
+ type: "function",
6
+ name: "isValid",
7
+ stateMutability: "view",
8
+ inputs: [{ name: "passId", type: "uint256" }],
9
+ outputs: [{ name: "", type: "bool" }],
10
+ },
11
+ {
12
+ type: "function",
13
+ name: "getPassDetails",
14
+ stateMutability: "view",
15
+ inputs: [{ name: "passId", type: "uint256" }],
16
+ outputs: [
17
+ { name: "consentTokenId", type: "uint256" },
18
+ { name: "grantee", type: "address" },
19
+ { name: "expiry", type: "uint256" },
20
+ { name: "scopes", type: "string[]" },
21
+ { name: "revoked", type: "bool" },
22
+ ],
23
+ },
24
+ ];
25
+ //# sourceMappingURL=SummoningPass.js.map