diff --git a/apps/web/next.config.mjs b/apps/web/next.config.mjs index a8ee2151..bb223590 100644 --- a/apps/web/next.config.mjs +++ b/apps/web/next.config.mjs @@ -37,7 +37,7 @@ const CSP = [ // Next injects inline style attributes; there is no nonce-free way around it. "style-src 'self' 'unsafe-inline'", // crawlproof.com serves the analytics beacon and the ad loader. - "script-src 'self' 'unsafe-inline' https://crawlproof.com", + "script-src 'self' 'unsafe-inline' https://crawlproof.com https://cdn.jsdelivr.net", "connect-src 'self' https:", "worker-src 'self'", "manifest-src 'self'", diff --git a/apps/web/src/app/layout.jsx b/apps/web/src/app/layout.jsx index b395a25b..45239158 100644 --- a/apps/web/src/app/layout.jsx +++ b/apps/web/src/app/layout.jsx @@ -18,6 +18,29 @@ import { jsonLdScript } from '../lib/jsonld.js'; */ export const revalidate = 3600; +const WEBMCP_KEY_ONLY_TOOLS = [ + 'update_openprofile', + 'claim_openprofile', + 'list_webhooks', + 'create_webhook', + 'update_webhook', + 'delete_webhook', + 'test_webhook', + 'rotate_webhook_secret', + 'webhook_deliveries', +].join(','); + +const WEBMCP_PAGES = JSON.stringify({ + blogs: '/blogs', + podcasts: '/podcasts', + topics: '/topics', + discover: '/discover', + search: '/search', + submit: '/submit', + newsletter: '/newsletter', + about: '/about', +}); + export const metadata = { metadataBase: new URL(siteUrl()), title: { @@ -157,6 +180,21 @@ function siteJsonLd() { export default function RootLayout({ children }) { return ( + + {/* WebMCP (@profullstack/webmcp): the directory's tools for an AI agent + in the reader's browser. The MCP endpoint takes bearer keys only, + never the session cookie, so the key-only tools are left out. */} +