Supports Git submodule integration for managing the MCP server as a submodule within Re:VIEW projects
Supports GitHub repository integration for distributing and managing the MCP server as a submodule in Re:VIEW projects
Provides fast linting capabilities by compiling Re:VIEW documents to LaTeX format and analyzing stderr output for common errors and issues
Uses npm for package management and installation of the MCP server dependencies
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ReviewMCPcheck for unknown tags in my current project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
review-mcp-min
Minimal MCP (Model Context Protocol) server for Re:VIEW document processing with JS/Ruby hybrid pipeline.
Version
v0.1.0 - Initial release with hybrid pipeline support
Features
Core Functionality
Tag Enforcement: Validates Re:VIEW markup tags against configurable allowlists
ID Management: Automatically fixes empty/duplicate IDs in blocks and captions
Fast Linting: Quick sanity checks via LaTeX compilation
Hybrid Pipeline: JS preprocessing + Ruby (LaTeX Builder) for PDF generation
Security (SSOT - Single Source of Truth)
Dynamic security configuration loading from ReviewExtention
Two-layer defense: MCP pre-sanitization + Ruby final validation
Path traversal and absolute path blocking for mapfile macros
File size and extension validation
MCP Commands
Basic Commands
review.version- Get Re:VIEW CLI versionreview.tags.list- List allowed tagsreview.enforceTags.check- Check for unknown tagsreview.fixIds.plan- Plan ID fixes for empty/duplicate IDsreview.fixIds.apply- Apply ID fixes with backupreview.lint- Run fast lint checks
Hybrid Pipeline Commands
review.preprocess- JS preprocessing (currently passthrough)review.build-pdf-hybrid- Build PDF with hybrid pipelinereview.check-ruby-extensions- Verify Ruby extensionsreview.test-mapfile- Test mapfile with security validation
Security Commands
review.security.config- Get current security configurationreview.security.validate-mapfile- Validate mapfile pathsreview.security.compare- Compare configs for SSOT compliance
Installation
Usage
Project Root (cwd) Specification
All MCP tools require a cwd parameter pointing to your Re:VIEW project root:
The cwd must be the directory containing config.yml and catalog.yml.
With Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
With ClaudeCode
Project Structure
Development
Testing
The repository includes test Re:VIEW documents demonstrating various features:
Inline tags (strong, em, code, tt, kw)
Block tags (list, emlist, note, memo, cmd, quote)
Tables, source code blocks, footnotes
Security and SSOT configuration examples
Run the test build:
CI/CD
GitHub Actions workflow included (.github/workflows/mcp-hybrid.yml) for:
Multi-version testing (Node.js 18/20, Ruby 3.x)
Security configuration validation
PDF generation testing
SSOT compliance checking
Requirements
Node.js 18+
Ruby + Bundler
Re:VIEW gem (5.x recommended)
TeX Live (for PDF generation with uplatex)
Recommended Workflow
On save:
review.enforceTags.check- Block unknown tagsAuto-fix:
review.fixIds.plan→review.fixIds.apply- Fix IDsLint:
review.lint- Show warnings
Configuration
Optional review-mcp.json:
License
MIT
Contributing
Issues and PRs welcome at GitHub repository
Related Issues
Author
@dsgarage
Changelog
v0.1.0 (2025-01-08)
Initial release
Hybrid JS/Ruby pipeline implementation
SSOT security configuration
Basic Re:VIEW tag validation and ID management
Test documents and PDF generation support