使用说明
🤖 nost代码片段mcp
将以下内容添加到您的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> 带有克隆仓库的路径
配置文件的位置取决于您的操作系统:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json - 窗户:
%APPDATA%/Claude/claude_desktop_config.json
发展
安装依赖项:
npm install
构建项目:
npm run build
运行检查器:
npm run inspect
