@aaronsb/jira-cloud-mcp 0.8.0 → 0.8.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.
@@ -398,6 +398,10 @@ async function batchParallel(tasks, batchSize) {
398
398
  return results;
399
399
  }
400
400
  const ROW_BATCH_SIZE = 3; // ~18-33 concurrent count queries per batch
401
+ /** Strip ORDER BY clause from JQL — ordering is meaningless for counts and analysis */
402
+ export function stripOrderBy(jql) {
403
+ return jql.replace(/\s+ORDER\s+BY\s+.+$/i, '');
404
+ }
401
405
  /** Build a scoped JQL by adding a condition to the base query */
402
406
  function scopeJql(baseJql, condition) {
403
407
  return `(${baseJql}) AND ${condition}`;
@@ -894,6 +898,9 @@ export async function handleAnalysisRequest(jiraClient, request, graphqlClient,
894
898
  throw new McpError(ErrorCode.InvalidParams, 'Either jql, filterId, or dataRef parameter is required.');
895
899
  }
896
900
  }
901
+ // Strip ORDER BY — analysis uses counts and full-page fetches, ordering is meaningless
902
+ // and breaks scopeJql() which wraps JQL in parens (ORDER BY inside parens is invalid)
903
+ jql = stripOrderBy(jql);
897
904
  // Parse requested metrics
898
905
  const requested = (args.metrics && Array.isArray(args.metrics))
899
906
  ? args.metrics
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aaronsb/jira-cloud-mcp",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "mcpName": "io.github.aaronsb/jira-cloud",
5
5
  "description": "Model Context Protocol (MCP) server for Jira Cloud - enables AI assistants to interact with Jira",
6
6
  "type": "module",