The Liveblocks plugin helps AI coding assistants write Liveblocks and Yjs code. It bundles agent skills, MCP server configuration, and instruction files for AI coding tools.
Install the Liveblocks plugin:
npx plugins add liveblocks/liveblocks-pluginAfter installation, start a new thread in your AI coding tool so the Liveblocks skills and MCP server are available.
| Tool | Status |
|---|---|
| Claude Code | Supported |
| OpenAI Codex | Supported |
| Cursor | Supported |
| Grok Build | Supported |
| GitHub Copilot | Supported |
The plugins CLI currently installs the plugin automatically for Claude Code,
Cursor, and OpenAI Codex. Grok Build and GitHub Copilot can use the repository's
plugin manifest, skills, MCP configuration, and instruction files directly.
| Skill | Description | Source |
|---|---|---|
liveblocks-best-practices |
Best practices for Liveblocks rooms, auth, presence, Storage, comments, notifications, text editors, React patterns, and more. | Authored here |
yjs-best-practices |
Guidance for Yjs data modeling, updates, performance, subdocuments, providers, and common debugging issues. | Authored here |
The plugin includes the Liveblocks MCP server, giving agents tool access to create, modify, and delete different aspects of Liveblocks such as rooms, threads, comments, notifications, and more. It also has read access to Storage and Yjs.
The plugin connects to the official hosted endpoint at
https://mcp.liveblocks.io/mcp over HTTP. It does not install or run a local
server. Codex, Claude Code, and Cursor all use the shared MCP config in
.mcp.json.
OAuth is the default: install the plugin, start a new agent session, and follow your client's sign-in prompt to connect your Liveblocks account. The server's tools can inspect and modify data in the connected project, so review the requested access during sign-in. Check that the Liveblocks MCP tools appear in your client before using them.
API-key authentication is an optional alternative for clients that support a
custom bearer token. Create a secret key for a development project in the
Liveblocks dashboard and configure your
client to send it in an Authorization: Bearer header, following the
hosted-server instructions.
For Codex, use bearer_token_env_var = "LIVEBLOCKS_SECRET_KEY" with the same
server URL in your local MCP configuration. Keep the key out of this repository
and never use a production project secret key.
After installation, skills are automatically available in your AI tool. Your agent will use them when it judges they are relevant.
How do I handle unstable Wi-Fi connections with Liveblocks?
How do I pass custom headers to my auth endpoint?
Why is my Y.Map growing so large?
The plugin package is available in
liveblocks/liveblocks-plugin.
Standalone skills are available in
liveblocks/skills.