MCP server for sharing short-lived coding-agent handoff capsules

MCP server for sharing short-lived coding-agent handoff capsules

context-capsule•byjohnny-z13

An MCP server for Context Capsule that creates and fetches short-lived handoff capsules via the hosted API, letting an agent pass task state between coding agents or machines.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes three MCP tools: create_capsule, fetch_capsule, and signup against the hosted API.
  • •Creating a capsule through the MCP server requires a CONTEXTCAPSULE_API_KEY, while fetching is public.
  • •Works with hosted capsules that are short-lived, with a default 24-hour expiry and 7-day maximum.
  • •Hosted capsules are public to anyone with their URL and require explicit consent.

BEST FOR

  • •Handing off a coding task between machines or people via a short-lived shared capsule URL.
  • •Agents that need to create or retrieve a capsule through MCP tool calls rather than local files.

ABOUT CONTEXT-CAPSULE

MCP server for sharing short-lived coding-agent handoff capsules is cataloged as an MCP server attributed to johnny-z13. An MCP server for Context Capsule that creates and fetches short-lived handoff capsules via the hosted API, letting an agent pass task state between coding agents or machines. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for sharing short-lived coding-agent handoff capsules are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does using the MCP server require an account or API key?

Creating a capsule through the MCP server requires a CONTEXTCAPSULE_API_KEY, but fetching capsules is public.

Who can read a hosted capsule?

Hosted capsules are public to anyone with the ID or URL until they expire, and require explicit consent.

Upstream README

View this exact version on GitHub

README.md · 8748beba3c9d · Fetched 2026-11-13 13:01:58 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Context Capsule

Switch coding agents without losing the thread.

Context Capsule is an open-source, local-first Agent Skill for handing a live coding task from Codex to Claude Code, Cursor, another agent, or your future self. It records the minimum useful state: repository identity, decisions, constraints, verification, blockers, and one concrete next action.

The receiving agent checks whether the handoff is still compatible before trusting it.

Website · Skill source · Current direction · Example handoff · Optional hosted API · ProofSlip

Install the Agent Skill

npx skills add Johnny-Z13/context-capsule --skill contextcapsule-handoff

The skill uses an open SKILL.md plus a dependency-free Node helper. It is intended for Codex, Claude Code, Cursor, and other tools that support the Agent Skills format.

Example prompts:

Create a Context Capsule before I switch this task from Codex to Claude Code.

Resume from .contextcapsule/latest.json, but check whether it is stale first.

No account, API key, database, or upload is required for the local workflow.

What It Captures

The coding-handoff/v1 format contains:

LaneWhat it answers
ObjectiveWhat outcome are we trying to reach?
Current statusWhat is complete, partial, unverified, or out of scope?
RepositoryWhich remote, branch, HEAD, and working-tree fingerprint does this describe?
DecisionsWhat choices must the next agent preserve?
ConstraintsWhat must it not do or assume?
VerificationWhat command and result were observed or merely reported, and when?
BlockersWhat still needs authority, credentials, another person, or external state?
Next actionWhat single bounded step should happen next?
ReferencesWhich ProofSlip proofs, issues, or pull requests are relevant?

It is a handoff, not a transcript, general memory store, autonomous orchestrator, or source of truth for claims.

Local Workflow

The skill normally drives these commands for you. They are documented here so the behavior stays inspectable.

1. Capture repository state

node .agents/skills/contextcapsule-handoff/scripts/contextcapsule.mjs \
  capture --repo /path/to/repository

Capture is read-only. It records sanitized repository metadata and bounded changed filenames. It does not read or copy source-file contents.

2. Create the handoff

Prepare a semantic input file following the format reference, then:

node .agents/skills/contextcapsule-handoff/scripts/contextcapsule.mjs \
  create \
  --repo /path/to/repository \
  --input /path/to/handoff-input.json

Default output:

.contextcapsule/
├── latest.json
├── latest.md
├── previous.json   # when an older capsule existed
└── previous.md

The helper must be run only after the user approves the write location. It does not edit .gitignore automatically.

3. Resume safely

node .agents/skills/contextcapsule-handoff/scripts/contextcapsule.mjs \
  resume \
  --repo /path/to/repository \
  --capsule /path/to/repository/.contextcapsule/latest.json

The result is one of:

  • compatible — repository identity and recorded state still match.
  • stale — same repository, but the branch, HEAD, working tree, files, or expiry changed.
  • mismatched — the handoff describes another repository.
  • unverifiable — current repository state could not be inspected.

A stale capsule can still preserve its objective, decisions, and constraints. Re-check changed files, verification, blockers, and next action before continuing.

Privacy and Trust Boundary

  • Local is the default. The normal workflow does not contact Context Capsule servers.
  • The agent asks before writing .contextcapsule/, changing ignore rules, or uploading.
  • Automatic capture records filenames and Git metadata, not file contents.
  • Common credential patterns are rejected before a capsule is written.
  • Secret detection is a guardrail, not a guarantee. Review the handoff before sharing it.
  • Hosted capsules are public to anyone with their URL and need explicit consent.
  • A capsule reports context. It does not independently prove that a command, deployment, or release happened.

The default local and hosted expiry is 24 hours. The maximum hosted expiry is 7 days.

Context Capsule + ProofSlip

The products stay separate and connect through an optional reference:

  • Context Capsule is navigational: “What is the situation, what matters, and what should happen next?”
  • ProofSlip is evidential: “What did the release environment attest, and can the next agent check it?”

Put ProofSlip IDs in references.proofslip_ids only when a handoff claim has relevant independent evidence. The next agent still needs to fetch and inspect the proof; an ID alone does not make a claim verified.

Optional Hosted Sharing

The existing Hono/Postgres API remains available when you explicitly need a short-lived handoff URL for another machine or person. It is optional transport, not the default authoring experience.

Get an API key

curl -X POST https://www.contextcapsule.ai/v1/auth/signup \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com"}'

API keys use the ak_ prefix.

Create a hosted capsule

curl -X POST https://www.contextcapsule.ai/v1/capsules \
  -H "Authorization: Bearer ak_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "summary":"Refresh-token migration implemented; staging is not verified",
    "decisions":["Keep the legacy endpoint for three consumers"],
    "next_steps":["Run the staging smoke test","Ask before release"],
    "payload":{"schema_version":"coding-handoff/v1"},
    "refs":{"receipt_ids":[]},
    "expires_in":86400,
    "idempotency_key":"refresh-handoff-81d9c1a",
    "audience":"human"
  }'

Response fields include capsule_id, capsule_url, summary, decisions, next_steps, created_at, expires_at, and idempotency_key.

Fetch

curl "https://www.contextcapsule.ai/v1/capsules/cap_...?format=json"

Fetches require no authentication. Anyone with the ID or URL can read the capsule until it expires.

Full hosted contract: API docs · OpenAPI · llms-full.txt

Optional MCP Transport

npx -y @contextcapsule/mcp-server

The MCP server exposes create_capsule, fetch_capsule, and signup against the hosted API. Creating requires CONTEXTCAPSULE_API_KEY; fetching is public. Prefer the Agent Skill for local coding handoffs because it can inspect repository freshness and does not require an upload.

Self-Hosting

Requirements: Node.js 18+ and PostgreSQL.

git clone https://github.com/Johnny-Z13/context-capsule.git
cd context-capsule
npm install
cp .env.example .env
npm run db:migrate
npm run db:seed -- you@example.com
npm run dev

Environment variables:

VariableRequiredPurpose
DATABASE_URLYesPostgreSQL connection string
BASE_URLYesPublic base URL for capsule links
CRON_SECRETProductionProtects expiry cleanup
RESEND_API_KEYWeb signupEmails API keys for source: web
DEV_SECRETOptionalProtects the local developer console
NODEJS_HELPERSVercelSet to 0 for the deployment runtime

Development

npm run dev
npm test -- --run --configLoader runner
npx tsc --noEmit

Focused skill test:

npx vitest run tests/skills/contextcapsule-handoff.test.ts --configLoader runner

The HTTP API is intentionally backward compatible with the original flat summary, decisions, next_steps, payload, and refs schema while the local skill provides the richer authoring and freshness contract.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for sharing short-lived coding-agent handoff capsules from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/context-capsule)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools