# webmcp
Framework-agnostic Rust helpers for [WebMCP](https://github.com/webmachinelearning/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
```bash
cargo add webmcp
```
## Usage
```rust
use webmcp::origin_trial_header;
let (name, value) = origin_trial_header("your-origin-trial-token");
// wire (name, value) into your framework's response headers
```
See the crate documentation for axum and actix-web examples.
## License
MIT