@pandanpc/mcp-server 0.1.2 → 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.
Files changed (3) hide show
  1. package/index.js +3 -2
  2. package/install.js +6 -6
  3. package/package.json +8 -2
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * bin 入口:spawn 对应平台的 pandanpc-mcp 二进制,转发所有参数和 stdio
3
+ * bin entry: spawn the platform-specific pandanpc-mcp binary,
4
+ * forwarding all arguments and stdio streams.
4
5
  */
5
6
 
6
7
  const path = require('path')
@@ -12,7 +13,7 @@ const binPath = path.join(__dirname, 'bin', binName)
12
13
 
13
14
  if (!fs.existsSync(binPath)) {
14
15
  console.error(`[pandanpc-mcp] binary not found at ${binPath}`)
15
- console.error(`[pandanpc-mcp] try reinstall: npm install -g @pandanpc/mcp-server`)
16
+ console.error(`[pandanpc-mcp] try reinstalling: npm install -g @pandanpc/mcp-server`)
16
17
  process.exit(1)
17
18
  }
18
19
 
package/install.js CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * postinstall: 根据平台下载对应 pandanpc-mcp 二进制到 bin/
3
+ * postinstall: download the pandanpc-mcp binary matching the current platform
4
4
  *
5
- * 下载源:https://cos.pandanpc.com/mcp-server/v<version>/pandanpc-mcp-<platform>
6
- * 校验:SHA256SUMS
5
+ * Source: https://cos.pandanpc.com/mcp-server/v<version>/pandanpc-mcp-<platform>
6
+ * Integrity: verified against SHA256SUMS
7
7
  */
8
8
 
9
9
  const fs = require('fs')
@@ -86,14 +86,14 @@ async function main() {
86
86
  if (!fs.existsSync(binDir)) fs.mkdirSync(binDir, { recursive: true })
87
87
  const localBin = path.join(binDir, process.platform === 'win32' ? 'pandanpc-mcp.exe' : 'pandanpc-mcp')
88
88
 
89
- // 如果二进制已存在且有效(开发环境手动拷贝),跳过下载
89
+ // Skip download if binary already exists (e.g. manually placed for development)
90
90
  if (fs.existsSync(localBin) && fs.statSync(localBin).size > 0) {
91
91
  console.log(`[pandanpc-mcp] binary already present at ${localBin}, skipping download`)
92
92
  return
93
93
  }
94
94
 
95
95
  const url = `${BASE_URL}/${name}`
96
- console.log(`[pandanpc-mcp] downloading ${url} ${localBin}`)
96
+ console.log(`[pandanpc-mcp] downloading ${url} -> ${localBin}`)
97
97
 
98
98
  try {
99
99
  await download(url, localBin)
@@ -103,7 +103,7 @@ async function main() {
103
103
  process.exit(1)
104
104
  }
105
105
 
106
- // 校验 SHA256
106
+ // Verify SHA256 checksum
107
107
  try {
108
108
  const sumsText = await fetchText(`${BASE_URL}/SHA256SUMS`)
109
109
  const line = sumsText.split('\n').find((l) => l.includes(name))
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "@pandanpc/mcp-server",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "description": "PandaNpc MCP Server — Claude Code and MCP clients integration for PandaNote",
5
- "keywords": ["mcp", "pandanpc", "claude", "notes", "panda-note"],
5
+ "keywords": [
6
+ "mcp",
7
+ "pandanpc",
8
+ "claude",
9
+ "notes",
10
+ "panda-note"
11
+ ],
6
12
  "homepage": "https://pandanpc.com",
7
13
  "license": "MIT",
8
14
  "author": "PandaNpc <support@pandanpc.com>",