ReviewMCP
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 "Deploy 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., "@ReviewMCP check 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
Related MCP server: markdownlint-mcp
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
# Clone the repository
git clone https://github.com/dsgarage/ReviewMCP.git
cd review-mcp-min
# Install dependencies
npm install
# Build TypeScript
npm run build
# Start MCP server
npm startUsage
Project Root (cwd) Specification
All MCP tools require a cwd parameter pointing to your Re:VIEW project root:
mybook/ ← This is cwd
├── config.yml ← Required
├── catalog.yml ← Required
├── ch01.re
├── ch02.re
├── images/
└── ...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:
{
"mcpServers": {
"review-mcp": {
"command": "node",
"args": [
"/path/to/review-mcp-min/node_modules/.bin/tsx",
"/path/to/review-mcp-min/src/index.ts"
]
}
}
}With ClaudeCode
cd ~/books/mybook
claude mcp add review-mcp -s project -- \
node ./tools/review-mcp/node_modules/.bin/tsx ./src/index.tsProject Structure
review-mcp-min/
├── src/
│ ├── index.ts # MCP server main
│ ├── commands/
│ │ └── hybrid-pipeline.ts # Hybrid pipeline commands
│ ├── config/
│ │ └── security.ts # SSOT security configuration
│ └── utils/
│ └── runCommand.ts # Command execution utilities
├── articles/ # Re:VIEW test documents
│ ├── chapter01.re
│ └── chapter02.re
├── config.yml # Re:VIEW configuration
├── catalog.yml # Re:VIEW catalog
└── test-build.js # Test script for hybrid pipelineDevelopment
# Run in development mode
npm run dev
# Type checking
npm run typecheck
# Build
npm run build
# Test PDF generation
node test-build.jsTesting
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:
review-pdfmaker config.ymlCI/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:
{
"profile": "dual",
"target": "latex",
"blockOnUnknownTags": true,
"autoFixIdsOnSave": true
}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
Available Tools
13 toolsreview.build-pdf-hybridC
JS→Ruby hybrid pipeline for PDF generation (PDF first priority)
Inputs: cwd (required), config, skipPreprocess.
review.check-ruby-extensionsC
Verify Ruby extensions (ReviewExtention) are loaded correctly
Inputs: cwd (required).
review.enforceTags.checkC
Scan .re files for unknown tags using allowlist; returns violations.
Inputs: cwd (required), allow.
review.fixIds.applyC
Apply a previously calculated ID-fix plan; creates .bak backups.
Inputs: cwd (required), fixes (required).
review.fixIds.planC
Plan auto-fixes for empty/duplicate IDs across all .re files.
Inputs: cwd (required).
review.lintC
Run a fast sanity check by compiling each .re to latex and parsing stderr warnings.
Inputs: cwd (required).
review.preprocessC
JS preprocessor only - normalizes input and adds metadata
Inputs: cwd (required), pattern, output, stats.
review.security.compareC
Compare MCP config with ReviewExtention config to ensure SSOT
Inputs: cwd (required).
review.security.configC
Get current security configuration (SSOT from ReviewExtention)
Inputs: cwd (required), forceReload.
review.security.validate-mapfileC
Validate mapfile path and content against security policy
Inputs: cwd (required), filepath (required).
review.tags.listC
Return allowed tags (built-in conservative list; replace with dynamic probe later).
Inputs: cwd (required), profile.
review.test-mapfileC
Test #@mapfile macro with security validation (developer tool)
Inputs: cwd (required), file (required).
review.versionA
Return Re:VIEW CLI version (prefers bundle exec).
Inputs: cwd (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have distinct purposes targeting specific aspects of the Re:VIEW workflow (e.g., PDF generation, Ruby extensions, tag enforcement, ID fixing, linting, preprocessing, security, mapfile testing, version checking). However, review.security.compare and review.security.validate-mapfile could be slightly confused as both involve security validation, though their specific focuses differ (config comparison vs. mapfile validation).
Tools follow a consistent dot-separated naming pattern (e.g., review.build-pdf-hybrid, review.check-ruby-extensions) with clear verb-noun-action structures. Minor deviations include hyphen usage in some names (e.g., build-pdf-hybrid) versus underscores in others (e.g., validate-mapfile), but overall the pattern is predictable and readable.
With 13 tools, the count is well-scoped for a Re:VIEW document processing server. Each tool addresses a specific need in the workflow (e.g., preprocessing, linting, security, PDF generation), and none appear redundant or unnecessary, fitting a typical range for such a domain.
The toolset covers core aspects of Re:VIEW processing including preprocessing, linting, PDF generation, security validation, and tag/ID management. Minor gaps might include tools for advanced editing or collaboration features, but the surface supports essential workflows without dead ends, allowing agents to handle most tasks effectively.
Maintenance
Related MCP Connectors
Validate JSON, YAML, XML and CSV with exact line/column errors and silent-corruption warnings.
Scan, fix and justify your application code until it is approved to ship.
DraftCheck: flags AI-writing patterns in prose with fix hints. Deterministic linter, not a detector.
Validiert E-Rechnungen (ZUGFeRD/Factur-X, XRechnung) gegen EN 16931 mit Korrekturvorschlägen.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA server that enables real-time checking and automated correction suggestions for Japanese technical documents using textlint's linting capabilities.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with the ability to lint, validate, and auto-fix Markdown files to ensure compliance with established Markdown standards and best practices.6MIT
- AlicenseBqualityFmaintenanceProvides intelligent manuscript analysis and writing assistance for markdown projects, including semantic search, quality checks, terminology consistency, link validation, progress tracking, and comprehensive writing statistics.35131 npm13MIT
- AlicenseNot gradedqualityDmaintenanceEnables deterministic linting of locale files across JSON, Laravel PHP, gettext, and YAML, with no LLM or network, verifying translations for missing keys, placeholders, plural forms, glossary consistency, and stale entries.5 npmMIT