plopino 0.1.6 → 0.1.7

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 CHANGED
@@ -36,7 +36,7 @@ const INSTRUCTIONS =
36
36
  + 'page is kept for a month; with a token it stays up permanently and can be updated in '
37
37
  + 'place while the link stays the same.';
38
38
 
39
- const server = new McpServer({ name: 'plopino', version: '0.1.6' }, { instructions: INSTRUCTIONS });
39
+ const server = new McpServer({ name: 'plopino', version: '0.1.7' }, { instructions: INSTRUCTIONS });
40
40
 
41
41
  // 工具描述是给**模型**看的,不是给人看的——要写清楚「什么时候该用」,
42
42
  // 否则模型不知道有这个能力,集成了也不会被调用。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plopino",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "mcpName": "io.github.plopino/plopino-mcp",
5
5
  "description": "MCP server: publish an HTML page, a document, a file, or a folder to Plopino and get a public URL — documents render as readable pages.",
6
6
  "type": "module",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.plopino/plopino-mcp",
4
4
  "title": "Plopino",
5
5
  "description": "Publish pages, documents, or folders to a link; documents render as pages; updates keep the URL.",
6
- "version": "0.1.6",
6
+ "version": "0.1.7",
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.6",
16
+ "version": "0.1.7",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  }
package/upload.js CHANGED
@@ -22,7 +22,13 @@ export async function publishFiles(files, { baseUrl = DEFAULT_BASE, token = '',
22
22
  : '/api/boards/upload';
23
23
  const res = await fetchImpl(`${baseUrl.replace(/\/+$/, '')}${route}`, {
24
24
  method: 'POST',
25
- headers: token ? { Authorization: `Bearer ${token}` } : undefined,
25
+ headers: {
26
+ // 自报家门:服务端按这个 UA 给 Umami 的 upload 事件打 source=mcp 标签,
27
+ // MCP 渠道的效果才和网页上传分得开。node 的默认 UA 是 "node",认不出
28
+ // 也名不正——不能把别人的 Node 程序误标成我们。
29
+ 'User-Agent': 'plopino-mcp',
30
+ ...(token ? { Authorization: `Bearer ${token}` } : {}),
31
+ },
26
32
  body: form,
27
33
  signal,
28
34
  });