mcp-server-gamenumerics 0.1.3 → 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.
- package/dist/index.js +17 -1
- package/package.json +58 -54
package/dist/index.js
CHANGED
|
@@ -54322,11 +54322,27 @@ function registerSuggestRefsTool(server, session) {
|
|
|
54322
54322
|
);
|
|
54323
54323
|
}
|
|
54324
54324
|
|
|
54325
|
+
// src/version.ts
|
|
54326
|
+
import { readFileSync as readFileSync8 } from "node:fs";
|
|
54327
|
+
import { fileURLToPath } from "node:url";
|
|
54328
|
+
function resolveServerVersion() {
|
|
54329
|
+
try {
|
|
54330
|
+
const pkgPath = fileURLToPath(new URL("../package.json", import.meta.url));
|
|
54331
|
+
const version4 = JSON.parse(readFileSync8(pkgPath, "utf8")).version;
|
|
54332
|
+
return typeof version4 === "string" && version4 ? version4 : "unknown";
|
|
54333
|
+
} catch {
|
|
54334
|
+
return "unknown";
|
|
54335
|
+
}
|
|
54336
|
+
}
|
|
54337
|
+
|
|
54325
54338
|
// src/index.ts
|
|
54326
54339
|
function buildServer() {
|
|
54327
54340
|
const registry2 = buildMcpRegistry();
|
|
54328
54341
|
const session = createSession();
|
|
54329
|
-
const server = new McpServer({
|
|
54342
|
+
const server = new McpServer({
|
|
54343
|
+
name: "mcp-server-gamenumerics",
|
|
54344
|
+
version: resolveServerVersion()
|
|
54345
|
+
});
|
|
54330
54346
|
mapRegistryTools(server, registry2, {
|
|
54331
54347
|
getContext: () => session.getContext(),
|
|
54332
54348
|
guard: () => session.guardMissingWorkspace()
|
package/package.json
CHANGED
|
@@ -1,54 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mcp-server-gamenumerics",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "MCP server for game numerical design & balance auditing —
|
|
5
|
-
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"game-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
},
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "mcp-server-gamenumerics",
|
|
3
|
+
"version": "0.1.5",
|
|
4
|
+
"description": "MCP server for game numerical design & balance auditing — 20 deterministic tools (xlsx table import, growth-curve audit, battle/gacha simulation, power curve) for Claude Code, Cursor, ZCode & any MCP host. 游戏数值设计 MCP server:确定性数值引擎接入任意 MCP 宿主。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"homepage": "https://github.com/26048608982lp-ai/gamenumerics/tree/main/mcp-server#readme",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/26048608982lp-ai/gamenumerics/issues"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/26048608982lp-ai/gamenumerics.git",
|
|
14
|
+
"directory": "mcp-server"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"mcp",
|
|
18
|
+
"model-context-protocol",
|
|
19
|
+
"mcp-server",
|
|
20
|
+
"claude",
|
|
21
|
+
"claude-code",
|
|
22
|
+
"cursor",
|
|
23
|
+
"game-design",
|
|
24
|
+
"game-balance",
|
|
25
|
+
"game-balancing",
|
|
26
|
+
"game-numerics",
|
|
27
|
+
"game-economy",
|
|
28
|
+
"gamedev",
|
|
29
|
+
"roguelike",
|
|
30
|
+
"deckbuilder",
|
|
31
|
+
"balance",
|
|
32
|
+
"spreadsheet",
|
|
33
|
+
"xlsx",
|
|
34
|
+
"数值策划",
|
|
35
|
+
"数值",
|
|
36
|
+
"游戏数值"
|
|
37
|
+
],
|
|
38
|
+
"bin": {
|
|
39
|
+
"gnd-mcp": "dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"README.md",
|
|
44
|
+
"HOST-VERIFICATION.md"
|
|
45
|
+
],
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "node -e \"require('esbuild').buildSync({entryPoints:['src/index.ts'],bundle:true,platform:'node',format:'esm',outfile:'dist/index.js',banner:{js:`#!/usr/bin/env node\\nimport { createRequire } from 'module'; const require = createRequire(import.meta.url);`}})\"",
|
|
48
|
+
"prepublishOnly": "npm run build",
|
|
49
|
+
"check": "tsc --noEmit"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@modelcontextprotocol/server": "^2.0.0",
|
|
53
|
+
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"esbuild": "^0.28.2"
|
|
57
|
+
}
|
|
58
|
+
}
|