nostr-mcp-server 2.0.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 +21 -0
- package/README.md +498 -0
- package/build/__tests__/basic.test.js +87 -0
- package/build/__tests__/error-handling.test.js +145 -0
- package/build/__tests__/format-conversion.test.js +137 -0
- package/build/__tests__/integration.test.js +163 -0
- package/build/__tests__/mocks.js +109 -0
- package/build/__tests__/nip19-conversion.test.js +268 -0
- package/build/__tests__/nips-search.test.js +109 -0
- package/build/__tests__/note-creation.test.js +148 -0
- package/build/__tests__/note-tools-functions.test.js +173 -0
- package/build/__tests__/note-tools-unit.test.js +97 -0
- package/build/__tests__/profile-notes-simple.test.js +78 -0
- package/build/__tests__/profile-postnote.test.js +120 -0
- package/build/__tests__/profile-tools.test.js +90 -0
- package/build/__tests__/relay-specification.test.js +136 -0
- package/build/__tests__/search-nips-simple.test.js +96 -0
- package/build/__tests__/websocket-integration.test.js +257 -0
- package/build/__tests__/zap-tools-simple.test.js +72 -0
- package/build/__tests__/zap-tools-tests.test.js +197 -0
- package/build/index.js +1285 -0
- package/build/nips/nips-tools.js +567 -0
- package/build/nips-tools.js +421 -0
- package/build/note/note-tools.js +296 -0
- package/build/note-tools.js +53 -0
- package/build/profile/profile-tools.js +260 -0
- package/build/utils/constants.js +27 -0
- package/build/utils/conversion.js +332 -0
- package/build/utils/ephemeral-relay.js +438 -0
- package/build/utils/formatting.js +34 -0
- package/build/utils/index.js +6 -0
- package/build/utils/nip19-tools.js +117 -0
- package/build/utils/pool.js +55 -0
- package/build/zap/zap-tools.js +980 -0
- package/build/zap-tools.js +989 -0
- package/package.json +59 -0
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nostr-mcp-server",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "A Model Context Protocol (MCP) server that provides Nostr capabilities to LLMs like Claude",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"nostr-mcp-server": "./build/index.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --config=jest.config.cjs --forceExit",
|
|
12
|
+
"build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
|
|
13
|
+
"start": "node build/index.js",
|
|
14
|
+
"prerelease": "npm test && npm run build",
|
|
15
|
+
"release:patch": "npm run prerelease && npm version patch",
|
|
16
|
+
"release:minor": "npm run prerelease && npm version minor",
|
|
17
|
+
"release:major": "npm run prerelease && npm version major"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"build"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"nostr",
|
|
24
|
+
"mcp",
|
|
25
|
+
"model-context-protocol",
|
|
26
|
+
"claude",
|
|
27
|
+
"llm"
|
|
28
|
+
],
|
|
29
|
+
"author": "Austin Kelsay <austinkelsay@gmail.com>",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/AustinKelsay/nostr-mcp-server.git"
|
|
33
|
+
},
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/AustinKelsay/nostr-mcp-server/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/AustinKelsay/nostr-mcp-server#readme",
|
|
38
|
+
"license": "ISC",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@modelcontextprotocol/sdk": "^1.11.0",
|
|
41
|
+
"@noble/curves": "^1.8.2",
|
|
42
|
+
"@noble/hashes": "^1.7.2",
|
|
43
|
+
"@scure/base": "^1.2.4",
|
|
44
|
+
"@types/node-fetch": "^2.6.12",
|
|
45
|
+
"light-bolt11-decoder": "^3.2.0",
|
|
46
|
+
"node-fetch": "^3.3.2",
|
|
47
|
+
"snstr": "^0.1.0",
|
|
48
|
+
"ws": "^8.16.1",
|
|
49
|
+
"zod": "^3.24.2"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@types/jest": "^29.5.14",
|
|
53
|
+
"@types/node": "^22.13.11",
|
|
54
|
+
"@types/ws": "^8.5.10",
|
|
55
|
+
"jest": "^29.7.0",
|
|
56
|
+
"ts-jest": "^29.3.2",
|
|
57
|
+
"typescript": "^5.8.2"
|
|
58
|
+
}
|
|
59
|
+
}
|