@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
50 lines (49 loc) • 1.86 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetIssueToolArgs = exports.ListIssuesToolArgs = void 0;
const zod_1 = require("zod");
/**
* Base pagination arguments for all tools
*/
const PaginationArgs = {
limit: zod_1.z
.number()
.min(1)
.max(100)
.optional()
.describe('Maximum number of items to return (1-100). Use this to control the response size. Useful for pagination or when you only need a few results.'),
cursor: zod_1.z
.string()
.optional()
.describe('Pagination cursor for retrieving the next set of results. Use this to navigate through large result sets. The cursor value can be obtained from the pagination information in a previous response.'),
};
/**
* Arguments for listing Jira issues
* Includes optional filters with defaults applied in the controller
*/
const ListIssuesToolArgs = zod_1.z.object({
/**
* Standardized JQL parameter for filtering
*/
jql: zod_1.z
.string()
.optional()
.describe('Filter issues using JQL syntax. Use this for complex queries like "project = TEAM AND status = \'In Progress\'" or "assignee = currentUser()". If omitted, returns issues according to your Jira default search.'),
/**
* Maximum number of issues to return and pagination
*/
...PaginationArgs,
});
exports.ListIssuesToolArgs = ListIssuesToolArgs;
/**
* Arguments for getting a specific Jira issue
*/
const GetIssueToolArgs = zod_1.z.object({
/**
* Standardized issue identifier parameter
*/
issueIdOrKey: zod_1.z
.string()
.describe('The ID or key of the Jira issue to retrieve (e.g., "10001" or "PROJ-123"). This is required and must be a valid issue ID or key from your Jira instance.'),
});
exports.GetIssueToolArgs = GetIssueToolArgs;