@scenar/mcp-server 0.4.0 → 0.5.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/package.json +2 -2
- package/skill/SKILL.md +5 -6
- package/skill/reference.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scenar/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Model Context Protocol server for Scenar — lets AI editors scan, author, narrate, pack, serve, and publish scenario tours.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"types": "./src/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
28
|
-
"@scenar/cli": "0.
|
|
28
|
+
"@scenar/cli": "0.5.0",
|
|
29
29
|
"zod": "^3.23.8"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/skill/SKILL.md
CHANGED
|
@@ -59,7 +59,7 @@ Both paths produce the same artifact: a **scenario directory**.
|
|
|
59
59
|
|
|
60
60
|
```
|
|
61
61
|
my-tour/
|
|
62
|
-
├── steps.ts # the timeline (data + timing +
|
|
62
|
+
├── steps.ts # the timeline (data + timing + narration + interactions)
|
|
63
63
|
├── index.tsx # renderStep(data, stepIndex) → ReactNode
|
|
64
64
|
└── narration/ # generated by `scenar narrate` (do not hand-write)
|
|
65
65
|
```
|
|
@@ -78,7 +78,6 @@ export interface StepData { url: string; screen: "login" | "dashboard"; }
|
|
|
78
78
|
export const steps: ScenarioStep<StepData>[] = [
|
|
79
79
|
{
|
|
80
80
|
delayMs: 0, // dwell before reveal; first step is 0
|
|
81
|
-
caption: "Sign in to Acme Cloud", // short label under the player
|
|
82
81
|
narration: "Start by signing in to your workspace.", // TTS script (build-time)
|
|
83
82
|
data: { url: "app.acme.cloud/login", screen: "login" },
|
|
84
83
|
interactions: [ // optional timed actions (see below)
|
|
@@ -90,7 +89,7 @@ export const steps: ScenarioStep<StepData>[] = [
|
|
|
90
89
|
];
|
|
91
90
|
```
|
|
92
91
|
|
|
93
|
-
Fields: `delayMs` (required), `data` (required), `
|
|
92
|
+
Fields: `delayMs` (required), `data` (required), `narration?`,
|
|
94
93
|
`interactions?`. Keep one idea per step.
|
|
95
94
|
|
|
96
95
|
### index.tsx — the render function
|
|
@@ -180,14 +179,14 @@ CSS-drawn UI; import raster assets normally (Vite hashes them at pack time).
|
|
|
180
179
|
|
|
181
180
|
```
|
|
182
181
|
- [ ] Path A: scenar_install, then wire the tour's .scenar/providers.tsx (provider + mock data)
|
|
183
|
-
- [ ] Write steps.ts (timeline,
|
|
182
|
+
- [ ] Write steps.ts (timeline, narration, interactions)
|
|
184
183
|
- [ ] Write index.tsx (renderStep with shells + data-cursor-target hooks)
|
|
185
184
|
- [ ] scenar_narrate to synthesize audio
|
|
186
185
|
- [ ] scenar_pack to bundle
|
|
187
|
-
- [ ] scenar_serve to preview, iterate on timing/
|
|
186
|
+
- [ ] scenar_serve to preview, iterate on timing/narration
|
|
188
187
|
- [ ] scenar_publish for a public URL (or scenar_render for an MP4)
|
|
189
188
|
```
|
|
190
189
|
|
|
191
190
|
Author for quality: realistic copy, sensible pacing (2–3s dwell per step),
|
|
192
|
-
|
|
191
|
+
narration that reads as a story, and interactions that mirror what a real user
|
|
193
192
|
would do.
|
package/skill/reference.md
CHANGED
|
@@ -89,10 +89,10 @@ export default createScenario({
|
|
|
89
89
|
viewport: { width: 896, height: 480 },
|
|
90
90
|
views: { login: LoginScreen, dashboard: Dashboard },
|
|
91
91
|
steps: [
|
|
92
|
-
{ view: "login", delayMs: 0,
|
|
92
|
+
{ view: "login", delayMs: 0,
|
|
93
93
|
narrationText: "Sign in to your workspace.",
|
|
94
94
|
props: { email: "jordan@acme.cloud" } }, // typed to LoginScreen's props
|
|
95
|
-
{ view: "dashboard", delayMs: 2400,
|
|
95
|
+
{ view: "dashboard", delayMs: 2400,
|
|
96
96
|
props: { userName: "Jordan" } },
|
|
97
97
|
],
|
|
98
98
|
});
|