@vivix-labs/studio-chat-mcp 0.1.1 → 0.1.3

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 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/v4.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`.
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/v6.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,15 +51,40 @@ 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, executable UI assets and prepared messages travel only in `_meta` for the App. 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.
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 loads the registered script through a read-only MCP resource and verifies it against the saved digest before mounting the card. 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
 
58
58
  - [Installation-to-card acceptance](acceptance/README.md)
59
59
  - [Card page and sandbox](chat-ui/README.md)
60
60
 
61
+ ## Discover native action targets
62
+
63
+ Search `list_chat_capabilities({scope,kind:"nativeOperation",query,offset,limit})`.
64
+ The default limit is 20, the maximum is 100, and nextOffset identifies the next page.
65
+ Describe the returned target with kind=nativeOperation to read input/output schemas,
66
+ effects, confirm and contract. This includes operations without a chat declaration.
67
+ Discovery reads metadata without invoking business operations; default component
68
+ discovery does not expand into the whole native catalog.
69
+
70
+ An installed source may provide `dynamicActions(context)`. It resolves native
71
+ bindings from initial input or authenticated binding context. The adapter admits
72
+ those exact same-scope targets through host.operations, signs them with the source
73
+ and retains invokeBound recovery. The resolver is installed server code; browser
74
+ input never supplies a destination or callback. Static dependency rules are unchanged.
75
+
61
76
  ## Declare a chat operation
62
77
 
78
+ The App-only `read_local_media` tool reads a supplied absolute audio/video `path`
79
+ and byte `offset` directly on the local Host. Each response contains at most
80
+ 256 KiB in `_meta["studio/media"]`; binary data does not enter public tool output.
81
+ The component receives an optional `readMedia` callback through the sandbox bridge,
82
+ which accepts only paths declared by the original card projection. Later reads
83
+ carry the initial file identity/size/mtime and reject changes. No preview registry,
84
+ public media endpoint, import or CLI SDK change is involved. Existing HTTPS media
85
+ and action dispatch keep their current routes. Use a matching component package
86
+ and adapter; local paths require the Host to share the caller's filesystem.
87
+
63
88
  A business plugin publishes `extensions: { chat: { component, projectResult, actions } }`
64
89
  on its operation and registers the component in the manifest's `components` field.
65
90
  The adapter routes `(action, input)` to the declared destination. Business plugins