@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
47 lines (46 loc) • 1.48 kB
JavaScript
;
/**
* Application constants
*
* This file contains constants used throughout the application.
* Centralizing these values makes them easier to maintain and update.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.DATA_LIMITS = exports.NETWORK_TIMEOUTS = exports.CLI_NAME = exports.PACKAGE_NAME = exports.VERSION = void 0;
/**
* Current application version
* This should match the version in package.json
*/
exports.VERSION = '3.0.0';
/**
* Package name with scope
* Used for initialization and identification
*/
exports.PACKAGE_NAME = '@aashari/mcp-server-atlassian-bitbucket';
/**
* CLI command name
* Used for binary name and CLI help text
*/
exports.CLI_NAME = 'mcp-atlassian-bitbucket';
/**
* Network timeout constants (in milliseconds)
*/
exports.NETWORK_TIMEOUTS = {
/** Default timeout for API requests (30 seconds) */
DEFAULT_REQUEST_TIMEOUT: 30 * 1000,
/** Timeout for large file operations like diffs (60 seconds) */
LARGE_REQUEST_TIMEOUT: 60 * 1000,
/** Timeout for search operations (45 seconds) */
SEARCH_REQUEST_TIMEOUT: 45 * 1000,
};
/**
* Data limits to prevent excessive resource consumption (CWE-770)
*/
exports.DATA_LIMITS = {
/** Maximum response size in bytes (10MB) */
MAX_RESPONSE_SIZE: 10 * 1024 * 1024,
/** Maximum items per page for paginated requests */
MAX_PAGE_SIZE: 100,
/** Default page size when not specified */
DEFAULT_PAGE_SIZE: 50,
};