@edgegap/mcp 0.15.4 → 0.15.6

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/tools.js CHANGED
@@ -43,6 +43,15 @@ export const ARCHITECTURE_GUIDANCE = 'Dedicated server vs relay — recommend a
43
43
  'netcode is already a listen server and a dedicated server is not an option. "It needs no ' +
44
44
  'server image" is not a reason: edgegap_generate_dockerfile removes most of that work. ' +
45
45
  'If unsure, ask the developer before choosing a relay.';
46
+ /** The instructions' short form of ARCHITECTURE_GUIDANCE (which relay results still carry in
47
+ * full): the edgegap and edgegap-relays skills hold the trade-offs, and the instructions must
48
+ * stay under INSTRUCTIONS_MAX_CHARS. */
49
+ export const ARCHITECTURE_SUMMARY = 'Dedicated server vs relay — recommend a dedicated server by default (edgegap_deploy): the ' +
50
+ 'server owns the game state, so no host advantage, much harder cheating, and the match ' +
51
+ 'survives any player leaving. Relay (edgegap_create_relay_session): NOT a game server; one ' +
52
+ 'player\'s game hosts and owns the state, everyone else gets two hops, and the match ends ' +
53
+ 'when the host quits. Use one only when the developer explicitly wants host/client; "it ' +
54
+ 'needs no server image" is not a reason. If unsure, ask before choosing a relay.';
46
55
  /** Claude Code drops everything after this many characters of server instructions. */
47
56
  export const INSTRUCTIONS_MAX_CHARS = 4096;
48
57
  /**
@@ -73,7 +82,8 @@ export function serverInstructions(mode) {
73
82
  `PlayFab: ${skillUri('edgegap-playfab', 'SKILL.md')}, ` +
74
83
  `Three.js or web game with a Node server: ${skillUri('edgegap-threejs', 'SKILL.md')}, ` +
75
84
  `Manus game: ${skillUri('edgegap-manus', 'SKILL.md')}, ` +
76
- `matchmaking, parties, regions or backfill design: ${skillUri('edgegap-matchmaking', 'SKILL.md')}). ` +
85
+ `matchmaking, parties, regions or backfill design: ${skillUri('edgegap-matchmaking', 'SKILL.md')}, ` +
86
+ `host/client games on Edgegap relays: ${skillUri('edgegap-relays', 'SKILL.md')}). ` +
77
87
  'If your client cannot read MCP resources, call edgegap_get_skill with the name from the URI (e.g. edgegap-unity). ' +
78
88
  'Skills hold the tested workflow, templates and pitfalls; follow them over general knowledge (edgegap_list_skills lists all).\n\n' +
79
89
  'Deployments and relay sessions cost money while running. Stop deployments and delete ' +
@@ -88,7 +98,7 @@ export function serverInstructions(mode) {
88
98
  'for, do not enumerate or modify unrelated applications, and do not probe what it allows. ' +
89
99
  'If the developer declines to provide a token, stop and report which operation needed it; ' +
90
100
  'do not retry.\n\n' +
91
- ARCHITECTURE_GUIDANCE +
101
+ ARCHITECTURE_SUMMARY +
92
102
  '\n\n' +
93
103
  'Golden path for a first dedicated-server deployment:\n' +
94
104
  '1. edgegap_generate_dockerfile (no Dockerfile yet) or edgegap_validate_server_config (existing one)\n' +
@@ -947,7 +957,12 @@ export function registerTools(server, client, config, auth, options = {}) {
947
957
  termination_grace_period_seconds: v.termination_grace_period_seconds,
948
958
  endpoint_storage: v.endpoint_storage || undefined,
949
959
  time_to_deploy_seconds: v.time_to_deploy,
950
- env: v.envs?.map((e) => ({ key: e.key, hidden: e.is_hidden ?? false })),
960
+ // The dashboard's Secret flag can come back as is_secret (the spec's own example) with is_hidden false,
961
+ // and a secret value is replaced by the encrypted placeholder: any of the three means hidden.
962
+ env: v.envs?.map((e) => ({
963
+ key: e.key,
964
+ hidden: Boolean(e.is_hidden || e.is_secret || isEncryptedPlaceholder(e.value)),
965
+ })),
951
966
  ...autoStop(v.max_duration),
952
967
  });
953
968
  }));
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.15.4';
6
+ export const VERSION = '0.15.6';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@edgegap/mcp",
3
3
  "mcpName": "dev.edgegap/mcp",
4
- "version": "0.15.4",
4
+ "version": "0.15.6",
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
6
  "scripts": {
7
7
  "prebuild": "rm -rf dist",
@@ -48,10 +48,10 @@
48
48
  "devDependencies": {
49
49
  "@cloudflare/workers-types": "^5.20260911.1",
50
50
  "@modelcontextprotocol/server": "^2.3.1",
51
- "@posthog/mcp": "0.23.0",
51
+ "@posthog/mcp": "0.25.0",
52
52
  "@types/node": "^26.6.5",
53
- "agents": "^0.30.1",
54
- "posthog-node": "5.57.2",
53
+ "agents": "^0.32.0",
54
+ "posthog-node": "5.60.1",
55
55
  "typescript": "^7.0.2",
56
56
  "wrangler": "^4.151.0"
57
57
  },