helgesverre/livewire-webmcp — explained in plain English
Analysis updated 2026-05-18
Let a browser-based AI agent call a specific Livewire action as a tool
Add AI-callable tools to a form without breaking it for regular visitors
Expose a read-only Livewire action safely to an AI agent
Progressively enhance an existing Laravel app with WebMCP support
| helgesverre/livewire-webmcp | agentpietrucha/ks_affiliation | akarshsatija/php-whois | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | PHP | PHP | PHP |
| Last pushed | — | — | 2014-02-06 |
| Maintenance | — | — | Dormant |
| Setup difficulty | easy | moderate | easy |
| Complexity | 2/5 | 3/5 | 2/5 |
| Audience | developer | developer | pm founder |
Figures from each repo's GitHub metadata at analysis time.
May require a Chrome origin trial token depending on your browser's WebMCP support.
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.
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.
Mainly PHP. The stack also includes PHP, Laravel, Livewire.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.