Repository navigation
v0.20.0
Release v0.20.0
Release Notes
Overview
This release introduces hexai-mcp-server, a new MCP (Model Context Protocol) server for managing reusable prompts and runbooks. AI agents like Claude Code CLI, Cursor, and Amp can now discover and use your prompt library through the industry-standard MCP protocol. The release also includes built-in meta-prompts for interactive prompt management, automatic backups, and comprehensive documentation.
✨ Features
MCP Server for Prompt Management (hexai-mcp-server)
A new standalone binary that lets any MCP-compatible AI agent access your prompt library over stdio:
- Full CRUD operations — create, update, delete, and retrieve prompts via standard MCP protocol methods
- Automatic backups — every prompt change creates a backup (last 10 retained), so you never lose work
- Built-in meta-prompts — includes
create_prompt,update_prompt, anddelete_promptprompts that guide agents through prompt management interactively - JSONL storage — prompts are stored in a human-readable, git-friendly format at
~/.local/hexai/data/prompts/user.jsonl - Built-in prompt library — ships with useful defaults (code review, explain code, generate tests, simplify code, and more) compiled into the binary
- MCP Tools support — exposes
create_prompt,update_prompt,delete_prompt,list_prompts, andget_promptas MCP tools for programmatic access
Agent Integration
Works out of the box with popular AI coding tools:
- Claude Code CLI — add to
~/.config/claude/mcp.json - Cursor — add to
~/.cursor/mcp.json - Any MCP-compatible client — standard stdio transport
Configurable Prompts Directory
Store prompts wherever makes sense for your workflow:
--prompts-dirflag,HEXAI_MCP_PROMPTS_DIRenv var, ormcp_prompts_dirin config- Use a shared/synced folder for team prompt libraries
- Use project-local directories for project-specific prompts
📖 Documentation
- MCP setup guide — installation and agent configuration
- Creating custom prompts — prompt authoring guide
- MCP API reference — full protocol documentation
- Managing prompts — CRUD operations and backup behavior
- Features summary — capabilities overview
🔧 Improvements
- Consolidated local paths — cache, state, and data directories now live under
~/.local/hexai/for cleaner organization - Build system — Magefile updated with
BuildHexaiMCPServertarget;mage buildandmage installnow include the MCP server - Test coverage — comprehensive tests for MCP server, prompt store, and transport layers
⚠️ Migration Notes
Path Changes
Local storage paths have been consolidated:
| Purpose | Old Path | New Path |
|---|---|---|
| Cache | ~/.cache/hexai/ |
~/.local/hexai/cache/ |
| State & Logs | ~/.local/state/hexai/ |
~/.local/hexai/state/ |
| Data (prompts) | — | ~/.local/hexai/data/ |
If you have existing cache or state files, they should be moved to the new locations.
Installation
Build and install the new binary:
mage build install
# or directly:
go install codeberg.org/snonux/hexai/cmd/hexai-mcp-server@latest