@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 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.0`) rather than floating on latest. Registered in the official MCP registry as `dev.edgegap/mcp`.
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
 
@@ -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
- if (/^Refused|refused/.test(text))
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(text))
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
@@ -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.13.0';
6
+ export const VERSION = '0.13.1';
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.0",
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",