Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
aecfeef
Add files via upload
Starborn Feb 15, 2026
53d4aad
Add files via upload
Starborn Feb 15, 2026
fedb008
Add files via upload
Starborn Feb 15, 2026
bc700c0
Update webmcp-technical-note-1.md
Starborn Feb 15, 2026
f86654e
Update webmcp-technical-note-2.md
Starborn Feb 15, 2026
da69860
Update webmcp-technical-note-3.md
Starborn Feb 15, 2026
0a9ed5c
Create index.html
Starborn Feb 15, 2026
dc0cb4b
add User Guide
Starborn Feb 15, 2026
191a5ad
Add files via upload
Starborn Feb 15, 2026
e71582f
Update and rename README(6).md to README(generator).md
Starborn Feb 15, 2026
87d2bb8
Add files via upload
Starborn Feb 16, 2026
e6d2768
Update webmcp-quiz.html
Starborn Feb 16, 2026
7817dd9
Rename webmcp-complete-guide.html to docs/webmcp-complete-guide.html
Starborn Feb 16, 2026
b5dedae
Rename webmcp-quiz.html to docs/webmcp-quiz.html
Starborn Feb 16, 2026
f01a102
Rename docs/webmcp-quiz.html to webmcp-quiz.html
Starborn Feb 16, 2026
3867dda
Rename docs/webmcp-complete-guide.html to webmcp-complete-guide.html
Starborn Feb 16, 2026
dba0089
Update webmcp-quiz.html
Starborn Feb 16, 2026
133d26c
Update webmcp-complete-guide.html
Starborn Feb 16, 2026
05d27da
Update webmcp-complete-guide.html
Starborn Feb 16, 2026
2219ad5
Update README.md
Starborn Feb 16, 2026
2d6c2da
Update README.md
Starborn Feb 16, 2026
2e62129
Update webmcp-quiz.html
Starborn Feb 16, 2026
c63259f
Update webmcp-quiz.html
Starborn Feb 17, 2026
dbaae3d
Update webmcp-quiz.html
Starborn Feb 17, 2026
b74152a
Update webmcp-complete-guide.html
Starborn Feb 17, 2026
bcb13e7
Update webmcp-complete-guide.html
Starborn Feb 17, 2026
deb3510
Delete webmcp-complete-guide.html
Starborn Feb 18, 2026
c086162
Add files via upload
Starborn Feb 18, 2026
ae3a0ca
Rename webmcp-complete-guide(3).html to webmcp-complete-guide.html
Starborn Feb 18, 2026
6658cb6
Delete webmcp-quiz.html
Starborn Feb 18, 2026
363c516
Add files via upload
Starborn Feb 18, 2026
b295678
Rename webmcp-quiz(1).html to webmcp-quiz.html
Starborn Feb 18, 2026
614cf88
Delete webmcp-quiz.html
Starborn Feb 18, 2026
258c277
Add files via upload
Starborn Feb 18, 2026
f81d583
Rename webmcp-quiz-1.html to webmcp-quiz.html
Starborn Feb 18, 2026
5beb2e8
Add files via upload
Starborn Feb 18, 2026
7df3bdd
Add files via upload
Starborn Feb 18, 2026
12fe497
Delete WebMCP_Model_Card_Generator_USER_GUIDE.md
Starborn Feb 19, 2026
3629bc8
Rename webmcp-technical-note-1 .md to What to Test, What to Watch, Wh…
Starborn Feb 20, 2026
904a570
Rename webmcp-technical-note-1.md to howabrowserhackbecameaproposedwe…
Starborn Feb 20, 2026
00df605
Rename webmcp-technical-note-3.md to WebMCP Is Not an MCP Server.md
Starborn Feb 20, 2026
20f7742
Rename What to Test, What to Watch, What to Tell the Standards Body.m…
Starborn Feb 20, 2026
249156d
Rename howabrowserhackbecameaproposedwebstandard.md to browserhack.md
Starborn Feb 20, 2026
7a11c34
Rename WebMCP Is Not an MCP Server.md to WebMCnotMCP.md
Starborn Feb 20, 2026
b5e3704
Update README.md
Starborn Feb 20, 2026
87a5f84
Update WebMCnotMCP.md
Starborn Feb 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 131 additions & 0 deletions README(generator).md
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# WebMCP Model Card Generator

Generate standardized documentation for WebMCP browser-side tools.

Extends [MCP Model Card Specification v1.0](https://github.com/Starborn/MCP-Model-Card-Generator) for the browser ecosystem.

## Use It Now

**Open `index.html` in any browser.** That's it. No installation, no build step, no dependencies to manage.

If hosted on GitHub Pages: [Open the Generator](https://starborn.github.io/WebMCP-Model-Card-Generator/)

You can also paste the `.jsx` file into a Claude artifact to run it inside Claude.

## What It Does

You fill in a 12-tab form. The generator produces two files:

- **JSON** -- machine-readable model card for registries, agents, and validators
- **Markdown** -- human-readable documentation for GitHub, specs, and READMEs

Each tab has:
- **Micro-guidance** right above every field telling you exactly what to type
- **Tutorial sidebar** (toggle on/off) explaining MCP vs WebMCP differences
- **Smart defaults** so you can generate a valid card without filling everything

## What is a WebMCP Model Card?

A model card is like a nutrition label for a tool. It tells AI agents and developers what your tool does, what it needs, what can go wrong, and how to use it safely.

[WebMCP](https://webmachinelearning.github.io/webmcp/) is a W3C draft specification (Feb 2026) that lets web pages expose JavaScript functions as structured tools for AI agents. Instead of agents scraping your page, you register tools they can call directly.

This generator documents those tools in a standardized format, extending the MCP Model Card Specification v1.0 that covers backend MCP servers.

## The 12 Sections

1. **Identity & Provenance** -- name, version, author, attribution (human/AI co-created/AI-generated)
2. **API Mode** -- declarative (HTML forms) vs imperative (JavaScript) vs both
3. **Tool Documentation** -- each tool's name, description, input schema, error states
4. **Session & Auth** -- authenticated vs anonymous, browser session inheritance
5. **Browser Compatibility** -- Chrome version, MCP-B polyfill, graceful degradation
6. **Security** -- same-origin scope, CSP, exfiltration risk, lethal trifecta assessment
7. **Interaction Patterns** -- statefulness, tool dependencies, page state modification
8. **Context Requirements** -- provideContext() data, DOM/framework state access
9. **Limitations** -- what the tool cannot do, edge cases, failure modes
10. **Discovery** -- registry listing, .well-known/webmcp, pre-visit discoverability
11. **Testing** -- methodology, which agents tested, pass/fail criteria
12. **Backend MCP Relationship** -- does a corresponding backend server exist?

## How This Was Built

### Architecture

The generator is a single-page React application compiled at runtime in the browser. No build tools, no npm, no webpack, no server.

### Technical Stack

- **React 18** -- loaded from CDN (cdnjs.cloudflare.com), provides the component model and state management
- **Babel Standalone** -- loaded from CDN, compiles JSX (React's HTML-like syntax) to JavaScript directly in the browser at page load
- **Google Fonts** -- DM Sans (body text), DM Mono (code/schemas), Outfit (headings)
- **No other dependencies** -- no CSS framework, no UI library, no build pipeline

### How It Works

1. Browser loads `index.html`
2. React and Babel load from CDN (two small JavaScript files, cached after first visit)
3. Babel compiles the inline JSX code to plain JavaScript
4. React renders the 12-tab form interface
5. All state lives in React's `useState` hooks -- nothing is sent to any server
6. When you click "Generate", two pure functions transform the form state into JSON and Markdown strings
7. You copy the output. That's it.

### Why This Approach?

- **Zero installation** -- open the file, it works
- **No server needed** -- everything runs client-side
- **GitHub Pages ready** -- push one file, enable Pages, done
- **No data leaves your browser** -- the generator is entirely local
- **Portable** -- download the HTML file, use it offline

### File Structure

```
index.html -- The complete generator (one file, ~960 lines)
WebMCP_Model_Card_Generator_USER_GUIDE.md -- Field-by-field reference guide
webmcp-model-card-generator-v2.jsx -- React source (for running inside Claude artifacts)
README.md -- This file
```

### Development Process

This generator was built in a single session through human-AI co-creation:

1. Analyzed the [W3C WebMCP specification](https://webmachinelearning.github.io/webmcp/) (Draft, 12 Feb 2026)
2. Catalogued existing WebMCP implementations (Google travel demo, MCP-B examples, Chrome DevTools quickstart, Jason McGhee's original)
3. Mapped the existing [MCP Model Card Specification v1.0](https://github.com/Starborn/MCP-Model-Card-Generator) schema to browser-side concepts
4. Identified 12 documentation sections covering identity, API mode, tools, session, browser compatibility, security, interaction patterns, context requirements, limitations, discovery, testing, and backend relationship
5. Built the React form interface with contextual tutorial sidebar
6. Added micro-guidance to every field based on usability testing
7. Packaged as standalone HTML for GitHub Pages deployment

## MCP vs WebMCP -- Quick Reference

| Aspect | Anthropic MCP (Backend) | W3C WebMCP (Browser) |
|--------|------------------------|---------------------|
| Runs on | Server (Node.js, Python, Docker) | Web page (browser JavaScript) |
| Transport | stdio, HTTP+SSE, JSON-RPC | postMessage, navigator.modelContext |
| Auth | API keys, env vars, OAuth config | Inherits browser session automatically |
| Discovery | MCP Registry, npm, .well-known | Page must be visited first (gap) |
| Tool registration | Server-side code only | HTML forms OR JavaScript (or both) |
| Human oversight | Separate approval flow | Human sees the page -- IS the oversight |
| Security boundary | API key management | Same-origin policy + CSP + human-in-loop |

## Related Projects

- [MCP Model Card Generator](https://github.com/Starborn/MCP-Model-Card-Generator) -- the original generator for backend MCP servers
- [MCP Model Card Specification v1.0](https://github.com/Starborn/MCP-Model-Card-Generator/blob/main/MCP_Model_Card_Specification_v1_0.md) -- the specification this extends
- [W3C WebMCP Spec](https://webmachinelearning.github.io/webmcp/) -- the W3C draft specification
- [WebMCP GitHub](https://github.com/webmachinelearning/webmcp) -- the official W3C repository

## Credits

**Co-created by:** Paola (concept, design) and Claude (Anthropic)

**W3C Groups:**
- [AI Knowledge Representation Community Group](https://www.w3.org/community/aikr/)
- [Web Machine Learning Community Group](https://www.w3.org/community/webmachinelearning/)

**License:** MIT

Released February 2026
Loading