Work
Model Context Protocol

PromptPatch

A local-first MCP server that gives AI prompts what engineers expect: git-style diffs, rollback, release tags, and security scans, stored in one local SQLite file.

RoleSolo build
Timeline2025
StackPython · MCP · SQLite · uv
PromptPatch — project visual
01Problem

Prompt engineering is becoming software engineering.

Production prompts live in scattered docs, private chats, and random files. Someone changes two lines, behavior shifts, and nobody can say what changed. Prompts deserve the same version control that code has.

02Approach

Version control as MCP tools, scanned before storage.

PromptPatch is a local-first Model Context Protocol server that lets Claude Desktop, Cursor, or any MCP client checkpoint prompts mid-conversation. It exposes nine tools, `save_prompt`, `get_prompt`, `list_versions`, `diff_versions`, `rollback`, `tag_release`, `list_prompts`, `scan_prompt_security`, `db_info`, backed by SQLite.

`scan_prompt_security` checks raw or stored content for injection, exfiltration, secret-leakage, and dangerous-action patterns before anything is saved.

03Outcome

No SaaS, no telemetry, one database file.

Everything is local-first: history, unified diffs, rollback, and release tags (`v1.0`, `prod`, `experiment`) all live in a single local SQLite file with zero cloud dependency.

9MCP version-control tools
SQLitelocal-first storage
Next projectVerix