Skip to content

Add AgentLane WebMCP snippet to marketing site - #1009

Draft
riderx wants to merge 1 commit into
mainfrom
cursor/webmcp-support-2b8a
Draft

Add AgentLane WebMCP snippet to marketing site#1009
riderx wants to merge 1 commit into
mainfrom
cursor/webmcp-support-2b8a

Conversation

@riderx

@riderx riderx commented Sep 5, 2026

Copy link
Copy Markdown
Member

Summary

Adds the AgentLane WebMCP snippet to the Capgo marketing site layout so AI agents can discover and invoke site tools via document.modelContext (WebMCP).

Replaces the previous hand-rolled navigator.modelContext.registerTool() integration in WebMcpTools.astro.

Changes

  • apps/web/src/layouts/Layout.astro: inject AgentLane snippet before </head>:
<script src="https://cdn.agentlane.com/v1/snippet.js" data-domain="dom-un0fhr7ntl8g"></script>
  • Removed apps/web/src/components/WebMcpTools.astro (custom tool registration no longer needed)

How to verify

  1. Deploy or run the marketing site (bun run dev in apps/web).
  2. Open any page and view source — confirm the AgentLane script tag is present in <head>.
  3. In a WebMCP-capable browser (e.g. Chrome with WebMCP enabled), load https://capgo.app/ and list tools exposed on the page via document.modelContext.getTools() (or an agent that supports WebMCP discovery).
  4. Confirm AgentLane-registered tools appear and can be invoked as configured in the AgentLane dashboard for domain dom-un0fhr7ntl8g.

Notes

  • Snippet uses is:inline so Astro emits the tag unchanged.
  • Scope is marketing site only (apps/web); docs unchanged.
Open in Web Open in Cursor 

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Review in cubic

Replace hand-rolled navigator.modelContext tool registration with the
AgentLane snippet so AI agents discover site tools via WebMCP.

Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

sonarqubecloud Bot commented Sep 5, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants