Skip to content

protocol: draft version 1 on resources, links and actions - #26

Draft
evert wants to merge 2 commits into
mainfrom
evert/protocol-v1
Draft

evert wants to merge 2 commits into
mainfrom
evert/protocol-v1

Conversation

@evert

@evert evert commented Nov 19, 2026

Copy link
Copy Markdown

Adds packages/protocol/spec-v1.md, a draft of protocol version 1. Nothing ships it yet.

A page answers with a resource: its URL ($id), its own data, links, and the actions its reader may take. It is the format the vlt.io API serves, so a JSON API and a site with pages look the same to a client.

  • An action is one HTTP request. Each action has a $ref and a method, and the body is its input. The { action, input, confirm } envelope goes.
  • An action is an MCP tool definition with an address. title, description, inputSchema, outputSchema and annotations keep MCP's names, and action names fit both tool-name rules.
  • Names are site-wide, so every action has one definition, served as a resource. A bridge lists its tools from the definitions and performs one by reading the resource that lists it.
  • Resources nest. A member with an $id, such as the cart or a line in it, has its own links and actions.
  • Availability is on the resource. An action the reader may never perform is absent; one they can't perform right now has available: false and a reason.
  • Deltas are one merge patch to the resource, covering its data, links and actions.
  • Confirmation is a token bound to the session, the action, the input and the summary.

The spec ends with what changed from version 0 and eight open issues.

A page answers with a resource: an address, its own data, links, and the
actions its reader may take. Performing an action is one HTTP request the
action describes, so the call envelope goes, and an action maps onto an MCP or
WebMCP tool as it is. It is the format the vlt.io API serves.
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
affordances Ready Ready Preview Nov 20, 2026 2:05am UTC

Request Review

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