plopino 0.1.4 → 0.1.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/index.js +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/upload.js +10 -1
package/index.js
CHANGED
|
@@ -33,7 +33,7 @@ const INSTRUCTIONS =
|
|
|
33
33
|
+ 'a token the page is kept for a month; with a token it stays up permanently and can be '
|
|
34
34
|
+ 'updated in place while the link stays the same.';
|
|
35
35
|
|
|
36
|
-
const server = new McpServer({ name: 'plopino', version: '0.1.
|
|
36
|
+
const server = new McpServer({ name: 'plopino', version: '0.1.5' }, { instructions: INSTRUCTIONS });
|
|
37
37
|
|
|
38
38
|
// 工具描述是给**模型**看的,不是给人看的——要写清楚「什么时候该用」,
|
|
39
39
|
// 否则模型不知道有这个能力,集成了也不会被调用。
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.plopino/plopino-mcp",
|
|
4
4
|
"title": "Plopino",
|
|
5
5
|
"description": "Publish an HTML page, file, or folder to a public link; update a page without changing its URL.",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.5",
|
|
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.5",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
}
|
package/upload.js
CHANGED
|
@@ -32,7 +32,16 @@ export async function publishFiles(files, { baseUrl = DEFAULT_BASE, token = '',
|
|
|
32
32
|
// 新建时链接在顶层,更新时在 board 里——统一取一次,调用方不必知道这个差别
|
|
33
33
|
const url = data?.url || data?.board?.url;
|
|
34
34
|
if (!res.ok || !url) {
|
|
35
|
-
|
|
35
|
+
let msg = data?.error || `Upload failed (HTTP ${res.status})`;
|
|
36
|
+
// 429 的服务端原文只说「次数用完」,没说出路。匿名配额按 IP 计,而托管部署
|
|
37
|
+
// (Glama 一键部署那类)所有用户共享同一个出口 IP——撞上时 agent 需要的是
|
|
38
|
+
// 自助路径而不是「明天再试」。这段追加是给模型读的:它照着就能带用户走完。
|
|
39
|
+
if (res.status === 429) {
|
|
40
|
+
msg += ' Anonymous publishing is rate-limited per IP, and hosted deployments share one IP. '
|
|
41
|
+
+ 'Fix: create a token at plopino.com/b and set PLOPINO_TOKEN — that removes the rate '
|
|
42
|
+
+ 'limit and also enables private boards and in-place updates.';
|
|
43
|
+
}
|
|
44
|
+
throw new Error(msg);
|
|
36
45
|
}
|
|
37
46
|
return { ...data, url };
|
|
38
47
|
}
|