Creates, edits and deletes Liveblocks rooms, threads, comments and notifications, and reads room Storage and Yjs data.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add liveblocks --env LIVEBLOCKS_SECRET_KEY='<LIVEBLOCKS_SECRET_KEY>' -- node /full/path/to/the/repo/liveblocks-mcp-server/build/index.js~/.codex/config.toml
[mcp_servers.liveblocks]
command = "node"
args = ["/full/path/to/the/repo/liveblocks-mcp-server/build/index.js"]
env = { LIVEBLOCKS_SECRET_KEY = "<LIVEBLOCKS_SECRET_KEY>" }
# codex mcp add liveblocks --env LIVEBLOCKS_SECRET_KEY='<LIVEBLOCKS_SECRET_KEY>' -- node /full/path/to/the/repo/liveblocks-mcp-server/build/index.js~/.cursor/mcp.json
{
"mcpServers": {
"liveblocks": {
"command": "node",
"args": [
"/full/path/to/the/repo/liveblocks-mcp-server/build/index.js"
],
"env": {
"LIVEBLOCKS_SECRET_KEY": "<LIVEBLOCKS_SECRET_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"liveblocks": {
"type": "stdio",
"command": "node",
"args": [
"/full/path/to/the/repo/liveblocks-mcp-server/build/index.js"
],
"env": {
"LIVEBLOCKS_SECRET_KEY": "<LIVEBLOCKS_SECRET_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"liveblocks": {
"command": "node",
"args": [
"/full/path/to/the/repo/liveblocks-mcp-server/build/index.js"
],
"env": {
"LIVEBLOCKS_SECRET_KEY": "<LIVEBLOCKS_SECRET_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"liveblocks": {
"command": "node",
"args": [
"/full/path/to/the/repo/liveblocks-mcp-server/build/index.js"
],
"env": {
"LIVEBLOCKS_SECRET_KEY": "<LIVEBLOCKS_SECRET_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"liveblocks": {
"command": "node",
"args": [
"/full/path/to/the/repo/liveblocks-mcp-server/build/index.js"
],
"env": {
"LIVEBLOCKS_SECRET_KEY": "<LIVEBLOCKS_SECRET_KEY>"
}
}
}
}需要的环境变量
LIVEBLOCKS_SECRET_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。