@pandanpc/mcp-server 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/index.js +3 -2
- package/install.js +6 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* bin
|
|
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
|
|
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:
|
|
3
|
+
* postinstall: download the pandanpc-mcp binary matching the current platform
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
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}
|
|
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
|
-
//
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandanpc/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "PandaNpc MCP Server — Claude Code and MCP clients integration for PandaNote",
|
|
5
5
|
"keywords": ["mcp", "pandanpc", "claude", "notes", "panda-note"],
|
|
6
6
|
"homepage": "https://pandanpc.com",
|