
让你的AI追踪项目进展,同时不分心
概览
这是一个Zig MCP服务器,允许编码代理在不嵌入LLM的情况下,持续保存项目目标、进度笔记、文档索引和会话新鲜度检查。 服务器是有意为之机械的。代理负责分析、扫描、总结和规划。MCP验证并存储他们提供的结构化JSON,写入project_progress.md,并记录SQLite元数据,以便未来会话检测漂移。 Markdown 和注册文档写入会先经过唯一的兄弟临时文件,然后重命名以减少部分文档写入。剩余的 *.tmp 件伪影会被快照和 git 忽略。 SQLite 连接使用 WAL 模式,synchronous=NORMAL 以及短暂的忙值超时,使并发代理会话能够等待数据库的瞬态锁。 安装 Zig 和一个提供 sqlite3.h 和可链接 sqlite3 库的 SQLite 开发包。 在Windows上,确保sqlite3.lib和sqlite3.dll对编译器/运行时可用。
概述(AI 翻译)
一个Zig MCP服务器,允许编码代理持续执行项目目标、进度笔记, 文档索引和会话新鲜度检查,无需嵌入LLM。
服务器是故意机械的。代理负责分析、扫描,
总结和规划。MCP验证并存储结构化的JSON,它们
提供,写入project_progress.md,并记录SQLite元数据,因此未来
会话可以检测漂移。
Markdown 和注册文档写入会通过唯一的兄弟临时文件
在重命名以减少部分文档之前,写入。剩余的*.tmp伪影
快照和 git 会忽略。
SQLite 连接使用 WAL 模式、synchronous=NORMAL,以及短暂的忙音超时
因此,并发代理会话可以等待瞬时数据库锁。
建造
安装 Zig 和一个提供 sqlite3.h 和
可链接的sqlite3库。
在Windows上,确保sqlite3.lib和sqlite3.dll对
编译器/运行时。如果SQLite不可全局发现,则传递显式路径:
或者,基于SQLite合并构建,提供sqlite3.c;
包含该文件的目录还必须包含sqlite3.h:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
project-progress-mcp
A Zig MCP server that lets coding agents persist project goals, progress notes, documentation indexes, and session freshness checks without embedding an LLM.
The server is intentionally mechanical. Agents do the analysis, scanning,
summarizing, and planning. The MCP validates and stores the structured JSON they
provide, writes project_progress.md, and records SQLite metadata so future
sessions can detect drift.
Markdown and registered-document writes go through unique sibling temp files
before rename to reduce partial documentation writes. Leftover *.tmp artifacts
are ignored by snapshots and git.
SQLite connections use WAL mode, synchronous=NORMAL, and a short busy timeout
so concurrent agent sessions can wait through transient database locks.
Build
Install Zig and a SQLite development package that provides sqlite3.h and a
linkable sqlite3 library.
zig build
On Windows, make sure sqlite3.lib and sqlite3.dll are available to the
compiler/runtime. If SQLite is not globally discoverable, pass explicit paths:
zig build -Dsqlite_include=C:\sqlite\include -Dsqlite_lib_dir=C:\sqlite\lib
Alternatively, build against the SQLite amalgamation by providing sqlite3.c;
the directory containing that file must also contain sqlite3.h:
zig build -Dsqlite_source=C:\sqlite-amalgamation\sqlite3.c
This repository has been verified on Windows with Zig 0.16.0 using
-Dsqlite_source and the official SQLite amalgamation.
Smoke Test
Run static preflight checks that do not require Zig:
node .\scripts\preflight.mjs
After building, run the stdio MCP smoke test:
node .\scripts\smoke-test.mjs .\zig-out\bin\project-progress-mcp.exe
On non-Windows hosts, omit the .exe or pass the compiled binary path. The
smoke test creates a temporary project, calls the core MCP tools through
Content-Length framed JSON-RPC, checks index validation rejects bad payloads,
initializes a tiny git repository when git is available, and removes the
temporary project afterward.
MCP transport
The server speaks JSON-RPC 2.0 over stdio. Clients may send one JSON object per
line or LSP-style Content-Length frames. A single message is limited to
32 MiB; oversized newline-delimited messages are rejected and the process keeps
running. The server answers ping.
On Windows, expose the binary via an NTFS junction so Cursor sees a no-space
path (Cursor shell-splits spaced command paths, and copying under
%USERPROFILE%\.cursor\ triggers ACL/sandbox behavior that blocks stdio):
zig build
node .\scripts\install-cursor-mcp.mjs # creates \pp-mcp junction
# or pick your own no-space path on the same drive:
node .\scripts\install-cursor-mcp.mjs --link=D:\bin\pp-mcp
Then point Cursor at the junctioned executable (use the path the install script prints):
{
"type": "stdio",
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →