plyo-mcp 0.1.0 → 0.2.1
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 +9 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -115,7 +115,7 @@ async function pushBranch(branch) {
|
|
|
115
115
|
function text(s) {
|
|
116
116
|
return { content: [{ type: "text", text: s }] };
|
|
117
117
|
}
|
|
118
|
-
const server = new McpServer({ name: "plyo", version: "0.1
|
|
118
|
+
const server = new McpServer({ name: "plyo", version: "0.2.1" });
|
|
119
119
|
server.tool("list_projects", "List the user's Plyo projects (name, slug, live URL).", {}, async () => {
|
|
120
120
|
const data = await api("/v1/projects");
|
|
121
121
|
if (!data.projects.length)
|
|
@@ -138,12 +138,18 @@ server.tool("save_checkpoint", "Save the current state of the project as a check
|
|
|
138
138
|
note: z
|
|
139
139
|
.string()
|
|
140
140
|
.describe("One plain-English sentence describing what changed, written for a non-technical user, e.g. 'Added a pricing page with three plans'"),
|
|
141
|
-
|
|
141
|
+
intent: z
|
|
142
|
+
.string()
|
|
143
|
+
.max(500)
|
|
144
|
+
.optional()
|
|
145
|
+
.describe("One sentence summarizing what the user actually asked for, in their own words, e.g. 'Make the pricing page feel more premium and add a yearly toggle'. Always pass this — it becomes the project's memory of why changes were made."),
|
|
146
|
+
}, async ({ note, intent }) => {
|
|
142
147
|
const link = await requireLink();
|
|
143
148
|
await ensureRemote(link.slug);
|
|
144
149
|
await git(["add", "-A"]);
|
|
145
150
|
try {
|
|
146
|
-
|
|
151
|
+
const message = intent ? `${note}\n\nPlyo-Intent: ${intent}` : note;
|
|
152
|
+
await git(["commit", "-m", message]);
|
|
147
153
|
}
|
|
148
154
|
catch (err) {
|
|
149
155
|
const msg = String(err);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plyo-mcp",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "MCP server for Plyo
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "MCP server for Plyo \u2014 Undo and Publish for everything your AI builds. Save checkpoints, publish, restore.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"plyo-mcp": "./dist/index.js"
|