Nostr 代码片段
STDIO通过Nostr协议管理和共享代码片段
通过Nostr协议管理和共享代码片段
Add this to your claude config file:
{ "mcpServers": { "nostr-code-snippet-mcp": { "command": "node", "args": ["/Users/<path to>/nostr-code-snippet-mcp/dist/index.js"], "env": { "NSEC": "<some nsec>", "RELAYS": "wss://relay.damus.io,wss://relay.snort.social" } } } }
NOTE: be sure to replace <path to>
with the path to wherever you cloned the repo
The configuration file location depends on your operating system:
~/Library/Application Support/Claude/claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Install dependencies:
npm install
Build the project:
npm run build
Run the inspector:
npm run inspect