Skip to content

Real transports + the kit board: MCP (Streamable HTTP), ACP core REST, and the agent kit page - #5

Merged
srivtx merged 2 commits into
mainfrom
feat/agent-kit-full
Sep 3, 2026
Merged

Real transports + the kit board: MCP (Streamable HTTP), ACP core REST, and the agent kit page#5
srivtx merged 2 commits into
mainfrom
feat/agent-kit-full

Conversation

@srivtx

@srivtx srivtx commented Sep 3, 2026

Copy link
Copy Markdown
Owner

What

  • /api/mcp — a REAL MCP server over Streamable HTTP (spec 2025-06-18): initialize handshake with version negotiation, Mcp-Session-Id sessions, notifications → 202, tools/list, tools/call, ping, GET → 405, DELETE → teardown, batches → 400. Any MCP client (Claude, Cursor, Inspector) can connect and shop through the gate.
  • /api/acp — ACP core REST: agents descriptor publishing the Ed25519 public key, sessions, messages; every result carries an ack + a receipt signed with the mandate's own key. Verified offline during the build (digest match + ed25519 verify = true).
  • Consent enforced at the tool layer: bind_and_pay refuses with MANDATE_NOT_APPROVED until approve_mandate runs — chat, MCP and ACP all refuse the same way; no transport routes around the principal. attest_tier joins as the second protocol tool (7 tools total).
  • The Agent kit page (new nav view): the felt kit board — seven tool patches wired by running stitch to the counter — three-doors stitched cards, the raw kit JSON live, a copy agent context button (context also ships in /api/agent/kit), and the in-page walkthrough that runs the golden path over pure HTTP.
  • Twins updated: PAPER.md + paper.tsx §7, ARCHITECTURE.md decision 9, adapters honesty note, ENGINEERING_LOG D2 → amended D6, why page, JUDGE.md, AGENT_KIT.md, README, llms.txt, verify.mjs.

Verification

  • MCP walk live: initialize → tools/list → golden path → refuse before approval → capture after (manifest issued)
  • ACP walk live: ack → result → receipt signature verified offline
  • make kit green · lint + typecheck + make verify green · light + dark screenshots

…kthrough

- agent-kit.tsx: the sixth view — the counter's HTTP contract rendered
  as a product page: the one endpoint (request/response cards), the
  eight-message protocol, the five tool schemas, the trust ladder, and
  the raw kit JSON fetched live from /api/agent/kit
- the proof is in-page: 'run the walkthrough' speaks JSON to /api/chat
  exactly as an outside client would — search → add → attest →
  checkout → approve — and prints the real verdicts (gate ALLOW,
  captured, receipt, chain verifies); nothing mocked
- shell/footer: Agent kit joins the nav between Paper and Playground
- registered: verify.mjs REQUIRED, README filemap (six surfaces),
  llms.txt, JUDGE.md reading surfaces (two → three)
The half-measure is gone:

- /api/mcp — a REAL MCP server over Streamable HTTP (spec 2025-06-18):
  initialize handshake with version negotiation, Mcp-Session-Id
  sessions, notifications → 202, tools/list, tools/call with
  content/isError results, ping, GET → 405, DELETE → teardown,
  batches → 400 (removed in 2025-06-18). Any MCP client can connect.
- /api/acp — ACP core REST: agents descriptor (publishes the Ed25519
  public key), sessions, messages; every result carries an ack and a
  receipt signed with the mandate's own key — verified offline during
  the build (digest match + ed25519 verify = true).
- consent moves INTO the tool layer: bind_and_pay refuses with
  MANDATE_NOT_APPROVED until approve_mandate runs — chat, MCP and ACP
  all refuse the same way; no transport routes around the principal.
  attest_tier joins as the second protocol tool (7 tools total).
- the kit page becomes the felt board: a hand-cut mat with seven tool
  patches wired by running stitch to the counter, dye washes on the
  same screen-blend law, two pompoms, stitched three-doors cards,
  a copy-agent-context button (context ships in the kit JSON too),
  and the two stamps that say exactly what is real now.
- twins updated: PAPER.md + paper.tsx §7, ARCHITECTURE.md decision 9,
  adapters honesty note, ENGINEERING_LOG D2 → amended D6, why page,
  JUDGE.md, AGENT_KIT.md (MCP + ACP connect sections), README, llms.txt,
  verify.mjs REQUIRED

verified live: MCP walk (refuse → approve → capture, manifest issued),
ACP walk (receipt verifies offline), make kit green, lint + typecheck
+ verify green, light + dark screenshots
@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
customs Ready Ready Preview Sep 3, 2026 9:02pm UTC

@srivtx
srivtx merged commit c1e8924 into main Sep 3, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant