article
README
🚀 🤖 代码片段 MCP
代码片段 MCP 可帮助你在Claude中进行特定配置,通过视频演示你能更直观地了解其使用方式。
🚀 快速开始
配置Claude
将以下内容添加到你的Claude配置文件中:
{
"mcpServers": {
"nostr-code-snippet-mcp": {
"command": "node",
"args": ["/Users/<路径>/nostr-code-snippet-mcp/dist/index.js"],
"env": {
"NSEC": "<某个nsec值>",
"RELAYS": "wss://relay.damus.io,wss://relay.snort.social"
}
}
}
}
⚠️ 重要提示
请确保将
<路径>替换为你克隆仓库的实际路径。
根据你的操作系统,配置文件的位置如下:
| 操作系统 | 配置文件位置 |
| ---- | ---- |
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
| Windows | %APPDATA%/Claude/claude_desktop_config.json |
📦 安装指南
安装依赖项
npm install
构建项目
npm run build
运行检查工具
npm run inspect
微信扫一扫