@jadchene/mcp-gateway-service 0.11.2 → 0.12.0

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.
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>MCP 配置</title>
7
+ <link rel="icon" type="image/svg+xml" href="/assets/favicon-nJb-mWsM.svg" />
8
+ <script type="module" crossorigin src="/assets/index-DNU4JgNG.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-DprXY6PS.css">
10
+ </head>
11
+ <body>
12
+ <div id="app"></div>
13
+ </body>
14
+ </html>
package/package.json CHANGED
@@ -1,67 +1,74 @@
1
- {
2
- "name": "@jadchene/mcp-gateway-service",
3
- "version": "0.11.2",
4
- "description": "A token-efficient MCP gateway that provides one unified entry point for multiple downstream MCP services.",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "bin": {
8
- "mcp-gateway-service": "dist/index.js"
9
- },
10
- "license": "MIT",
11
- "author": "jadchene",
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/jadchene/mcp-gateway.git"
15
- },
16
- "homepage": "https://github.com/jadchene/mcp-gateway#readme",
17
- "bugs": {
18
- "url": "https://github.com/jadchene/mcp-gateway/issues"
19
- },
20
- "scripts": {
21
- "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
22
- "prebuild": "npm run clean",
23
- "build": "tsc -p tsconfig.build.json",
24
- "dev": "node --experimental-strip-types src/index.ts",
25
- "start": "node dist/index.js",
26
- "pretest": "npm run build",
27
- "test": "node --test --experimental-strip-types test/**/*.test.ts",
28
- "typecheck": "tsc -p tsconfig.json --noEmit",
29
- "verify": "npm run typecheck && npm test",
30
- "version": "node dist/index.js --version",
31
- "prepack": "npm run build",
32
- "prepublishOnly": "npm run build"
33
- },
34
- "files": [
35
- "dist",
36
- "skills",
37
- "config.example.json",
38
- "README.md",
39
- "README_zh.md",
40
- "LICENSE",
41
- "scripts"
42
- ],
43
- "keywords": [
44
- "mcp",
45
- "gateway",
46
- "model context protocol",
47
- "agent",
48
- "token-efficient"
49
- ],
50
- "engines": {
51
- "node": ">=24.0.0"
52
- },
53
- "devDependencies": {
54
- "@types/node": "^24.0.0",
55
- "typescript": "^5.8.0"
56
- },
57
- "dependencies": {
58
- "@modelcontextprotocol/client": "2.0.0",
59
- "@modelcontextprotocol/node": "2.0.0",
60
- "@modelcontextprotocol/server": "2.0.0",
61
- "zod": "4.4.3"
62
- },
63
- "overrides": {
64
- "@hono/node-server": "2.1.0",
65
- "hono": "4.12.34"
66
- }
67
- }
1
+ {
2
+ "name": "@jadchene/mcp-gateway-service",
3
+ "version": "0.12.0",
4
+ "description": "A token-efficient MCP gateway that provides one unified entry point for multiple downstream MCP services.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "mcp-gateway-service": "dist/index.js"
9
+ },
10
+ "license": "MIT",
11
+ "author": "jadchene",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/jadchene/mcp-gateway.git"
15
+ },
16
+ "homepage": "https://github.com/jadchene/mcp-gateway#readme",
17
+ "bugs": {
18
+ "url": "https://github.com/jadchene/mcp-gateway/issues"
19
+ },
20
+ "scripts": {
21
+ "clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
22
+ "prebuild": "npm run clean",
23
+ "build": "tsc -p tsconfig.build.json && vite build --configLoader native --config web/vite.config.mjs",
24
+ "dev": "node --experimental-strip-types src/index.ts",
25
+ "start": "node dist/index.js",
26
+ "pretest": "npm run build",
27
+ "test": "node --test --experimental-strip-types test/**/*.test.ts && npm run test:web",
28
+ "typecheck": "tsc -p tsconfig.json --noEmit",
29
+ "verify": "npm run typecheck && npm test",
30
+ "version": "node dist/index.js --version",
31
+ "prepack": "npm run build",
32
+ "prepublishOnly": "npm run build",
33
+ "build:web": "vite build --configLoader native --config web/vite.config.mjs",
34
+ "test:web": "node --test tests-web/*.test.mjs",
35
+ "verify:web-package": "node scripts/verify-web-package.mjs"
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "skills",
40
+ "config.example.json",
41
+ "README.md",
42
+ "README_zh.md",
43
+ "LICENSE",
44
+ "scripts"
45
+ ],
46
+ "keywords": [
47
+ "mcp",
48
+ "gateway",
49
+ "model context protocol",
50
+ "agent",
51
+ "token-efficient"
52
+ ],
53
+ "engines": {
54
+ "node": ">=24.0.0"
55
+ },
56
+ "devDependencies": {
57
+ "@types/node": "^24.0.0",
58
+ "@vitejs/plugin-vue": "^6.0.11",
59
+ "element-plus": "^2.14.8",
60
+ "typescript": "^5.8.0",
61
+ "vite": "^8.3.8",
62
+ "vue": "^3.5.45"
63
+ },
64
+ "dependencies": {
65
+ "@modelcontextprotocol/client": "2.4.0",
66
+ "@modelcontextprotocol/node": "2.1.2",
67
+ "@modelcontextprotocol/server": "2.4.0",
68
+ "zod": "4.6.7"
69
+ },
70
+ "overrides": {
71
+ "@hono/node-server": "2.1.0",
72
+ "hono": "4.13.14"
73
+ }
74
+ }
@@ -0,0 +1,16 @@
1
+ import assert from 'node:assert/strict';
2
+ import { spawnSync } from 'node:child_process';
3
+ import os from 'node:os';
4
+ import path from 'node:path';
5
+
6
+ // 验证发布清单包含独立运行配置页面所需的全部构建文件。
7
+ const result = spawnSync(process.execPath, [process.env.npm_execpath, 'pack', '--dry-run', '--json', '--ignore-scripts', '--cache', path.join(os.tmpdir(), 'mcp-web-pack-cache')], { encoding: 'utf8' });
8
+ assert.equal(result.status, 0, result.stderr);
9
+ const parsed = JSON.parse(result.stdout);
10
+ const report = Array.isArray(parsed) ? parsed[0] : Object.values(parsed)[0];
11
+ const files = report.files.map(file => file.path);
12
+ for (const file of ['dist/index.js', 'dist/web-config/server.js', 'dist/web-config/options.js', 'dist/web-config/schema.js', 'dist/web-ui/index.html']) assert.ok(files.includes(file), `Missing ${file}`);
13
+ assert.ok(files.some(file => /^dist\/web-ui\/assets\/.*\.js$/.test(file)), 'Missing JavaScript assets');
14
+ assert.ok(files.some(file => /^dist\/web-ui\/assets\/.*\.css$/.test(file)), 'Missing CSS assets');
15
+ assert.ok(!files.some(file => file.includes('preview-token') || file.startsWith('node_modules/')), 'Unexpected local files');
16
+ console.log(`Verified embedded Web resources in ${report.name}: ${files.length} files`);