feat(web): WebMCP tools via @profullstack/webmcp

Adds @profullstack/webmcp so in-browser AI agents get the site's tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-11-11 08:07:08 +00:00
parent 1fe44f0399
commit fe8ca91043

View file

@ -73,6 +73,14 @@ export default function RootLayout({ children }: { children: ReactNode }): React
<link rel="openprofile" href={`${SITE_URL}/.well-known/openprofile.md`} />
{/* OpenStack.md discovery (/openstack, rule 9): what this site is built on. */}
<link rel="openstack" href={`${SITE_URL}/.well-known/openstack.md`} />
{/* WebMCP (@profullstack/webmcp): site_info and open_page for the AI agent in the
visitor's browser. No-op where the browser has no WebMCP. */}
<script
type="module"
data-webmcp=""
src="https://cdn.jsdelivr.net/npm/@profullstack/webmcp@0/src/embed.js"
data-pages='{"specs":"/specs","docs":"/docs","pricing":"/pricing","openmcp":"/openmcp","openagent":"/openagent","openprofile":"/openprofile","blog":"/blog","about":"/about"}'
/>
</head>
<body>
<script