webmcp
Framework-agnostic Rust helpers for WebMCP —
the W3C proposal that lets web pages declare structured tools for AI agents
(document.modelContext).
Status: early development. The WebMCP spec is in Chrome origin trial
(Chrome 149–156) and its API surface has already changed twice. This crate
currently ships the one piece of server-side plumbing every participating
origin needs — the Origin-Trial response header — and stays deliberately
small until the spec settles.
Install
Usage
use origin_trial_header;
let = origin_trial_header;
// wire (name, value) into your framework's response headers
See the crate documentation for axum and actix-web examples.
License
MIT