Exposes silverbullet-ai tools from a SilverBullet space to MCP clients
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add silverbullet-ai --env SB_URL='<SB_URL>' --env SB_AUTH_TOKEN='<SB_AUTH_TOKEN>' -- npx -y silverbullet-ai-mcp~/.codex/config.toml
[mcp_servers.silverbullet-ai]
command = "npx"
args = ["-y", "silverbullet-ai-mcp"]
env = { SB_URL = "<SB_URL>", SB_AUTH_TOKEN = "<SB_AUTH_TOKEN>" }
# codex mcp add silverbullet-ai --env SB_URL='<SB_URL>' --env SB_AUTH_TOKEN='<SB_AUTH_TOKEN>' -- npx -y silverbullet-ai-mcp~/.cursor/mcp.json
{
"mcpServers": {
"silverbullet-ai": {
"command": "npx",
"args": [
"-y",
"silverbullet-ai-mcp"
],
"env": {
"SB_URL": "<SB_URL>",
"SB_AUTH_TOKEN": "<SB_AUTH_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"silverbullet-ai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"silverbullet-ai-mcp"
],
"env": {
"SB_URL": "<SB_URL>",
"SB_AUTH_TOKEN": "<SB_AUTH_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"silverbullet-ai": {
"command": "npx",
"args": [
"-y",
"silverbullet-ai-mcp"
],
"env": {
"SB_URL": "<SB_URL>",
"SB_AUTH_TOKEN": "<SB_AUTH_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"silverbullet-ai": {
"command": "npx",
"args": [
"-y",
"silverbullet-ai-mcp"
],
"env": {
"SB_URL": "<SB_URL>",
"SB_AUTH_TOKEN": "<SB_AUTH_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"silverbullet-ai": {
"command": "npx",
"args": [
"-y",
"silverbullet-ai-mcp"
],
"env": {
"SB_URL": "<SB_URL>",
"SB_AUTH_TOKEN": "<SB_AUTH_TOKEN>"
}
}
}
}需要的环境变量
SB_URLSB_AUTH_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。