@ateam-ai/mcp 0.1.12 → 0.1.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/api.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ateam-ai/mcp",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "mcpName": "io.github.ariekogan/ateam-mcp",
5
5
  "description": "A-Team MCP Server — build, validate, and deploy multi-agent solutions from any AI environment",
6
6
  "type": "module",
package/src/api.js CHANGED
@@ -127,6 +127,7 @@ function headers(sessionId) {
127
127
  */
128
128
  function formatError(method, path, status, body) {
129
129
  const hints = {
130
+ 400: "Bad request — see the error details above for what to fix.",
130
131
  401: "Your API key may be invalid or expired. Get a valid key at https://mcp.ateam-ai.com/get-api-key then call ateam_auth(api_key: \"your_key\").",
131
132
  403: "You don't have permission for this operation. Check your tenant and API key. Get a key at https://mcp.ateam-ai.com/get-api-key",
132
133
  404: "Resource not found. Check the solution_id or skill_id you're using. Use ateam_list_solutions to see available solutions.",
@@ -139,7 +140,7 @@ function formatError(method, path, status, body) {
139
140
  };
140
141
 
141
142
  const hint = hints[status] || "";
142
- const detail = typeof body === "string" && body.length > 0 && body.length < 500 ? body : "";
143
+ const detail = typeof body === "string" && body.length > 0 && body.length < 2000 ? body : "";
143
144
 
144
145
  let msg = `A-Team API error: ${method} ${path} returned ${status}`;
145
146
  if (detail) msg += ` — ${detail}`;