@edgegap/mcp 0.13.0 → 0.13.1
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/callreport.js +5 -4
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -214,7 +214,7 @@ To keep your API token on your own machine, run the server locally instead. Leav
|
|
|
214
214
|
}
|
|
215
215
|
```
|
|
216
216
|
|
|
217
|
-
Needs Node 18+. Pin a version in production (`@edgegap/mcp@0.13.
|
|
217
|
+
Needs Node 18+. Pin a version in production (`@edgegap/mcp@0.13.1`) rather than floating on latest. Registered in the official MCP registry as `dev.edgegap/mcp`.
|
|
218
218
|
|
|
219
219
|
The local server can also limit what an agent can do. These variables have no effect on the hosted endpoint at `mcp.edgegap.dev`:
|
|
220
220
|
|
package/dist/callreport.js
CHANGED
|
@@ -94,12 +94,13 @@ export function codeForStatus(status, notFound, forbidden, message = '') {
|
|
|
94
94
|
}
|
|
95
95
|
/** The code for a tool's own refusal, read from its wording. */
|
|
96
96
|
export function codeForToolFailure(text) {
|
|
97
|
-
|
|
97
|
+
// Results reach the report with the "[api.edgegap.com]" host label first,
|
|
98
|
+
// so match the message itself, not the start of the whole text.
|
|
99
|
+
const message = text.replace(/^\[[^\]\n]+\]\n?/, '');
|
|
100
|
+
if (/^Refused\b|\brefused\b/im.test(message))
|
|
98
101
|
return 'GUARDRAIL_REFUSED';
|
|
99
|
-
if (/No skill named|is not a file in the/.test(
|
|
102
|
+
if (/No skill named|is not a file in the/.test(message))
|
|
100
103
|
return 'SKILL_NOT_FOUND';
|
|
101
|
-
if (/^Invalid arguments|Input validation error/.test(text))
|
|
102
|
-
return 'VALIDATION_FAILED';
|
|
103
104
|
return 'VALIDATION_FAILED';
|
|
104
105
|
}
|
|
105
106
|
/**
|
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.13.
|
|
4
|
+
"version": "0.13.1",
|
|
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",
|