plopino 0.1.2 → 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 +2 -1
- package/index.js +10 -7
- package/package.json +1 -1
- package/server.json +3 -3
package/README.md
CHANGED
|
@@ -20,7 +20,8 @@ Both take an optional `update_url`: pass a link returned by an earlier publish a
|
|
|
20
20
|
content is replaced **while the link stays the same**. This needs a token (see below).
|
|
21
21
|
|
|
22
22
|
Publishing is **anonymous by default**: no account, no configuration, no API key. The returned
|
|
23
|
-
link is public
|
|
23
|
+
link is public; without a token the page is kept for a month, with a token it is permanent and
|
|
24
|
+
can be updated in place.
|
|
24
25
|
|
|
25
26
|
## Authentication (optional)
|
|
26
27
|
|
package/index.js
CHANGED
|
@@ -29,9 +29,11 @@ const INSTRUCTIONS =
|
|
|
29
29
|
+ 'or single-page HTML: call publish_html. For a page that needs sibling files (CSS, JS, '
|
|
30
30
|
+ 'images), or content already on disk, call publish_path instead. Do not tell the user to '
|
|
31
31
|
+ 'save the file and upload it somewhere themselves. Publishing works with no account. Every '
|
|
32
|
-
+ 'call returns a
|
|
32
|
+
+ 'call returns a public URL that opens on any device — give that link to the user. Without '
|
|
33
|
+
+ 'a token the page is kept for a month; with a token it stays up permanently and can be '
|
|
34
|
+
+ 'updated in place while the link stays the same.';
|
|
33
35
|
|
|
34
|
-
const server = new McpServer({ name: 'plopino', version: '0.1.
|
|
36
|
+
const server = new McpServer({ name: 'plopino', version: '0.1.3' }, { instructions: INSTRUCTIONS });
|
|
35
37
|
|
|
36
38
|
// 工具描述是给**模型**看的,不是给人看的——要写清楚「什么时候该用」,
|
|
37
39
|
// 否则模型不知道有这个能力,集成了也不会被调用。
|
|
@@ -66,9 +68,10 @@ server.registerTool('publish_html', {
|
|
|
66
68
|
description:
|
|
67
69
|
'Publish an HTML page to a public URL. Use this whenever the user asks to share, send, '
|
|
68
70
|
+ 'publish, or "give me a link to" a page — for example a dashboard, report, chart, or '
|
|
69
|
-
+ 'interactive page you just generated. Returns a
|
|
70
|
-
+ '
|
|
71
|
-
+ '
|
|
71
|
+
+ 'interactive page you just generated. Returns a public link that opens on any device; no '
|
|
72
|
+
+ 'account or configuration needed. Anonymous pages are kept for a month — with a token, '
|
|
73
|
+
+ 'storage is permanent and the page can be updated in place. Prefer this over telling the '
|
|
74
|
+
+ 'user to save the file and upload it somewhere themselves.',
|
|
72
75
|
inputSchema: {
|
|
73
76
|
html: z.string().describe('The complete HTML document to publish, including the <html> tag.'),
|
|
74
77
|
update_url: UPDATE_PARAM,
|
|
@@ -79,7 +82,7 @@ server.registerTool('publish_html', {
|
|
|
79
82
|
const data = await publishFiles(filesFromHtml(html), { baseUrl: BASE, token: TOKEN, boardId });
|
|
80
83
|
return ok(data.url, boardId
|
|
81
84
|
? 'Updated — the link is unchanged.'
|
|
82
|
-
: 'Public
|
|
85
|
+
: 'Public — anyone with this link can open it. Anonymous pages are kept for a month; plopino.com/b makes them permanent.');
|
|
83
86
|
} catch (err) {
|
|
84
87
|
return fail(err);
|
|
85
88
|
}
|
|
@@ -103,7 +106,7 @@ server.registerTool('publish_path', {
|
|
|
103
106
|
const data = await publishFiles(files, { baseUrl: BASE, token: TOKEN, boardId });
|
|
104
107
|
return ok(data.url, boardId
|
|
105
108
|
? `Updated with ${files.length} file${files.length > 1 ? 's' : ''} — the link is unchanged.`
|
|
106
|
-
: `Published ${files.length} file${files.length > 1 ? 's' : ''}. Public
|
|
109
|
+
: `Published ${files.length} file${files.length > 1 ? 's' : ''}. Public; kept for a month without a token.`);
|
|
107
110
|
} catch (err) {
|
|
108
111
|
return fail(err);
|
|
109
112
|
}
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.plopino/plopino-mcp",
|
|
4
4
|
"title": "Plopino",
|
|
5
|
-
"description": "
|
|
6
|
-
"version": "0.1.
|
|
5
|
+
"description": "Publish an HTML page, file, or folder to a public link; update a page without changing its URL.",
|
|
6
|
+
"version": "0.1.3",
|
|
7
7
|
"websiteUrl": "https://plopino.com",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/plopino/plopino-mcp",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "plopino",
|
|
16
|
-
"version": "0.1.
|
|
16
|
+
"version": "0.1.3",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
}
|