@aashari/mcp-server-atlassian-bitbucket
Version:
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MC
32 lines (31 loc) • 1.13 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.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;
/**
* 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, includeBranches: true });
* // Result: { limit: 10, includeBranches: true }
*/
function applyDefaults(options, defaults) {
return {
...defaults,
...Object.fromEntries(Object.entries(options).filter(([_, value]) => value !== undefined)),
};
}