@edgegap/mcp 0.5.3 → 0.5.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/skills.js CHANGED
@@ -41,6 +41,8 @@ export function mimeType(path) {
41
41
  return 'text/x-c++src';
42
42
  if (path.endsWith('.xml'))
43
43
  return 'application/xml';
44
+ if (/\.(ts|mjs)$/.test(path))
45
+ return 'text/javascript';
44
46
  return 'text/plain';
45
47
  }
46
48
  /** The skill's other files, so an agent knows what it can fetch next. */
package/dist/tools.js CHANGED
@@ -53,10 +53,12 @@ export function serverInstructions(mode) {
53
53
  return (`Before acting, read ${skillUri('edgegap', 'SKILL.md')} ` +
54
54
  `(Unity: ${skillUri('edgegap-unity', 'SKILL.md')}, ` +
55
55
  `Unity with FishNet: ${skillUri('edgegap-fishnet', 'SKILL.md')}, ` +
56
- `Unreal Engine: ${skillUri('edgegap-unreal', 'SKILL.md')}). ` +
56
+ `Unity with PurrNet: ${skillUri('edgegap-purrnet', 'SKILL.md')}, ` +
57
+ `Unreal Engine: ${skillUri('edgegap-unreal', 'SKILL.md')}, ` +
58
+ `browser game built with Manus: ${skillUri('edgegap-manus', 'SKILL.md')}). ` +
57
59
  'If your client cannot read MCP resources, call edgegap_get_skill with the skill name ' +
58
- '(edgegap, edgegap-unity, edgegap-fishnet or edgegap-unreal) instead. These Edgegap skills ' +
59
- 'hold the tested workflow, templates and known pitfalls; follow them over general knowledge. ' +
60
+ '(edgegap, edgegap-unity, edgegap-fishnet, edgegap-purrnet, edgegap-unreal or edgegap-manus) instead. ' +
61
+ 'These Edgegap skills hold the tested workflow, templates and known pitfalls; follow them over general knowledge. ' +
60
62
  'edgegap_list_skills lists all of them.\n\n' +
61
63
  'Host multiplayer games on Edgegap. The recommended setup is an authoritative dedicated ' +
62
64
  'server per match; relays exist for games built host-client.\n\n' +
@@ -1474,8 +1476,8 @@ function registerSkills(server, tool) {
1474
1476
  'game online on Edgegap, with templates (Dockerfiles, matchmaker configs, Unity C# and ' +
1475
1477
  'Unreal C++ drop-ins) and known pitfalls. Before working on a game project, load the ' +
1476
1478
  'matching skill with edgegap_get_skill: edgegap-fishnet for Unity with FishNet, ' +
1477
- 'edgegap-unity for other Unity projects, edgegap-unreal for Unreal Engine, edgegap for ' +
1478
- 'any other engine or platform questions; it routes to the rest. No ' +
1479
+ 'edgegap-purrnet for Unity with PurrNet, edgegap-unity for other Unity projects, edgegap-unreal for Unreal Engine, ' +
1480
+ 'edgegap-manus for a browser game built with Manus, edgegap for any other engine or platform questions; it routes to the rest. No ' +
1479
1481
  'API call.',
1480
1482
  inputSchema: {},
1481
1483
  annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: false },
@@ -1494,11 +1496,15 @@ function registerSkills(server, tool) {
1494
1496
  title: 'Load an Edgegap agent skill',
1495
1497
  description: 'Load one Edgegap agent skill: its SKILL.md (the workflow to follow) by default, or one of ' +
1496
1498
  'its reference documents or templates with file. Load the matching skill before acting on ' +
1497
- 'a game project — edgegap-fishnet for Unity with FishNet, edgegap-unity for other Unity ' +
1498
- 'projects, edgegap-unreal for Unreal Engine, edgegap ' +
1499
- 'otherwise — and fetch the references and templates it points to as you reach them. No API call.',
1499
+ 'a game project — edgegap-fishnet for Unity with FishNet, edgegap-purrnet for Unity with ' +
1500
+ 'PurrNet, edgegap-unity for other Unity projects, edgegap-unreal for Unreal Engine, ' +
1501
+ 'edgegap-manus for a browser game built with Manus, edgegap otherwise — and fetch the references and templates it points to as you reach them. No API call.',
1500
1502
  inputSchema: {
1501
- skill: z.enum(names).describe('Skill name, from edgegap_list_skills.'),
1503
+ // A string, not an enum: clients cache tool schemas, and a cached enum from an older
1504
+ // release would refuse a skill the router already points to. The handler checks the name.
1505
+ skill: z
1506
+ .string()
1507
+ .describe(`Skill name, from edgegap_list_skills: ${names.join(', ')}.`),
1502
1508
  file: z
1503
1509
  .string()
1504
1510
  .optional()
@@ -1508,7 +1514,7 @@ function registerSkills(server, tool) {
1508
1514
  }, async ({ skill: name, file }) => {
1509
1515
  const skill = findSkill(name);
1510
1516
  if (!skill)
1511
- return fail(`No skill named "${name}". Call edgegap_list_skills.`);
1517
+ return fail(`No skill named "${name}". The skills are: ${names.join(', ')}.`);
1512
1518
  const found = findSkillFile(skill, file);
1513
1519
  if (!found) {
1514
1520
  return fail(`"${file}" is not a file in the ${skill.name} skill. Its files are:\n` +
package/dist/version.js CHANGED
@@ -3,4 +3,4 @@
3
3
  * call, and by edgegap_context. Keep in step with package.json and server.json;
4
4
  * test/package.mjs fails the build when they disagree.
5
5
  */
6
- export const VERSION = '0.5.3';
6
+ export const VERSION = '0.5.5';
package/package.json CHANGED
@@ -1,67 +1,67 @@
1
- {
2
- "name": "@edgegap/mcp",
3
- "mcpName": "dev.edgegap/mcp",
4
- "version": "0.5.3",
5
- "description": "Check, push, and deploy game servers on Edgegap from your coding agent, with relays for P2P games. Runs locally; your API token never leaves your machine.",
6
- "scripts": {
7
- "prebuild": "rm -rf dist",
8
- "build": "tsc && chmod +x dist/index.js dist/http.js",
9
- "typecheck": "tsc --noEmit",
10
- "typecheck:worker": "tsc -p worker/tsconfig.json --noEmit",
11
- "test": "node test/package.mjs && node test/skills.mjs && node test/smoke.mjs && node test/guards.mjs && node test/elicit.mjs && node test/newtools.mjs && node test/http.mjs",
12
- "start:http": "node dist/index.js --http",
13
- "worker:dev": "wrangler dev --config worker/wrangler.jsonc --local --port 8787",
14
- "worker:check": "wrangler deploy --config worker/wrangler.jsonc --dry-run --outdir=.wrangler/dryrun",
15
- "worker:deploy": "wrangler deploy --config worker/wrangler.jsonc",
16
- "prepublishOnly": "npm run build",
17
- "sync-skills": "node scripts/sync-skills.mjs",
18
- "check-skills": "node scripts/sync-skills.mjs --check",
19
- "test:worker": "node test/worker-telemetry.mjs"
20
- },
21
- "keywords": [
22
- "mcp",
23
- "edgegap",
24
- "game-server",
25
- "multiplayer",
26
- "unity",
27
- "unreal"
28
- ],
29
- "author": "Mathieu Duperre",
30
- "license": "Apache-2.0",
31
- "repository": {
32
- "type": "git",
33
- "url": "git+https://github.com/edgegap/edgegap-mcp.git"
34
- },
35
- "homepage": "https://github.com/edgegap/edgegap-mcp#readme",
36
- "bugs": {
37
- "url": "https://github.com/edgegap/edgegap-mcp/issues"
38
- },
39
- "dependencies": {
40
- "@modelcontextprotocol/sdk": "^1.30.0",
41
- "zod": "^4.6.2"
42
- },
43
- "devDependencies": {
44
- "@cloudflare/workers-types": "^5.20260911.1",
45
- "@modelcontextprotocol/server": "^2.0.0",
46
- "@posthog/mcp": "0.22.3",
47
- "@types/node": "^22.20.2",
48
- "agents": "^0.23.0",
49
- "posthog-node": "5.56.1",
50
- "typescript": "^7.0.2",
51
- "wrangler": "^4.131.1"
52
- },
53
- "type": "module",
54
- "bin": {
55
- "edgegap-mcp": "dist/index.js"
56
- },
57
- "files": [
58
- "dist",
59
- "README.md"
60
- ],
61
- "engines": {
62
- "node": ">=18"
63
- },
64
- "publishConfig": {
65
- "access": "public"
66
- }
67
- }
1
+ {
2
+ "name": "@edgegap/mcp",
3
+ "mcpName": "dev.edgegap/mcp",
4
+ "version": "0.5.5",
5
+ "description": "Check, push, and deploy game servers on Edgegap from your coding agent, with relays for P2P games. Runs locally; your API token never leaves your machine.",
6
+ "scripts": {
7
+ "prebuild": "rm -rf dist",
8
+ "build": "tsc && chmod +x dist/index.js dist/http.js",
9
+ "typecheck": "tsc --noEmit",
10
+ "typecheck:worker": "tsc -p worker/tsconfig.json --noEmit",
11
+ "test": "node test/package.mjs && node test/skills.mjs && node test/smoke.mjs && node test/guards.mjs && node test/elicit.mjs && node test/newtools.mjs && node test/http.mjs",
12
+ "start:http": "node dist/index.js --http",
13
+ "worker:dev": "wrangler dev --config worker/wrangler.jsonc --local --port 8787",
14
+ "worker:check": "wrangler deploy --config worker/wrangler.jsonc --dry-run --outdir=.wrangler/dryrun",
15
+ "worker:deploy": "wrangler deploy --config worker/wrangler.jsonc",
16
+ "prepublishOnly": "npm run build",
17
+ "sync-skills": "node scripts/sync-skills.mjs",
18
+ "check-skills": "node scripts/sync-skills.mjs --check",
19
+ "test:worker": "node test/worker-telemetry.mjs"
20
+ },
21
+ "keywords": [
22
+ "mcp",
23
+ "edgegap",
24
+ "game-server",
25
+ "multiplayer",
26
+ "unity",
27
+ "unreal"
28
+ ],
29
+ "author": "Mathieu Duperre",
30
+ "license": "Apache-2.0",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/edgegap/edgegap-mcp.git"
34
+ },
35
+ "homepage": "https://github.com/edgegap/edgegap-mcp#readme",
36
+ "bugs": {
37
+ "url": "https://github.com/edgegap/edgegap-mcp/issues"
38
+ },
39
+ "dependencies": {
40
+ "@modelcontextprotocol/sdk": "^1.32.1",
41
+ "zod": "^4.6.2"
42
+ },
43
+ "devDependencies": {
44
+ "@cloudflare/workers-types": "^5.20260911.1",
45
+ "@modelcontextprotocol/server": "^2.3.1",
46
+ "@posthog/mcp": "0.22.3",
47
+ "@types/node": "^22.20.2",
48
+ "agents": "^0.28.1",
49
+ "posthog-node": "5.56.1",
50
+ "typescript": "^7.0.2",
51
+ "wrangler": "^4.151.0"
52
+ },
53
+ "type": "module",
54
+ "bin": {
55
+ "edgegap-mcp": "dist/index.js"
56
+ },
57
+ "files": [
58
+ "dist",
59
+ "README.md"
60
+ ],
61
+ "engines": {
62
+ "node": ">=18"
63
+ },
64
+ "publishConfig": {
65
+ "access": "public"
66
+ }
67
+ }