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

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 01:40:36 -08:00 • committed by GitHub
parent 1fe44f0399
commit 64eb42e2c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,6 +73,14 @@ export default function RootLayout({ children }: { children: ReactNode }): React
<link rel="openprofile" href={`${SITE_URL}/.well-known/openprofile.md`} /> <link rel="openprofile" href={`${SITE_URL}/.well-known/openprofile.md`} />
{/* OpenStack.md discovery (/openstack, rule 9): what this site is built on. */} {/* OpenStack.md discovery (/openstack, rule 9): what this site is built on. */}
<link rel="openstack" href={`${SITE_URL}/.well-known/openstack.md`} /> <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> </head>
<body> <body>
<script <script