在你的claude配置文件中添加以下内容:
{
"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"
}
}
}
}
注意:确保替换<path to>为你克隆仓库的实际路径
配置文件的位置取决于你的操作系统:
~/Library/Application Support/Claude/claude_desktop_config.json~/.config/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json安装依赖:
npm install
构建项目:
npm run build
运行检查器:
npm run inspect