@querypie/mcp 2026.2.5 → 2026.3.1

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/binary.cjs ADDED
@@ -0,0 +1,39 @@
1
+ // 플랫폼에 맞는 Go 바이너리 경로를 해석한다.
2
+ "use strict";
3
+
4
+ const path = require("path");
5
+ const fs = require("fs");
6
+
7
+ const platforms = require("./platforms.json");
8
+
9
+ const PLATFORMS = {};
10
+ for (const p of platforms) {
11
+ PLATFORMS[`${p.os}-${p.cpu}`] = p.npm;
12
+ }
13
+
14
+ function resolveBinaryPackage(platform, arch) {
15
+ const key = `${platform}-${arch}`;
16
+ const pkg = PLATFORMS[key];
17
+ if (!pkg) {
18
+ throw new Error(
19
+ `Unsupported platform: ${key}. Supported: ${Object.keys(PLATFORMS).join(", ")}`,
20
+ );
21
+ }
22
+ return pkg;
23
+ }
24
+
25
+ function resolveBinaryPath(platform, arch) {
26
+ const pkg = resolveBinaryPackage(platform, arch);
27
+ const binName = platform === "win32" ? "mcp.exe" : "mcp";
28
+ const binPath = path.join(
29
+ path.dirname(require.resolve(`${pkg}/package.json`)),
30
+ "bin",
31
+ binName,
32
+ );
33
+ if (!fs.existsSync(binPath)) {
34
+ throw new Error(`Binary not found: ${binPath}. Try reinstalling the package.`);
35
+ }
36
+ return binPath;
37
+ }
38
+
39
+ module.exports = { resolveBinaryPackage, resolveBinaryPath, PLATFORMS };
package/main.cjs ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+ // Go 바이너리를 실행하는 npm wrapper entrypoint.
3
+ "use strict";
4
+
5
+ const { spawn } = require("child_process");
6
+ const { resolveBinaryPath } = require("./binary.cjs");
7
+
8
+ const bin = resolveBinaryPath(process.platform, process.arch);
9
+ const child = spawn(bin, process.argv.slice(2), {
10
+ stdio: "inherit",
11
+ env: process.env,
12
+ });
13
+
14
+ child.on("error", (err) => {
15
+ console.error(`Failed to start mcp: ${err.message}`);
16
+ process.exit(1);
17
+ });
18
+
19
+ child.on("exit", (code) => {
20
+ process.exit(code ?? 1);
21
+ });
package/package.json CHANGED
@@ -1,87 +1,35 @@
1
1
  {
2
- "version": "2026.2.5",
2
+ "version": "2026.3.1",
3
3
  "name": "@querypie/mcp",
4
4
  "description": "QueryPie MCP CLI tool",
5
5
  "author": "QueryPie",
6
6
  "license": "UNLICENSED",
7
- "type": "module",
8
- "main": "dist/index.cjs",
9
7
  "bin": {
10
- "mcp": "dist/index.cjs"
8
+ "mcp": "main.cjs"
11
9
  },
12
- "devDependencies": {
13
- "@logdna/tail-file": "^4.0.2",
14
- "@modelcontextprotocol/sdk": "^1.11.2",
15
- "@rollup/plugin-commonjs": "^28.0.3",
16
- "@rollup/plugin-json": "^6.1.0",
17
- "@rollup/plugin-node-resolve": "^16.0.1",
18
- "@types/blessed": "^0.1.25",
19
- "@types/cli-spinners": "^1.3.3",
20
- "@types/deep-equal": "^1.0.4",
21
- "@types/express": "^5.0.3",
22
- "@types/jest": "^29.5.14",
23
- "@types/node": "^22.14.0",
24
- "@types/promise-timeout": "^1.3.3",
25
- "@types/rsocket-core": "^0.0.11",
26
- "@types/rsocket-flowable": "^0.0.8",
27
- "@types/rsocket-types": "^0.0.6",
28
- "@types/rsocket-websocket-client": "^0.0.7",
29
- "@types/ws": "^8.18.1",
30
- "@types/yargs": "^17.0.33",
31
- "chalk": "^5.4.1",
32
- "chokidar": "^4.0.3",
33
- "cli-spinners": "^3.2.0",
34
- "date-fns": "^4.1.0",
35
- "deep-equal": "^2.2.3",
36
- "diff": "^8.0.2",
37
- "dotenv": "^16.5.0",
38
- "express": "^5.1.0",
39
- "javascript-obfuscator": "^4.1.1",
40
- "jest": "^29.7.0",
41
- "jest-mock-server": "^0.1.0",
42
- "minimatch": "^10.0.3",
43
- "node-machine-id": "^1.1.12",
44
- "open": "^10.2.0",
45
- "pretty-bytes": "^7.0.0",
46
- "promise-timeout": "^1.3.0",
47
- "rimraf": "^6.0.1",
48
- "rollup": "^4.40.1",
49
- "rollup-plugin-dotenv": "^0.5.1",
50
- "rollup-plugin-esbuild": "^6.2.1",
51
- "rollup-plugin-tsconfig-paths": "^1.5.2",
52
- "rsocket-core": "0.0.29-alpha.0",
53
- "rsocket-flowable": "0.0.29-alpha.0",
54
- "rsocket-websocket-client": "0.0.29-alpha.0",
55
- "source-map-support": "^0.5.21",
56
- "systeminformation": "^5.27.1",
57
- "ts-deferred": "^1.0.4",
58
- "ts-jest": "^29.3.4",
59
- "ts-node": "^10.9.2",
60
- "tslib": "^2.8.1",
61
- "typed-emitter": "^2.1.0",
62
- "ws": "^8.18.2",
63
- "@querypie/spec": "0.0.0"
10
+ "files": [
11
+ "main.cjs",
12
+ "binary.cjs",
13
+ "platforms.json"
14
+ ],
15
+ "scripts": {
16
+ "clean": "node -e \"const fs=require('node:fs'); fs.rmSync('dist',{recursive:true,force:true}); fs.rmSync('src/bin',{recursive:true,force:true});\"",
17
+ "build": "make -C src build",
18
+ "dev": "node ../../scripts/cli-dev.cjs",
19
+ "generate": "make -C src generate",
20
+ "test": "pnpm run test:wrapper && pnpm run test:go",
21
+ "test:go": "make -C src test",
22
+ "test:wrapper": "pnpm dlx tsx --test scripts/publish-lib.test.ts && node --test binary.test.cjs"
64
23
  },
65
- "dependencies": {
66
- "blessed": "^0.1.81",
67
- "pino": "^9.6.0",
68
- "pino-pretty": "^13.0.0",
69
- "pino-roll": "^3.1.0",
70
- "pkce-challenge": "^5.0.0",
71
- "yargs": "^17.7.2",
72
- "zod": "^3.24.4"
24
+ "optionalDependencies": {
25
+ "@querypie/mcp-darwin-x64": "2026.3.1",
26
+ "@querypie/mcp-darwin-arm64": "2026.3.1",
27
+ "@querypie/mcp-linux-x64": "2026.3.1",
28
+ "@querypie/mcp-linux-arm64": "2026.3.1",
29
+ "@querypie/mcp-win32-x64": "2026.3.1",
30
+ "@querypie/mcp-win32-arm64": "2026.3.1"
73
31
  },
74
32
  "metadata": {
75
- "hash": "088b11145e2a4b4769eff5dbb68d27160cbb45d8"
76
- },
77
- "scripts": {
78
- "clean": "pnpm exec rimraf dist",
79
- "build": "rollup -c --configPlugin esbuild",
80
- "dev": "node .",
81
- "lint": "eslint .",
82
- "lint:fix": "eslint . --fix",
83
- "generate:api": "node scripts/oas.js",
84
- "generate:rpc": "ts-node scripts/oas-rpc.ts",
85
- "test": "jest"
33
+ "contentHash": "836ecba30baa6ca7470590c3d7a9ffb53cf02f323925bfd501611365d3676038"
86
34
  }
87
- }
35
+ }
package/platforms.json ADDED
@@ -0,0 +1,8 @@
1
+ [
2
+ { "npm": "@querypie/mcp-darwin-x64", "goos": "darwin", "goarch": "amd64", "os": "darwin", "cpu": "x64" },
3
+ { "npm": "@querypie/mcp-darwin-arm64", "goos": "darwin", "goarch": "arm64", "os": "darwin", "cpu": "arm64" },
4
+ { "npm": "@querypie/mcp-linux-x64", "goos": "linux", "goarch": "amd64", "os": "linux", "cpu": "x64" },
5
+ { "npm": "@querypie/mcp-linux-arm64", "goos": "linux", "goarch": "arm64", "os": "linux", "cpu": "arm64" },
6
+ { "npm": "@querypie/mcp-win32-x64", "goos": "windows", "goarch": "amd64", "os": "win32", "cpu": "x64" },
7
+ { "npm": "@querypie/mcp-win32-arm64", "goos": "windows", "goarch": "arm64", "os": "win32", "cpu": "arm64" }
8
+ ]