webmcp 0.0.1

Framework-agnostic helpers for WebMCP (W3C Web Model Context Protocol) — early development.
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 7.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 127.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • seunghan91/webmcp-rust
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • seunghan91

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

cargo add webmcp

Usage

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