@kaddo/mcp 3.88.1 → 3.88.2
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/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12320,6 +12320,7 @@ async function jiraFetch(baseUrl, path6, auth, timeoutMs, params) {
|
|
|
12320
12320
|
if (res.status === 401) throw integrationError("INTEGRATION_UNAUTHORIZED");
|
|
12321
12321
|
if (res.status === 403) throw integrationError("INTEGRATION_FORBIDDEN");
|
|
12322
12322
|
if (res.status === 404) throw integrationError("INTEGRATION_NOT_FOUND");
|
|
12323
|
+
if (res.status === 410) throw integrationError("INTEGRATION_UNAVAILABLE", "Jira API endpoint deprecated (410 Gone).");
|
|
12323
12324
|
if (res.status === 429) throw integrationError("INTEGRATION_RATE_LIMITED");
|
|
12324
12325
|
if (res.status >= 500) throw integrationError("INTEGRATION_UNAVAILABLE");
|
|
12325
12326
|
if (!res.ok) throw integrationError("INTEGRATION_PROVIDER_ERROR", `Jira responded with status ${res.status}.`);
|
|
@@ -12444,7 +12445,7 @@ function createJiraAdapter() {
|
|
|
12444
12445
|
const pageSize = Math.min(Math.max(1, request.pageSize ?? DEFAULT_PAGE_SIZE), 100);
|
|
12445
12446
|
const startAt = request.cursor ? Math.max(0, Number.parseInt(request.cursor, 10) || 0) : 0;
|
|
12446
12447
|
try {
|
|
12447
|
-
const data = await jiraFetch(baseUrl, "/rest/api/3/search", auth, request.context.timeoutMs, {
|
|
12448
|
+
const data = await jiraFetch(baseUrl, "/rest/api/3/search/jql", auth, request.context.timeoutMs, {
|
|
12448
12449
|
jql: jql.startsWith("ORDER BY") ? jql : jql + " ORDER BY updated DESC",
|
|
12449
12450
|
startAt: String(startAt),
|
|
12450
12451
|
maxResults: String(pageSize),
|
package/package.json
CHANGED