@appscreenshotstudio/mcp 0.5.4 → 0.5.5
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/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -192,7 +192,7 @@ const chatImagesSchema = z.array(z.object({
|
|
|
192
192
|
// ─── MCP Server ─────────────────────────────────────────────────────────────────
|
|
193
193
|
const server = new McpServer({
|
|
194
194
|
name: 'appscreenshotstudio',
|
|
195
|
-
version: '0.5.
|
|
195
|
+
version: '0.5.5',
|
|
196
196
|
});
|
|
197
197
|
// Tool 1: generate-screenshots
|
|
198
198
|
server.registerTool('generate-screenshots', {
|
|
@@ -438,15 +438,21 @@ Example edit messages:
|
|
|
438
438
|
}
|
|
439
439
|
const data = res.data.data;
|
|
440
440
|
const creditsRemaining = res.data.credits_remaining;
|
|
441
|
+
// A device switch ("make this for iPad") clones the project. All further
|
|
442
|
+
// edits, uploads, and renders must target the NEW project id, not the old one.
|
|
443
|
+
const activeProjectId = data.duplicated_project_id || project_id;
|
|
441
444
|
return {
|
|
442
445
|
content: [{
|
|
443
446
|
type: 'text',
|
|
444
447
|
text: [
|
|
445
448
|
data.message,
|
|
446
449
|
'',
|
|
450
|
+
data.duplicated_project_id
|
|
451
|
+
? `NEW PROJECT CREATED at the target device size: ${data.duplicated_project_id}\nUse this project_id for all further edits, screenshot uploads, and rendering. The original project (${project_id}) is unchanged.`
|
|
452
|
+
: '',
|
|
447
453
|
`Cards: ${data.canvas_state?.cards?.length || 0}`,
|
|
448
454
|
`Credits remaining: ${creditsRemaining}`,
|
|
449
|
-
`Project URL: ${API_BASE}/builder/${
|
|
455
|
+
`Project URL: ${API_BASE}/builder/${activeProjectId}`,
|
|
450
456
|
'',
|
|
451
457
|
data.suggestions?.length
|
|
452
458
|
? `Suggestions: ${data.suggestions.join(', ')}`
|