A real session
Claude replies with a diagram. /mercat off shows the source. /mercat on draws it again.
A Claude Code plugin. It draws the mermaid blocks Claude writes as text diagrams, right in the reply.
```mermaid block, and you see a drawing. If mercat can't draw it, you see the block.», with a warning above./mercat <file>/mercat/mercat off, /mercat onClaude replies with a diagram. /mercat off shows the source. /mercat on draws it again.
PATHThe plugin runs the mercat binary. Without it, the plugin shows one hint per session and leaves diagrams as written. Other ways to install.
brew install tawago/tap/mercatAt the prompt of a Claude Code session:
/plugin install mercat --marketplace tawago/mercat/plugin marketplace add tawago/mercat/plugin install mercat@mercatclaude plugin install mercat --marketplace tawago/mercatThe plugin's version matches mercat's release version. If your mercat is older than the plugin, you get one upgrade hint at start. Tested with Claude Code 2.1.299. The plugin API is early access and may change between releases.