@edgegap/mcp 0.15.8 → 0.15.9
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/README.md +1 -1
- package/dist/tools.js +13 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -213,7 +213,7 @@ To keep your API token on your own machine, run the server locally instead. Leav
|
|
|
213
213
|
}
|
|
214
214
|
```
|
|
215
215
|
|
|
216
|
-
Needs Node 18+. Pin a version in production (`@edgegap/mcp@0.15.
|
|
216
|
+
Needs Node 18+. Pin a version in production (`@edgegap/mcp@0.15.9`) rather than floating on latest. Registered in the official MCP registry as `dev.edgegap/mcp`.
|
|
217
217
|
|
|
218
218
|
The local server can also limit what an agent can do. These variables have no effect on the hosted endpoint at `mcp.edgegap.dev`:
|
|
219
219
|
|
package/dist/tools.js
CHANGED
|
@@ -21,6 +21,17 @@ import { OUTPUT } from './outputs.js';
|
|
|
21
21
|
import { finishReport, codeForStatus } from './callreport.js';
|
|
22
22
|
import { SKILLS_PACK, findSkill, findSkillFile, fileIndex, mimeType, skillUri } from './skills.js';
|
|
23
23
|
import { SKILLS_CLI, SKILL_NAME_RE, compareVersions, latestPack, latestSkillVersions, servedPackStatus, skillsCheckFromEnv, } from './skillsversion.js';
|
|
24
|
+
/**
|
|
25
|
+
* An app version env var as the API stores it. The dashboard's Secret toggle writes is_secret, which
|
|
26
|
+
* encrypts the value; the API accepts the spec's is_hidden but does not store it (live API,
|
|
27
|
+
* 2026-11-03: a version created and patched with is_hidden: true read back is_secret: false with
|
|
28
|
+
* the value in clear, and the same variable toggled Secret read back is_secret: true, encrypted).
|
|
29
|
+
* Both are sent for secret-looking names.
|
|
30
|
+
*/
|
|
31
|
+
function versionEnv(e) {
|
|
32
|
+
const secret = looksSecret(e.key);
|
|
33
|
+
return { key: e.key, value: e.value, is_hidden: secret, is_secret: secret };
|
|
34
|
+
}
|
|
24
35
|
/**
|
|
25
36
|
* The one definition of "dedicated server vs relay" this server gives agents.
|
|
26
37
|
* Used in the server instructions, the relay tool description, and every relay
|
|
@@ -1102,7 +1113,7 @@ export function registerTools(server, client, config, auth, options = {}) {
|
|
|
1102
1113
|
to_check: p.to_check ?? true,
|
|
1103
1114
|
tls_upgrade: p.tls_upgrade ?? false,
|
|
1104
1115
|
})),
|
|
1105
|
-
envs: args.env?.map(
|
|
1116
|
+
envs: args.env?.map(versionEnv),
|
|
1106
1117
|
};
|
|
1107
1118
|
if (args.dry_run) {
|
|
1108
1119
|
const dry = client.dryRun();
|
|
@@ -1288,7 +1299,7 @@ export function registerTools(server, client, config, auth, options = {}) {
|
|
|
1288
1299
|
to_check: p.to_check ?? true,
|
|
1289
1300
|
tls_upgrade: p.tls_upgrade ?? false,
|
|
1290
1301
|
})),
|
|
1291
|
-
envs: args.env?.map(
|
|
1302
|
+
envs: args.env?.map(versionEnv),
|
|
1292
1303
|
};
|
|
1293
1304
|
for (const k of Object.keys(body))
|
|
1294
1305
|
if (body[k] === undefined)
|
package/dist/version.js
CHANGED
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
|
+
"version": "0.15.9",
|
|
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",
|