@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
57 lines (56 loc) • 2.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetProjectToolArgs = exports.ListProjectsToolArgs = 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 projects
* Includes optional filters with defaults applied in the controller
*/
const ListProjectsToolArgs = zod_1.z.object({
/**
* Filter by project name or key
*/
name: zod_1.z
.string()
.optional()
.describe('Filter projects by name or key (case-insensitive). Use this to find specific projects by their display name or project key.'),
/**
* Maximum number of projects to return and pagination
*/
...PaginationArgs,
/**
* Field to sort the projects by
*/
orderBy: zod_1.z
.string()
.optional()
.describe('Field to sort projects by (e.g., "name", "key", "lastIssueUpdatedTime"). Default is "lastIssueUpdatedTime", which shows the most recently active projects first.'),
});
exports.ListProjectsToolArgs = ListProjectsToolArgs;
/**
* Arguments for getting a specific Jira project
*/
const GetProjectToolArgs = zod_1.z.object({
/**
* Project key or numeric ID
*/
projectKeyOrId: zod_1.z
.string()
.describe('The key or numeric ID of the Jira project to retrieve (e.g., "PROJ" or "10001"). This is required and must be a valid project key or ID from your Jira instance.'),
});
exports.GetProjectToolArgs = GetProjectToolArgs;