MCP (Model Context Protocol)
Revisium includes a built-in MCP server that allows AI assistants to interact with your data. This enables AI-driven content management, schema design, and data workflows.
What is MCP?
Model Context Protocol (MCP) is an open standard that allows AI models to securely access external data sources and tools. Revisium implements an MCP server with Streamable HTTP transport.
Setup
- Claude Code
- Claude Desktop
# Add local instance (Docker Compose on port 8080)
claude mcp add --transport http revisium-local http://localhost:8080/mcp
# Add cloud instance
claude mcp add --transport http revisium-cloud https://cloud.revisium.io/mcp
# Add standalone instance (default port 9222)
claude mcp add --transport http revisium-local http://localhost:9222/mcp
Manage servers:
claude mcp list
claude mcp remove revisium-local
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"revisium-local": {
"url": "http://localhost:8080/mcp"
}
}
}
Auto-approve Tools
To auto-approve all Revisium MCP tools in Claude Code, add to .claude/settings.json:
{
"permissions": {
"allow": ["mcp__revisium-local"]
}
}
Available Tools
Authentication
login— authenticate with username/passwordme— get current user info
Organization & Projects
getOrganization,getProjects,getProject,createProject,deleteProject
Branches & Revisions
getBranch,getDraftRevision,createBranch,revertChangesgetRevision,commitRevision
Changes (Diff)
getRevisionChanges— summary of all changesgetTableChanges— changed tables with schema diffsgetRowChanges— changed rows with field-level diffs
Tables
getTables,getTable,getTableSchemacreateTable,updateTable,renameTable,removeTable
Rows
getRows,getRow,createRow,updateRow,patchRow,renameRow,removeRow
Users
getUser,searchUsers
Key Concepts
Draft vs HEAD
- Draft (
draftRevisionId) — mutable, where changes are made - HEAD (
headRevisionId) — latest committed, immutable
All modification tools require draftRevisionId. Read-only tools can use either.
Never commit without explicit user permission. Draft and HEAD may point to different environments.
Foreign Key Order
When creating tables and rows with FK relationships:
- Create referenced tables first
- Create referenced rows first
- Then create tables/rows that reference them
Patching Rows
patchRow supports only the replace operation:
{"op": "replace", "path": "title", "value": "New Title"}
{"op": "replace", "path": "metadata.description", "value": "..."}
{"op": "replace", "path": "items[0].name", "value": "Updated"}
Path uses field name without leading slash. Dot notation for nested, bracket notation for arrays.
Updating Table Schema
Always call getTableSchema first, then use JSON Patch (RFC 6902):
[
{"op": "add", "path": "/properties/newField", "value": {"type": "string", "default": ""}},
{"op": "add", "path": "/required/-", "value": "newField"}
]
Resources
revisium://specs/schema— table schema specification with examples and validation rules
API Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /mcp | Send MCP requests |
| GET | /mcp | SSE stream for notifications |
| DELETE | /mcp | Terminate session |