Webmcp

From jordanhubbard/literate-ai · View interactive version

Webmcp is an AI agent skill from the GitHub repository jordanhubbard/literate-ai. In-page WebMCP tools (JavaScript functions or HTML tools) for front-ends. Use for Literate AI workflow tasks that expose MCP in the browser page. Inherits the MCP parent; not a second protocol.

How to use this skill

Skill file

WebMCP in-page tools

This skill is a delta of mcp-application (filesystem parent) and of

frontend-application (front-end parent). Pin both parents in the recipe. WebMCP is

MCP in the running page: JavaScript functions or HTML tools with natural-language

descriptions and structured schemas for in-browser agents.

In-page, not a second protocol

Register tools on the document's model context (the WebMCP registerTool shape:

name, description, inputSchema, execute). HTML tools are first-class when the

specification names them. Inherit the MCP parent's tool-versus-resource split, input

schema validation, and structured errors. Do not invent a parallel protocol.

Tools reuse the page's existing client-side logic. execute updates the same UI and

client state a human would reach, then returns a structured result. If a requested

task is outside the registered tools, the agent may fall back to ordinary page

actuation; do not generate a hidden headless API as a substitute.

Front-end delta

Follow the front-end parent for JavaScript-only generation, relative imports with

extensions, and dependency-free modules. Keep the human interface primary: WebMCP

augments it for cooperative, human-in-the-loop agents. Do not disintermediate the

page with a server-only MCP integration.

What this leaf does not own

Operator catalogs, project mcps/ hygiene, and embedded process MCP stay on their

own leaves. This skill must not name a personal catalog path or a reserved operator

id as a product tool.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.