git404hub

what is livewire-webmcp fr?

helgesverre/livewire-webmcp — explained in plain English

Analysis updated 2026-05-18

1PHPAudience · developerComplexity · 2/5Setup · easy

tl;dr

A Laravel package that lets you expose chosen Livewire actions as browser-callable AI tools using the WebMCP standard, while normal Livewire behavior still works.

vibe map

mindmap
  root((livewire-webmcp))
    What it does
      Exposes Livewire actions
      As WebMCP tools
      Progressive enhancement
    Tech stack
      PHP Laravel
      Livewire
      WebMCP
    Use cases
      Browser AI tool calls
      Safe read-only actions
      Existing app enhancement
    Audience
      Laravel developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Let a browser-based AI agent call a specific Livewire action as a tool

VIBE 2

Add AI-callable tools to a form without breaking it for regular visitors

VIBE 3

Expose a read-only Livewire action safely to an AI agent

VIBE 4

Progressively enhance an existing Laravel app with WebMCP support

what's the stack?

PHPLaravelLivewireWebMCP

how it stacks up fr

helgesverre/livewire-webmcpagentpietrucha/ks_affiliationakarshsatija/php-whois
Stars111
LanguagePHPPHPPHP
Last pushed2014-02-06
MaintenanceDormant
Setup difficultyeasymoderateeasy
Complexity2/53/52/5
Audiencedeveloperdeveloperpm founder

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · easy time til it works · 30min

May require a Chrome origin trial token depending on your browser's WebMCP support.

in plain english

livewire-webmcp is a small package for Laravel and Livewire applications that lets you expose specific actions in your app as tools an AI agent can call directly from the browser, using an emerging standard called WebMCP. In practice, this means you can mark a Livewire method with an attribute, and if the visitor's browser supports the underlying WebMCP feature, an AI assistant running in that browser can discover and call that method as a structured tool, alongside the page working normally for everyone else. It supports Laravel versions 10 through 13 and both Livewire 3 and Livewire 4. Because WebMCP is described as progressive enhancement, browsers that do not yet support it simply see the Livewire component behave as it always has, with no broken functionality for those visitors. Setting it up involves installing the package through Composer, publishing its front end assets, and adding one line to your Blade layout right after Livewire's own scripts are loaded. If your browser requires a Chrome origin trial token for the underlying WebMCP feature, there is a configuration setting available for that as well. To turn a Livewire action into a tool, you add a WebMcpTool attribute above the method, giving it a title, a description, and a JSON schema describing what input it expects, plus a list of which of those inputs map to the method's actual arguments in order. Each mounted instance of a component gets its own uniquely named tool in the browser, so multiple copies of a form on one page stay distinct. The README is direct that marking a method this way does not automatically make it safe. You are still expected to validate input, check permissions, and avoid returning sensitive data, exactly as you would for any other action a user could trigger, and any return value from the method becomes visible to whatever agent called it. Tools are treated as not read only by default, so you have to explicitly mark an action as read only if it truly has no side effects on the application.

prompts (copy fr)

prompt 1
Help me install livewire-webmcp and register it in my Laravel Blade layout.
prompt 2
Show me how to annotate a Livewire submit method with WebMcpTool and an input schema.
prompt 3
Explain how livewire-webmcp handles browsers that don't support WebMCP yet.
prompt 4
Walk me through marking a Livewire action as read-only for livewire-webmcp.

Frequently asked questions

what is livewire-webmcp fr?

A Laravel package that lets you expose chosen Livewire actions as browser-callable AI tools using the WebMCP standard, while normal Livewire behavior still works.

What language is livewire-webmcp written in?

Mainly PHP. The stack also includes PHP, Laravel, Livewire.

How hard is livewire-webmcp to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is livewire-webmcp for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.