puffer-feed

puffer-feed

Enables logging progress updates to ThePuffer build tracker via a single tool, with safe concurrent writes.

Category
访问服务器

README

puffer-feed

One line connects everyone to ThePuffer build tracker. Hermes, Claude Code, Claude Desktop, a CI job, a git hook — anything — can push a progress update to the tracker by calling one tool (or one shell command). No more hand-editing data.json.

It's an MCP server + a CLI + an opt-in hook, all funneling through one locked, git-safe write-core so concurrent writers can never clobber each other (the exact bug that bit us when two agents wrote data.json at once).

puffer-feed/
├── src/write-core.mjs   ← the ONLY thing that mutates data.json + pushes (lock + rebase + atomic write)
├── src/secrets.mjs      ← rejects secrets / internal hosts before they hit the public page
├── mcp-server.mjs       ← stdio MCP server (6 tools) — add one line to any MCP client
├── bin/puffer.mjs       ← CLI for non-MCP callers (CI, cron, git hooks, shell)
├── hooks/puffer-autofeed.mjs ← opt-in Claude Code Stop hook (off by default)
└── test-core.mjs        ← concurrency regression test (npm test)

Mental model: logging IS publishing. A write goes live on the partner-facing site in ~15s. Keep it to one entry per BIG step, plain and non-technical — a business partner reads it, not engineers.


Install (once)

git clone https://github.com/ElSalvatore-sys/puffer-feed.git ~/Developer/puffer-feed
cd ~/Developer/puffer-feed && npm install

It writes to a local clone of the tracker repo. Point it there with PUFFER_DIR (defaults to ~/Developer/puffer-tracker). You need push rights on that repo.

git clone https://github.com/ElSalvatore-sys/puffer-tracker.git ~/Developer/puffer-tracker

Connect a client (the "one line")

Claude Code — ~/.claude.json (global mcpServers, or a project's mcpServers)

"puffer": {
  "command": "node",
  "args": ["/Users/you/Developer/puffer-feed/mcp-server.mjs"],
  "env": { "PUFFER_DIR": "/Users/you/Developer/puffer-tracker" }
}

Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json → mcpServers

(same block; restart Claude Desktop to load)

"puffer": {
  "command": "node",
  "args": ["/Users/you/Developer/puffer-feed/mcp-server.mjs"],
  "env": { "PUFFER_DIR": "/Users/you/Developer/puffer-tracker" }
}

Hermes — ~/.hermes/config.yaml under the existing mcp_servers:

mcp_servers:
  puffer:
    command: node
    args:
    - /Users/you/Developer/puffer-feed/mcp-server.mjs
    enabled: true
    env:
      PUFFER_DIR: /Users/you/Developer/puffer-tracker

(Hermes has mcp_reload_confirm: true — it asks you to approve the reload once.)

CLI / CI / cron / git hooks (no MCP)

cd ~/Developer/puffer-feed && npm link   # exposes `puffer` on PATH
PUFFER_DIR=~/Developer/puffer-tracker puffer log bloghead "Stripe payouts wired end to end"

Once connected, an agent just calls the tool: "log a step on bloghead: payments are live."


Tools (MCP) / commands (CLI)

Tool What it does
log_step Append one big-step entry. project, title required; detail/status/mins/progress/push/redact optional. 90% of usage.
get_recent Read-only. Last n entries — call before logging to avoid duplicates.
list_projects Read-only. Keys, names, phases, % and step counts.
set_project_field Set phase / minor / roadmap (structural — gated, see below).
set_week_highlight Replace the "This week" banner (gated).
add_audit_chapter Append a narrative chapter to a project's audit (gated).
puffer log thebarapp "Digital menu module shipped" --detail "owner editor + public page" --mins 300 --status done --progress 86
puffer recent 10
puffer projects
puffer log dehgo "Drafted onboarding copy" --no-push    # commit locally, push on next call

Structural tools (set_project_field, set_week_highlight, add_audit_chapter) are off unless PUFFER_ALLOW_STRUCTURAL=1 — keep them to the owner's machine; everyone else just logs steps.


Auto-feed hook (opt-in, off by default)

hooks/puffer-autofeed.mjs is a Claude Code Stop hook that does nothing unless PUFFER_AUTOFEED=1 and the session explicitly staged a step via a sentinel (.puffer-pending JSON in the repo, or PUFFER_LOG="project|title|detail"). It never fires per-turn. To enable, add to ~/.claude/settings.json:

{ "hooks": { "Stop": [ { "hooks": [
  { "type": "command", "command": "PUFFER_AUTOFEED=1 PUFFER_DIR=/Users/you/Developer/puffer-tracker node /Users/you/Developer/puffer-feed/hooks/puffer-autofeed.mjs" }
] } ] } }

The core enforces an anti-spam guard on hook-fed entries (min meaningful title, dedupe, 1-per-project-per-20-min throttle). Recommended posture: leave it off and let the agent call log_step deliberately.


Auto-log rule (drop into your CLAUDE.md)

The most reliable "hands-free" path isn't a dumb trigger — it's a one-paragraph rule that tells the agent to call log_step at every big step. The canonical copy lives in CLAUDE-RULE.md — paste it into your global ~/.claude/CLAUDE.md (covers every project at once) and/or each project's CLAUDE.md. It defines what counts as a "big step", the project keys, and the partner-facing writing style.


Why one locked write-core

Every writer — MCP, CLI, hook, even the screenshot agent (commitPaths()) — funnels through withLock() → fetch → rebase → derive id AFTER rebase → validate → atomic write → git add data.json (never -A) → commit → push (rebuild + retry on non-fast-forward, never force-push). That:

  • serializes concurrent writers via an atomic link()-based lockfile in .git/ (pid-liveness stale-steal, ownership-checked release) — fixes the clobber bug directly;
  • derives the new id after rebase so two writers never pick the same id;
  • writes atomically (tmp + fsync + reparse + rename) so a reader never sees a torn file;
  • pathspec-scoped commit (git commit -- data.json) so a pre-staged file in your tracker clone can never be swept into the public push;
  • scans every published field for secret shapes before publishing (reject by default — rotate, don't "edit", since git history is permanent). Add your own internal hosts/IPs to block with PUFFER_INFRA_HOSTS="10.0.0.5,api.internal.example" (kept out of this repo);
  • returns a truthful result — callers say "live in ~15s" only when pushed === true.

Run the regression test (spawns 8 parallel writers against a throwaway local clone):

npm test

License

MIT © 2026 ThePuffer / EA Solutions

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选