@machfivetechchicago/machvive-webmcp-ai 5.5.5 → 5.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<h1 align="center">machvive-webmcp-ai</h1>
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<strong>
|
|
4
|
+
<strong>"I don't want to use your product's agent; I want my agent to be able to use your product."</strong><br>
|
|
5
5
|
Vanilla Web Components that make a page agent-ready — by
|
|
6
6
|
<a href="https://github.com/Mach-Five-Group">MachFiveTech Chicago</a>.
|
|
7
7
|
</p>
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
<img alt="dependencies" src="https://img.shields.io/badge/dependencies-0-brightgreen.svg">
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
|
+
WebMCP empowers agents by giving them access to your core business functionality within a safe, semantic sandbox.
|
|
17
|
+
|
|
18
|
+
A Business Accelerator is a targeted, authoritative, conversion-optimized landing page with automated onboarding that facilitates a non-linear, multi-touch sales cycle. Exposing your Business Accelerators to agents makes perfect sense: it gives agents access to interactive experiences that deliver real business value—not just content.
|
|
19
|
+
|
|
20
|
+
But if agents are becoming part of your customer journey, you need to understand how they engage with your site. We give you the tools to measure that engagement. Record agent sessions and play them back to see exactly how they navigate, interact, and use your Business Accelerators. This gives you detailed insight into agent behavior—and into the broader ecosystem of agent-driven engagement.
|
|
21
|
+
|
|
16
22
|
No framework, no build step, no runtime dependencies — just standards-based custom
|
|
17
23
|
elements with Shadow DOM that work anywhere `customElements` does.
|
|
18
24
|
|
|
@@ -137,6 +143,49 @@ const res: WebmcpToolResult = await navigator.modelContext.callTool('add_to_cart
|
|
|
137
143
|
|
|
138
144
|
Verified against `moduleResolution: "bundler"` and `"node16"` under `--strict`.
|
|
139
145
|
|
|
146
|
+
## Server-Side Rendering (SSR)
|
|
147
|
+
|
|
148
|
+
These are browser components. Both classes extend `HTMLElement` at module load — not
|
|
149
|
+
when an element is created — so importing the package on a server, where no DOM
|
|
150
|
+
exists, throws immediately:
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
ReferenceError: HTMLElement is not defined
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
This never happens in a browser-only setup like Vite, where `HTMLElement` is always
|
|
157
|
+
present. It comes up only in frameworks that render on the server first — Next.js,
|
|
158
|
+
Nuxt, Astro, SvelteKit, Remix. Import the package from a client-only path instead:
|
|
159
|
+
|
|
160
|
+
```javascript
|
|
161
|
+
// Next.js (App Router) — mark the component "use client", then import on mount
|
|
162
|
+
'use client';
|
|
163
|
+
import { useEffect } from 'react';
|
|
164
|
+
|
|
165
|
+
export default function Page() {
|
|
166
|
+
useEffect(() => { import('@machfivetechchicago/machvive-webmcp-ai'); }, []);
|
|
167
|
+
return <machvive-lorum-ipsum>Hello</machvive-lorum-ipsum>;
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
```javascript
|
|
172
|
+
// Nuxt — onMounted only runs in the browser
|
|
173
|
+
onMounted(() => import('@machfivetechchicago/machvive-webmcp-ai'));
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
```javascript
|
|
177
|
+
// SvelteKit — onMount only runs in the browser
|
|
178
|
+
import { onMount } from 'svelte';
|
|
179
|
+
onMount(() => import('@machfivetechchicago/machvive-webmcp-ai'));
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
In Astro, put the import in a `<script>` tag — those are client-side by default —
|
|
183
|
+
rather than in the component's frontmatter.
|
|
184
|
+
|
|
185
|
+
A static top-level `import` will not work in any of these: the module is evaluated
|
|
186
|
+
during the server render, before any browser-only lifecycle hook gets a chance to run.
|
|
187
|
+
Use the dynamic `import()` form shown above.
|
|
188
|
+
|
|
140
189
|
## License
|
|
141
190
|
|
|
142
191
|
[Apache-2.0](LICENSE) © MachFiveTech Chicago
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machfivetechchicago/machvive-webmcp-ai",
|
|
3
|
-
"version": "5.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "5.5.6",
|
|
4
|
+
"description": "I don't want to use your product's agent; I want my agent to be able to use your product.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"WebMCP",
|
|
7
7
|
"MCP",
|