AI Integration (MCP)
VMark includes a built-in MCP (Model Context Protocol) server that allows AI assistants like Claude to interact directly with your editor.
What is MCP?
The Model Context Protocol is an open standard that enables AI assistants to interact with external tools and applications. VMark's MCP server exposes its editor capabilities as tools that AI assistants can use to:
- Read and write document content
- Apply formatting and create structures
- Navigate and manage documents
- Insert special content (math, diagrams, wiki links)
Quick Setup
VMark makes it easy to connect AI assistants with one-click installation.
1. Enable MCP Server
Open Settings → Integrations and enable the MCP Server:

- Enable MCP Server - Turn on to allow AI connections
- Start on launch - Auto-start when VMark opens
- Auto-approve edits - Apply AI changes without preview (see below)
2. Install Configuration
Click Install for your AI assistant:

Supported AI assistants:
- Claude Desktop - Anthropic's desktop app
- Claude Code - CLI for developers
- Codex CLI - OpenAI's coding assistant
- Gemini CLI - Google's AI assistant
Status Icons
Each provider shows a status indicator:
| Icon | Status | Meaning |
|---|---|---|
| ✓ Green | Valid | Configuration is correct and working |
| ⚠️ Amber | Path Mismatch | VMark was moved — click Repair |
| ✗ Red | Binary Missing | MCP binary not found — reinstall VMark |
| ○ Gray | Not Configured | Not installed — click Install |
VMark Moved?
If you move VMark.app to a different location, the status will show amber "Path Mismatch". Simply click the Repair button to update the configuration with the new path.
3. Restart Your AI Assistant
After installing or repairing, restart your AI assistant completely (quit and reopen) to load the new configuration. VMark will show a reminder after each configuration change.
4. Try It Out
In your AI assistant, try commands like:
- "What's in my VMark document?"
- "Write a summary of quantum computing to VMark"
- "Add a table of contents to my document"
See It in Action
Ask Claude a question and have it write the answer directly to your VMark document:

Claude Desktop calls document_set_content to write to VMark

The content appears instantly in VMark, fully formatted
Manual Configuration
If you prefer to configure manually, here are the config file locations:
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"vmark": {
"command": "/Applications/VMark.app/Contents/MacOS/vmark-mcp-server"
}
}
}Claude Code
Edit ~/.claude.json or project .mcp.json:
{
"mcpServers": {
"vmark": {
"command": "/Applications/VMark.app/Contents/MacOS/vmark-mcp-server"
}
}
}Finding the Binary Path
On macOS, the MCP server binary is inside VMark.app:
VMark.app/Contents/MacOS/vmark-mcp-server
On Windows:
C:\Program Files\VMark\vmark-mcp-server.exe
On Linux:
/usr/bin/vmark-mcp-server(or where you installed it)
The port is auto-discovered — no args needed.
How It Works
AI Assistant <--stdio--> MCP Server <--WebSocket--> VMark Editor- VMark starts a WebSocket bridge on an available port when launched
- The MCP server connects to this WebSocket bridge
- AI assistant communicates with the MCP server via stdio
- Commands are relayed to VMark's editor through the bridge
Available Capabilities
When connected, your AI assistant can:
| Category | Capabilities |
|---|---|
| Document | Read/write content, search, replace |
| Selection | Get/set selection, replace selected text |
| Formatting | Bold, italic, code, links, and more |
| Blocks | Headings, paragraphs, code blocks, quotes |
| Lists | Bullet, ordered, and task lists |
| Tables | Insert, modify rows/columns |
| Special | Math equations, Mermaid diagrams, wiki links |
| Workspace | Open/save documents, manage windows |
See the MCP Tools Reference for complete documentation.
Checking MCP Status
VMark provides multiple ways to check the MCP server status:
Status Bar Indicator
The status bar shows an MCP indicator on the right side:
| Color | Status |
|---|---|
| Green | Connected and running |
| Gray | Disconnected or stopped |
| Pulsing | Starting up |
Click the indicator to open the detailed status dialog.
Status Dialog
Access via Help → MCP Server Status or click the status bar indicator.
The dialog shows:
- Connection health (Healthy / Error / Stopped)
- Bridge running state and port
- Server version
- Available tools (76) and resources (4)
- Last health check time
- Full list of available tools with copy button
Settings Panel
In Settings → Integrations, when the server is running you'll see:
- Version number
- Tool and resource counts
- Test Connection button — runs a health check
- View Details button — opens the status dialog
Troubleshooting
"Connection refused" or "No active editor"
- Ensure VMark is running and has a document open
- Check that the MCP Server is enabled in Settings → Integrations
- Verify the MCP bridge shows "Running" status
- Restart VMark if the connection was interrupted
Path mismatch after moving VMark
If you moved VMark.app to a different location (e.g., from Downloads to Applications), the configuration will point to the old path:
- Open Settings → Integrations
- Look for the amber ⚠️ warning icon next to affected providers
- Click Repair to update the path
- Restart your AI assistant
Tools not appearing in AI assistant
- Restart your AI assistant after installing the configuration
- Verify the configuration was installed (check for green checkmark in Settings)
- Check your AI assistant's logs for MCP connection errors
Commands fail with "No active editor"
- Make sure a document tab is active in VMark
- Click in the editor area to focus it
- Some commands require text to be selected first
Suggestion System & Auto-Approve
By default, when AI assistants modify your document (insert, replace, or delete content), VMark creates suggestions that require your approval:
- Insert - New text appears as ghost text preview
- Replace - Original text has strikethrough, new text as ghost text
- Delete - Text to remove appears with strikethrough
Press Enter to accept or Escape to reject. This preserves your undo/redo history and gives you full control.
Auto-Approve Mode
Use With Caution
Enabling Auto-approve edits bypasses the suggestion preview and applies AI changes immediately. Only enable this if you trust your AI assistant and want faster editing.
When auto-approve is enabled:
- Changes are applied directly without preview
- Undo (Mod+Z) still works to reverse changes
- Response messages include "(auto-approved)" for transparency
This setting is useful for:
- Rapid AI-assisted writing workflows
- Trusted AI assistants with well-defined tasks
- Batch operations where previewing each change is impractical
Security Notes
- The MCP server only accepts local connections (localhost)
- No data is sent to external servers
- All processing happens on your machine
- The WebSocket bridge is only accessible locally
- Auto-approve is disabled by default to prevent unintended changes
Next Steps
- Install the Claude Code Skill for enhanced AI writing assistance
- Explore all MCP Tools available
- Learn about keyboard shortcuts
- Check out other features