@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.
- package/package.json +1 -1
- package/src/api.js +2 -1
package/package.json
CHANGED
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 <
|
|
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}`;
|