@vivix-labs/studio-chat-mcp 0.1.8 → 0.1.10
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 +9 -8
- package/dist/chat-ui/index.html +16 -16
- package/dist/server.js +43 -8
- package/dist/setup.js +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ Authorization = "Bearer <route-credential>"
|
|
|
39
39
|
|
|
40
40
|
Keep the credential in the client's private configuration. It authorizes this exact plugin route. The Host derives it from the profile's existing persistent browser key. The saved Host port and route credential survive Host restarts. CLI bearer credentials continue rotating at startup. Start the Host through the Studio CLI before reconnecting a stopped Host.
|
|
41
41
|
|
|
42
|
-
The plugin requires Studio plugin API 0.2.6. It exposes discovery and media reads on the same connection as `run_studio_action`, the app-only `studio_card_action`, and `ui://studio/chat/
|
|
42
|
+
The plugin requires Studio plugin API 0.2.6. It exposes discovery and media reads on the same connection as `run_studio_action`, the app-only `studio_card_action`, and `ui://studio/chat/v12.html`. Its connection PID equals the Studio Host PID. Disabling the plugin removes the route through the normal plugin lifecycle. The current bundled MCP dependency requires an explicit Host restart for code upgrades when the generic reloader reports `restart_required`.
|
|
43
43
|
|
|
44
44
|
## Discover and read through one connection
|
|
45
45
|
|
|
@@ -51,7 +51,7 @@ Pass the returned route to `describe_chat_capability({scope,target,componentId?}
|
|
|
51
51
|
|
|
52
52
|
The resolver delegates `{ref,fileId?,access:"https"}` to the existing backend file-access operation. The file service checks the selected bytes, follows a matching saved origin, reuses a usable stored HTTPS URL, or asks the original API provider for a fresh read ticket by its persisted remote ID and original task identity. Ordinary local reads keep their existing behavior. An unmatched local file is an explicit error; resolving never uploads, generates or substitutes another version. The MCP response contains the fixed ref, file ID, MIME type, HTTPS URL and optional expiry, without the Host path.
|
|
53
53
|
|
|
54
|
-
Tool `content` is a short readable receipt. `structuredContent` contains model-readable creative data and routing. Signed action bindings, the script digest and prepared messages travel in `_meta` for the App. The page
|
|
54
|
+
Tool `content` is a short readable receipt. `structuredContent` contains model-readable creative data and routing. Signed action bindings, the script digest and prepared messages travel in `_meta` for the App. The page reads the current registered renderer for the original versioned component ID through a read-only MCP resource, then verifies the response's component ID and script digest before mounting. Historical props use the current compatible appearance. The saved digest remains available for legacy clients. The page also accepts legacy replies whose public data contains bindings. A tool return proves neither that a client displayed the card nor that a click delivered a continuation; those require separate UI evidence.
|
|
55
55
|
|
|
56
56
|
The adapter's `resourceDomains` configuration declares canonical HTTPS origins for media and other resources. Its default is the Official media CDN, `https://static.vivi-x.ai`. Declare any additional verified source origins explicitly in this adapter's configuration. Discovery returns the active `resourceDomains`; a readable URL alone does not establish that a native host permits the iframe to load it. The component's own `mediaOrigins` further restricts each card. Do not use URL proxies, rehosting or disabled checks to evade a host URL-safety rejection.
|
|
57
57
|
|
|
@@ -110,12 +110,13 @@ server-owned context to this callback. The callback returns `{intent, data}` wit
|
|
|
110
110
|
a nonempty intent and JSON object data. This read-only path invokes no business
|
|
111
111
|
operation and creates no business receipt.
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
`
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
When the client advertises structured model context, the outer MCP App uses
|
|
114
|
+
`updateModelContext` for the exact interaction data, then sends the readable
|
|
115
|
+
request. Clients with messaging but without structured context receive the
|
|
116
|
+
request followed by the complete interaction JSON in the same message.
|
|
117
|
+
The sandbox receives the result status without prepared message metadata.
|
|
117
118
|
|
|
118
119
|
Unsupported or rejected sends retain the draft. Unknown sends retain their
|
|
119
120
|
original request identity and are not automatically resent. The component's
|
|
120
|
-
prompt and target actions remain exclusive per button.
|
|
121
|
-
|
|
121
|
+
prompt and target actions remain exclusive per button. If a client advertises
|
|
122
|
+
structured context but the update fails, the page retains the draft.
|