anthropics / anthropics/claude-cookbooks

Pattern request: Persistent project context for Claude Code via MCP server

Offen
#593 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
52.7k
Forks
6.3k
Ø Merge
25 Min.
Gemergte PRs (30 T.)
6

Beschreibung

Hi Anthropic team,

Would you be open to a cookbook recipe demonstrating how to give Claude Code persistent project context across sessions using an MCP server? The pattern is increasingly common — Claude Code users routinely lose context between sessions, and the community has converged on MCP-based memory + project-state tooling as the answer (claude-mem, Mem0, and others; we're building Sprintra in the same lane).

Specifically, a recipe could cover:

1. **Why persistent project context matters** for AI coding sessions — concrete pain points (re-explaining architecture, decisions decaying,
regressions)
2. **The MCP-server pattern** — how an external server gives the agent typed access to project state (features, decisions, sprints)
3. **Hooks-based capture** — using Claude Code's SessionStart, UserPromptSubmit, and Stop hooks to auto-capture session digests at zero LLM cost
4. **Per-user privacy + opt-out flags** — typical concerns when capturing session data
5. **A working code sample** — Sprintra MCP (open source MIT) makes a clean reference example, but the pattern itself is what matters

Happy to draft the notebook + supporting code if you're open to it.

Sprintra repo: https://github.com/Sprintra-io/sprintra-mcp
Sprintra MCP Registry entry: io.github.Sprintra-io/sprintra (v1.0.4)

— Ravi Yadav, Sprintra (sprintra.io)

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.