@aashari/mcp-server-atlassian-jira
Version:
Node.js/TypeScript MCP server for Atlassian Jira. Equips AI systems (LLMs) with tools to list/get projects, search/get issues (using JQL/ID), and view dev info (commits, PRs). Connects AI capabilities directly into Jira project management and issue tracki
62 lines (61 loc) • 1.84 kB
JavaScript
;
/**
* Default values for pagination across the application.
* These values should be used consistently throughout the codebase.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ISSUE_DEFAULTS = exports.PROJECT_DEFAULTS = exports.DEFAULT_PAGE_SIZE = void 0;
exports.applyDefaults = applyDefaults;
/**
* Default page size for all list operations.
* This value determines how many items are returned in a single page by default.
*/
exports.DEFAULT_PAGE_SIZE = 25;
/**
* Default values for project operations
*/
exports.PROJECT_DEFAULTS = {
/**
* Whether to include project components by default
*/
INCLUDE_COMPONENTS: true,
/**
* Whether to include project versions by default
*/
INCLUDE_VERSIONS: true,
};
/**
* Default values for issue operations
*/
exports.ISSUE_DEFAULTS = {
/**
* Whether to include issue fields by default
*/
INCLUDE_FIELDS: true,
/**
* Whether to include issue changelog by default
*/
INCLUDE_CHANGELOG: false,
/**
* Whether to include issue transitions by default
*/
INCLUDE_TRANSITIONS: false,
};
/**
* Apply default values to options object.
* This utility ensures that default values are consistently applied.
*
* @param options Options object that may have some values undefined
* @param defaults Default values to apply when options values are undefined
* @returns Options object with default values applied
*
* @example
* const options = applyDefaults({ limit: 10 }, { limit: DEFAULT_PAGE_SIZE, includeDetails: true });
* // Result: { limit: 10, includeDetails: true }
*/
function applyDefaults(options, defaults) {
return {
...defaults,
...Object.fromEntries(Object.entries(options).filter(([_, value]) => value !== undefined)),
};
}