@vivix-labs/studio-chat-mcp 0.1.15 → 0.1.16
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 +122 -0
- package/dist/server.js +6 -5
- package/dist/setup.js +3 -4
- package/docs/mcp-instructions.md +46 -0
- package/package.json +3 -2
- package/studio-plugin.json +0 -3
- package/skills/vivix-studio-chat/SKILL.md +0 -117
- package/skills/vivix-studio-chat/agents/openai.yaml +0 -4
package/README.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Studio Chat MCP adapter
|
|
2
|
+
|
|
3
|
+
Studio loads this user-scoped server plugin into its Host process. The plugin owns MCP tools, chat declarations, card action routing, projection and the bundled MCP Apps page. Codex connects to the plugin's authenticated Streamable HTTP route.
|
|
4
|
+
|
|
5
|
+
## Install and enable
|
|
6
|
+
|
|
7
|
+
The public Studio suite installer installs this Host plugin and its card provider, enables them in user scope, and registers the CLI `stdio` bridge (`vivix-studio agent mcp`) in the agent configuration. Existing server entries and personal Skills are preserved. CLI and Workbench operations are available immediately after installation. The current agent host decides when it exposes MCP tools and interactive cards. Use the unified `vivix-studio` Skill's `chat-interactions.md` for session handling and card routing.
|
|
8
|
+
|
|
9
|
+
Use the paired Studio CLI with SDK API 0.2.6, Node.js 22.12+ and pnpm 10.33.0. Build a standard Studio plugin directory from this repository.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pnpm --filter @vivix-labs/studio-chat-mcp package "$PWD/artifacts/studio-chat-host"
|
|
13
|
+
vivix-studio plugin install "$PWD/artifacts/studio-chat-host/studio-chat-mcp"
|
|
14
|
+
vivix-studio plugin enable @vivix-labs/studio-chat-mcp --scope user --instance studio-chat --trust --allow-access host.operations
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Open a project and enable its business plugins normally. Discover their ready operations with `vivix-studio plugin describe`. Use ordinary `plugin call <adapter-instance> run --scope user --input <file> --json` or the MCP tools to open a card. The adapter also registers an `action` operation for subsequent clicks.
|
|
18
|
+
|
|
19
|
+
The package exports its chat protocol types from `@vivix-labs/studio-chat-mcp/shared`. Chat components import these types from the adapter package. The CLI SDK does not export chat types.
|
|
20
|
+
|
|
21
|
+
## Connect an MCP client
|
|
22
|
+
|
|
23
|
+
For any MCP client that speaks `stdio` (Codex, Claude Code, Cursor, Antigravity, etc.), configure the CLI's built-in bridge command:
|
|
24
|
+
|
|
25
|
+
```toml
|
|
26
|
+
[mcp_servers.vivix-studio-chat]
|
|
27
|
+
command = "vivix-studio"
|
|
28
|
+
args = ["agent", "mcp"]
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The bridge automatically starts the shared local Host if it is stopped, discovers the active `studio-chat` route credential, and forwards JSON-RPC messages to the Host over loopback HTTP — surviving Host restarts, port changes, and reboots without updating client configuration.
|
|
32
|
+
|
|
33
|
+
To inspect the underlying Host endpoint directly (e.g., for testing):
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
printf '{}\n' > connection-input.json
|
|
37
|
+
vivix-studio plugin call studio-chat connection --scope user --input connection-input.json --json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
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/v13.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`.
|
|
41
|
+
|
|
42
|
+
## Discover and read through one connection
|
|
43
|
+
|
|
44
|
+
`list_chat_capabilities({})` defaults to `{kind:"user",id:"user"}` and returns ready reusable components, declared chat operations and read-only media queries with their actual `scope` and `target`. Component entries come from the enabled provider's existing `components.list`; the adapter does not keep a second component registry. Generic interactions need a user-scoped component provider and do not create a business project.
|
|
45
|
+
|
|
46
|
+
Pass the returned route to `describe_chat_capability({scope,target,componentId?})`. A component description contains its props, result, selected render input and examples, with local schema references intact. For saved project operations, use the selected project's explicit scope. The Host still enforces grants, readiness, bindings and receipts. Legacy `projectId` input remains supported; supplying both it and `scope` is rejected.
|
|
47
|
+
|
|
48
|
+
`query_studio_media({scope,target,input})` invokes only a discovered media query with read effects and no confirmation. Read its input schema first. Returned records, task output refs and file selections provide the immutable `ref: {storeId,objectId,versionId}` for `resolve_chat_media({scope,ref,fileId?})`.
|
|
49
|
+
|
|
50
|
+
`run_studio_action`, `studio_card_action` and `query_studio_media` treat `input` as a JSON object. A JSON-encoded object string from an MCP client is parsed once and normalized; arrays, scalars, `null` and strings that do not encode an object are rejected before any Host operation runs. Every discovered operation currently declares an object input schema, so this is the adapter contract rather than a per-operation setting.
|
|
51
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
58
|
+
- [Installation-to-card acceptance](acceptance/README.md)
|
|
59
|
+
- [Card page and sandbox](chat-ui/README.md)
|
|
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
|
+
|
|
76
|
+
## Declare a chat operation
|
|
77
|
+
|
|
78
|
+
The App-only `read_local_media` tool reads a supplied absolute image, audio or 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
|
+
Local images support PNG, JPEG and WebP through the same chunk and Blob transport.
|
|
82
|
+
The component receives an optional `readMedia` callback through the sandbox bridge,
|
|
83
|
+
which accepts only paths declared by the original card projection. Later reads
|
|
84
|
+
carry the initial file identity/size/mtime and reject changes. No preview registry,
|
|
85
|
+
public media endpoint, import or CLI SDK change is involved. Existing HTTPS media
|
|
86
|
+
and action dispatch keep their current routes. Use a matching component package
|
|
87
|
+
and adapter; local paths require the Host to share the caller's filesystem.
|
|
88
|
+
|
|
89
|
+
A business plugin publishes `extensions: { chat: { component, projectResult, actions } }`
|
|
90
|
+
on its operation and registers the component in the manifest's `components` field.
|
|
91
|
+
The adapter routes `(action, input)` to the declared destination. Business plugins
|
|
92
|
+
own object identity, validation, input mapping, and writes. See the
|
|
93
|
+
[component contract](chat-ui/README.md) for Props and Host receipt recovery.
|
|
94
|
+
|
|
95
|
+
Card projectors may return optional server-only `bindingContext` JSON. The adapter
|
|
96
|
+
puts it inside the existing signed Host operation bindings, strips the top-level
|
|
97
|
+
field from the public projection, and supplies the authenticated snapshot as
|
|
98
|
+
`ChatActionContext.bindingContext` and `ChatProjectionContext.bindingContext`.
|
|
99
|
+
Browser action input never supplies that context. Updated projections can replace
|
|
100
|
+
it; unchanged legacy cards omit it and keep context-free bindings. The Host keeps
|
|
101
|
+
its existing size limit, scope/caller authentication, generation validation and
|
|
102
|
+
receipt-before-preparation replay. Context is signed for integrity, not encrypted;
|
|
103
|
+
do not put secrets in it.
|
|
104
|
+
|
|
105
|
+
## Send a follow-up message
|
|
106
|
+
|
|
107
|
+
A declared action can provide `prepareMessage(request, context)` instead of a
|
|
108
|
+
target. The adapter authenticates the original source binding and passes its
|
|
109
|
+
server-owned context to this callback. The callback returns `{intent, data}` with
|
|
110
|
+
a nonempty intent and JSON object data. This read-only path invokes no business
|
|
111
|
+
operation and creates no business receipt.
|
|
112
|
+
|
|
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.
|
|
118
|
+
|
|
119
|
+
Unsupported or rejected sends retain the draft. Unknown sends retain their
|
|
120
|
+
original request identity and are not automatically resent. The component's
|
|
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.
|
package/dist/server.js
CHANGED
|
@@ -29429,7 +29429,7 @@ data:
|
|
|
29429
29429
|
// package.json
|
|
29430
29430
|
var package_default = {
|
|
29431
29431
|
name: "@vivix-labs/studio-chat-mcp",
|
|
29432
|
-
version: "0.1.
|
|
29432
|
+
version: "0.1.16",
|
|
29433
29433
|
type: "module",
|
|
29434
29434
|
engines: {
|
|
29435
29435
|
node: ">=22.12.0"
|
|
@@ -29457,7 +29457,8 @@ var package_default = {
|
|
|
29457
29457
|
files: [
|
|
29458
29458
|
"dist",
|
|
29459
29459
|
"studio-plugin.json",
|
|
29460
|
-
"
|
|
29460
|
+
"README.md",
|
|
29461
|
+
"docs",
|
|
29461
29462
|
"LICENSE"
|
|
29462
29463
|
],
|
|
29463
29464
|
exports: {
|
|
@@ -38548,7 +38549,7 @@ function createChatServer(options2) {
|
|
|
38548
38549
|
const server = new McpServer(
|
|
38549
38550
|
{ name: "vivix-studio-chat", version: package_default.version },
|
|
38550
38551
|
{
|
|
38551
|
-
instructions: "Use this server for Vivix Studio interactive cards.
|
|
38552
|
+
instructions: "Use this server for Vivix Studio interactive cards. Whenever a turn involves creative choices, drafts, storyboards, character concepts, comparisons, media previews, or project progress, proactively use a matching native card alongside any project workflow rather than replying in plain text alone. Follow the unified vivix-studio Skill and its references/chat-interactions.md, references/habits-and-proposals.md, and references/project-and-workbench.md references for presentation choice, user collaboration preferences, session handling, media routing, custom visualization, and host handoff. Match card titles, descriptions, and button labels to the user\u2019s conversation language unless asked otherwise. Call list_chat_capabilities before selecting a card, then describe_chat_capability and run_studio_action with the returned scope, target, schemas, and input. General cards use user scope. Use explicit project scope for project operations and queries. Preserve requestKey and original arguments for recovery and never automatically resubmit an uncertain write. A successful tool result means the Host accepted the request, not that the client rendered the card or opened a Workbench panel."
|
|
38552
38553
|
}
|
|
38553
38554
|
);
|
|
38554
38555
|
server.registerTool(
|
|
@@ -38682,7 +38683,7 @@ function createChatServer(options2) {
|
|
|
38682
38683
|
"describe_chat_capability",
|
|
38683
38684
|
{
|
|
38684
38685
|
title: "Read a chat contract",
|
|
38685
|
-
description: "Read exact schemas for a discovered route. Pass componentId for a reusable component, or kind=nativeOperation for an operation to bind using target.mode=native. Native operation schemas do not imply a chat view or execution permission.
|
|
38686
|
+
description: "Read exact schemas for a discovered route. Pass componentId for a reusable component, or kind=nativeOperation for an operation to bind using target.mode=native. Native operation schemas do not imply a chat view or execution permission. Match interface text to the user\u2019s conversation language unless requested otherwise. Preserve original creative content.",
|
|
38686
38687
|
inputSchema: external_exports.object({
|
|
38687
38688
|
scope: scopeSchema.default(userScope),
|
|
38688
38689
|
target,
|
|
@@ -38721,7 +38722,7 @@ function createChatServer(options2) {
|
|
|
38721
38722
|
"run_studio_action",
|
|
38722
38723
|
{
|
|
38723
38724
|
title: "Run Studio action",
|
|
38724
|
-
description: "Open a component or declared project card using the scope, target and contract returned by this connection discovery tools. `input` is a JSON object; a JSON-encoded object string is accepted and normalized.
|
|
38725
|
+
description: "Open a component or declared project card using the scope, target and contract returned by this connection discovery tools. `input` is a JSON object; a JSON-encoded object string is accepted and normalized. Match interface headings, field labels, group headings and buttons to the user\u2019s conversation language unless requested otherwise. Preserve story names, story text and user input in their original language. User-scope components work without a business project. Project business operations require the selected project scope. Legacy projectId calls remain supported. Preserve requestKey and original input for uncertain recovery.",
|
|
38725
38726
|
inputSchema: runInput,
|
|
38726
38727
|
_meta: { ui: { resourceUri: chatResourceUri } }
|
|
38727
38728
|
},
|
package/dist/setup.js
CHANGED
|
@@ -961,10 +961,9 @@ async function enable(id, scope, options = [], additions) {
|
|
|
961
961
|
await enable("studio-chat", user, ["--allow-access", "host.operations"]);
|
|
962
962
|
await enable("chat-components", user);
|
|
963
963
|
await enable("ui-system", user);
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
const scope = ["--project", drama];
|
|
964
|
+
for (const project of cliCall("project", "list").projects) {
|
|
965
|
+
if (!project.available) continue;
|
|
966
|
+
const scope = ["--project", project.id];
|
|
968
967
|
const author = cliCall("plugin", "list", ...scope).instances.find((i) => i.id === "authoring");
|
|
969
968
|
if (author?.package === packages.authoring) {
|
|
970
969
|
await enable("authoring", scope);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Studio Chat MCP contract
|
|
2
|
+
|
|
3
|
+
Use the unified `vivix-studio` Skill's `chat-interactions.md` for capability
|
|
4
|
+
discovery, presentation choice, defaults, session handling and continuation.
|
|
5
|
+
This document only records the transport details owned by the MCP adapter.
|
|
6
|
+
|
|
7
|
+
## Discovery and routing
|
|
8
|
+
|
|
9
|
+
- Call `list_chat_capabilities` on this connection before selecting a card.
|
|
10
|
+
- Call `describe_chat_capability` with the returned component or native-operation
|
|
11
|
+
target before constructing input.
|
|
12
|
+
- Call `run_studio_action` with the returned `scope`, `target`, schemas and input.
|
|
13
|
+
- General components use user scope. Project media queries and declared project
|
|
14
|
+
cards use the explicit project scope returned by discovery.
|
|
15
|
+
- Native-operation actions use `target.mode: "native"` and the declared
|
|
16
|
+
`inputBindings`. They do not require a receiver card or a second business API.
|
|
17
|
+
|
|
18
|
+
The adapter projects the installed component through
|
|
19
|
+
`ui://studio/chat/v1.html`. Card buttons return through the app-only
|
|
20
|
+
`studio_card_action` route. The adapter authenticates the original source,
|
|
21
|
+
component, action and target before dispatching a Host operation.
|
|
22
|
+
|
|
23
|
+
## Media transport
|
|
24
|
+
|
|
25
|
+
Query saved media through the discovered `query_studio_media` route and resolve
|
|
26
|
+
the exact returned reference with `resolve_chat_media`. The file service owns
|
|
27
|
+
origin lookup and ticket refresh. Check the returned `resourceDomains` before
|
|
28
|
+
using an HTTPS preview URL.
|
|
29
|
+
|
|
30
|
+
When the component schema supports local media, pass an absolute local Host
|
|
31
|
+
`path` for PNG, JPEG, WebP, audio or video instead of `src`, and pass exactly
|
|
32
|
+
one of them. Video `poster` values still require HTTPS. Local reads use the
|
|
33
|
+
app-only `read_local_media` channel and load the complete file before display.
|
|
34
|
+
They do not upload, import or generate content.
|
|
35
|
+
|
|
36
|
+
## Request recovery
|
|
37
|
+
|
|
38
|
+
Choose one `requestKey` before a mutation and preserve the original input,
|
|
39
|
+
scope, source target and action binding through retries. An uncertain or
|
|
40
|
+
`submission_unknown` result must be recovered through the original operation and
|
|
41
|
+
key before any new submission. A changed payload under the same key is a
|
|
42
|
+
conflict. A new key represents a new action.
|
|
43
|
+
|
|
44
|
+
The Host owns access, approval, receipts and leases. A successful adapter result
|
|
45
|
+
means the Host accepted the request. It does not prove that the client rendered
|
|
46
|
+
the card or that a business write, export or generation completed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivix-labs/studio-chat-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.12.0"
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"dist",
|
|
30
30
|
"studio-plugin.json",
|
|
31
|
-
"
|
|
31
|
+
"README.md",
|
|
32
|
+
"docs",
|
|
32
33
|
"LICENSE"
|
|
33
34
|
],
|
|
34
35
|
"exports": {
|
package/studio-plugin.json
CHANGED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: vivix-studio-chat
|
|
3
|
-
description: Discover and open a native chat card when it helps with the current inspection, comparison, choice or edit. General interactions need no business project. Saved Studio operations use the chosen project scope. Remote creation uses vivix-studio-mcp.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Chat interactions and local Studio cards
|
|
7
|
-
|
|
8
|
-
## Discover a general interaction
|
|
9
|
-
|
|
10
|
-
Use the installed `chat-components` Skill's “Choose the presentation for this
|
|
11
|
-
turn” rule for native cards and custom UI. Discover a card when it helps with the
|
|
12
|
-
user's current task, including a preview that needs no follow-up question.
|
|
13
|
-
|
|
14
|
-
Default card headings, field labels, group headings, buttons, placeholders, and
|
|
15
|
-
instructions to English, even when the conversation is Chinese. Follow an explicit
|
|
16
|
-
request for another interface language. Preserve story names and text, character
|
|
17
|
-
names, saved object names, and user input in their original language. A story
|
|
18
|
-
choice's `label` is content; its group `label` is interface text. For example, use
|
|
19
|
-
`Choose a story` with `《我们先约会》` and its original Chinese synopsis.
|
|
20
|
-
|
|
21
|
-
Use this connection's `list_chat_capabilities` (check active session
|
|
22
|
-
capabilities when starting or continuing a Studio project), then
|
|
23
|
-
`describe_chat_capability` for the selected route and component ID. Reuse the
|
|
24
|
-
returned `scope`, `target`, schemas and examples. General conversation components
|
|
25
|
-
default to user scope and do not require creating a business project. The MCP
|
|
26
|
-
entry point reads the enabled provider's live catalog. Choose from that catalog.
|
|
27
|
-
|
|
28
|
-
For a reusable card button calling one native operation, explicitly search this
|
|
29
|
-
connection with `kind:"nativeOperation"` and describe the returned target with the
|
|
30
|
-
same kind. Read its input schema, effects and confirm. Configure target.mode=native
|
|
31
|
-
and inputBindings as described in the installed chat-components interaction guide.
|
|
32
|
-
The native operation needs no chat view or receiver envelope. Keep the original
|
|
33
|
-
scope and let the Host handle execution, approvals and request-key recovery.
|
|
34
|
-
|
|
35
|
-
Prepare props from the user's actual topic, draft or candidates. Open the
|
|
36
|
-
returned route with `run_studio_action`, using its actual scope and input.
|
|
37
|
-
Scope each prompt action to the clicked operation and use the latest interaction
|
|
38
|
-
data. Choose any subsequent presentation from the user's intent for that turn.
|
|
39
|
-
Local edits and sent prompts
|
|
40
|
-
do not prove a saved business change.
|
|
41
|
-
|
|
42
|
-
Read saved media through a discovered `query_studio_media` route after describing
|
|
43
|
-
its native input schema. Take the exact `ref` from a returned task, asset or user
|
|
44
|
-
selection. Call `resolve_chat_media` with that scope, ref and optional file ID to
|
|
45
|
-
get an HTTPS read URL. The file service owns origin lookup and ticket refresh.
|
|
46
|
-
Check the connection's returned `resourceDomains` before previewing media. A
|
|
47
|
-
readable URL does not prove the native host permits it. Report a URL-safety
|
|
48
|
-
rejection separately from expiry or decoding; do not proxy, rehost or disable
|
|
49
|
-
checks to evade that rejection. A changed UI resource must be tested in a
|
|
50
|
-
connection that actually loads the new resource version.
|
|
51
|
-
Use existing valid URLs directly. For PNG/JPEG/WebP images, audio, or video
|
|
52
|
-
already available on the local MCP Host, supply its absolute `path` instead of
|
|
53
|
-
`src` when the component's schema supports it; use exactly one of the two.
|
|
54
|
-
Video `poster` strings still require HTTPS. The card reads `path + offset`
|
|
55
|
-
through the App-only `read_local_media` channel and loads the complete file
|
|
56
|
-
before display or playback. It needs no preview ID,
|
|
57
|
-
import or public URL. A remote MCP Host cannot read a path on the user's computer.
|
|
58
|
-
This whole-file preview does not provide progressive long-video playback.
|
|
59
|
-
|
|
60
|
-
If the interactive card tools are not active after this conversation has just
|
|
61
|
-
installed Studio or changed the MCP configuration, proactively tell the user
|
|
62
|
-
in natural language (without mentioning internal protocol/server names or
|
|
63
|
-
hardcoding a client name) that interactive cards require starting a new
|
|
64
|
-
conversation, while continuing via the CLI and Studio Workbench. On a later
|
|
65
|
-
conversation, if the tools are still absent, report that the current host has
|
|
66
|
-
not exposed interactive cards and continue via the CLI and Studio Workbench
|
|
67
|
-
without asking for another conversation.
|
|
68
|
-
|
|
69
|
-
When `list_chat_capabilities`, `describe_chat_capability`, or
|
|
70
|
-
`run_studio_action` has succeeded in the current conversation, treat cards as
|
|
71
|
-
active and do not suggest starting a new conversation for this task.
|
|
72
|
-
|
|
73
|
-
If discovery returns no ready matching capability, report that status and retain
|
|
74
|
-
the draft. For an unmet general presentation need, follow the installed
|
|
75
|
-
`chat-components` custom-visualization route and `vivix-studio-ui` guidance when
|
|
76
|
-
the host supports it. Scope or transport failures are failures to report, not proof
|
|
77
|
-
that another CLI profile has no components. A specialized media workflow keeps
|
|
78
|
-
its generation steps and uses these interactions at confirmation and review.
|
|
79
|
-
|
|
80
|
-
Print a short readable receipt when reporting tool results. Preserve structured
|
|
81
|
-
results for the client; do not dump the entire MCP envelope, UI source or bindings
|
|
82
|
-
as conversation text. A ready receipt alone does not prove visible rendering.
|
|
83
|
-
|
|
84
|
-
## Open a Studio project operation card
|
|
85
|
-
|
|
86
|
-
Use the `vivix-studio-chat` local MCP connection with an opened Studio project.
|
|
87
|
-
Use the same-connection discovery tools with the chosen project scope to read
|
|
88
|
-
the enabled operation, native schema and `chat` declaration. CLI `plugin describe`
|
|
89
|
-
is an alternative only when it addresses that same Host configuration.
|
|
90
|
-
Keep the user's chosen project explicit. A plugin being installed does not mean
|
|
91
|
-
its instance is enabled or that every operation supports a chat card.
|
|
92
|
-
|
|
93
|
-
Call `run_studio_action` with the discovered project `scope`, the declared source
|
|
94
|
-
`target: {instanceId, operationId}`, and `input`. For a mutation, choose one
|
|
95
|
-
`requestKey` before the first call and preserve it with the original parameters.
|
|
96
|
-
Host confirmation and permission rules apply to the operation. If the Host
|
|
97
|
-
requires human approval, present its approval instructions to the user.
|
|
98
|
-
|
|
99
|
-
The installed plugin supplies the card component; the MCP server supplies the
|
|
100
|
-
generic page at `ui://studio/chat/v1.html`. Card buttons call the app-only
|
|
101
|
-
`studio_card_action`; this installed adapter resolves the allowed destination from the source
|
|
102
|
-
operation. Use the card's original project, source target, and Host action binding throughout. Keep business fields inside `input`.
|
|
103
|
-
Business handlers are not individually exposed as MCP tools.
|
|
104
|
-
|
|
105
|
-
Report the text and business result even when the current chat cannot render the card.
|
|
106
|
-
Reopen an existing object using a declared read operation and its saved identity. A
|
|
107
|
-
transport error or `submission_unknown` leaves acceptance uncertain: retain the
|
|
108
|
-
original binding, key, and parameters, and recover or replay that same request only
|
|
109
|
-
when requested. A changed payload under one key is a conflict; a new key denotes
|
|
110
|
-
a new action. After a revision conflict, refresh and let the user review the new
|
|
111
|
-
state before another explicit write with a new key.
|
|
112
|
-
|
|
113
|
-
This adapter is a user-scoped Studio server plugin running in the Host process.
|
|
114
|
-
The MCP client connects to its authenticated HTTP route. If the Host is stopped,
|
|
115
|
-
open the project with the CLI. Use the package README for installation and client
|
|
116
|
-
connection configuration. Keep local credentials out of tool inputs and chat
|
|
117
|
-
messages. Host operation dispatch owns access, approval, receipts and leases.
|