mountly-mcp 0.0.0
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 +36 -0
- package/dist/bridge/iframe-entry.js +18704 -0
- package/dist/bridge/index.d.ts +49 -0
- package/dist/bridge/index.js +12 -0
- package/dist/bridge/index.js.map +1 -0
- package/dist/build/index.d.ts +81 -0
- package/dist/build/index.js +143 -0
- package/dist/build/index.js.map +1 -0
- package/dist/chunk-A64ZILAS.js +24 -0
- package/dist/chunk-A64ZILAS.js.map +1 -0
- package/dist/chunk-BUGGLMNA.js +132 -0
- package/dist/chunk-BUGGLMNA.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/types-B9JAWm4W.d.ts +62 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# mountly-mcp
|
|
2
|
+
|
|
3
|
+
Bridge runtime and build helpers for publishing mountly widgets as MCP Apps `ui://` resources.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `runBridge` from `mountly-mcp` (iframe runtime lifecycle)
|
|
8
|
+
- `buildMcpResource` from `mountly-mcp/build` (emit `html` + `.meta.json` sidecar)
|
|
9
|
+
- `createMcpHost` and channel helpers from `mountly-mcp/bridge`
|
|
10
|
+
|
|
11
|
+
## Build a resource
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { buildMcpResource } from "mountly-mcp/build";
|
|
15
|
+
|
|
16
|
+
await buildMcpResource({
|
|
17
|
+
entry: "./dist/widget.js",
|
|
18
|
+
uri: "ui://example/hello",
|
|
19
|
+
name: "hello-widget",
|
|
20
|
+
output: "./dist/hello.html",
|
|
21
|
+
awaitToolResult: true,
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This writes:
|
|
26
|
+
|
|
27
|
+
- `./dist/hello.html`
|
|
28
|
+
- `./dist/hello.html.meta.json`
|
|
29
|
+
|
|
30
|
+
Use these with `mountly-mcp-server`.
|
|
31
|
+
|
|
32
|
+
## See also
|
|
33
|
+
|
|
34
|
+
- `docs/how-to-test.md`
|
|
35
|
+
- `examples/mcp-app-demo/README.md`
|
|
36
|
+
|