@universal-mcp-toolkit/server-jira 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.well-known/mcp-server.json +87 -0
- package/LICENSE +21 -0
- package/dist/index.d.ts +240 -0
- package/dist/index.js +1124 -0
- package/package.json +53 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/json",
|
|
3
|
+
"name": "jira",
|
|
4
|
+
"title": "Jira MCP Server",
|
|
5
|
+
"description": "Search Jira Cloud issues, inspect tickets, transition work, and fetch project context.",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"packageName": "@universal-mcp-toolkit/server-jira",
|
|
8
|
+
"homepage": "https://github.com/universal-mcp-toolkit/universal-mcp-toolkit#readme",
|
|
9
|
+
"repositoryUrl": "https://github.com/universal-mcp-toolkit/universal-mcp-toolkit",
|
|
10
|
+
"documentationUrl": "https://github.com/universal-mcp-toolkit/universal-mcp-toolkit/tree/main/servers/jira",
|
|
11
|
+
"transports": [
|
|
12
|
+
"stdio",
|
|
13
|
+
"sse"
|
|
14
|
+
],
|
|
15
|
+
"authentication": {
|
|
16
|
+
"mode": "environment-variables",
|
|
17
|
+
"required": [
|
|
18
|
+
"JIRA_BASE_URL",
|
|
19
|
+
"JIRA_EMAIL",
|
|
20
|
+
"JIRA_API_TOKEN"
|
|
21
|
+
],
|
|
22
|
+
"optional": [
|
|
23
|
+
"JIRA_DEFAULT_PROJECT_KEY"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"capabilities": {
|
|
27
|
+
"tools": true,
|
|
28
|
+
"resources": true,
|
|
29
|
+
"prompts": true
|
|
30
|
+
},
|
|
31
|
+
"tools": [
|
|
32
|
+
{
|
|
33
|
+
"name": "get_issue",
|
|
34
|
+
"description": "Fetch a Jira issue with normalized fields, description text, and comments."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "search_issues",
|
|
38
|
+
"description": "Search Jira issues with JQL or structured filters and return normalized issue summaries."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "transition_issue",
|
|
42
|
+
"description": "Resolve a Jira transition by name or id, apply it, and return the updated issue."
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"resources": [
|
|
46
|
+
{
|
|
47
|
+
"name": "project",
|
|
48
|
+
"uriTemplate": "jira://projects/{projectKey}",
|
|
49
|
+
"mimeType": "application/json",
|
|
50
|
+
"description": "Return normalized Jira project metadata as JSON."
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"prompts": [
|
|
54
|
+
{
|
|
55
|
+
"name": "incident_triage",
|
|
56
|
+
"description": "Create a reusable incident-triage prompt using Jira issue context."
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"examples": {
|
|
60
|
+
"toolCalls": [
|
|
61
|
+
{
|
|
62
|
+
"name": "search_issues",
|
|
63
|
+
"arguments": {
|
|
64
|
+
"text": "latency spike",
|
|
65
|
+
"maxResults": 5
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "get_issue",
|
|
70
|
+
"arguments": {
|
|
71
|
+
"issueKey": "OPS-42"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "transition_issue",
|
|
76
|
+
"arguments": {
|
|
77
|
+
"issueKey": "OPS-42",
|
|
78
|
+
"transitionName": "Done",
|
|
79
|
+
"comment": "Mitigation deployed and metrics recovered."
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"resourceUris": [
|
|
84
|
+
"jira://projects/OPS"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 universal-mcp-toolkit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import * as _universal_mcp_toolkit_core from '@universal-mcp-toolkit/core';
|
|
2
|
+
import { ToolkitServer, ToolkitServerMetadata } from '@universal-mcp-toolkit/core';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
declare const jiraIssueSummarySchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
summary: z.ZodString;
|
|
9
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
id: z.ZodOptional<z.ZodString>;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
category: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
displayName: z.ZodString;
|
|
17
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
displayName: z.ZodString;
|
|
22
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
priority: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
id: z.ZodOptional<z.ZodString>;
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
issueType: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
id: z.ZodOptional<z.ZodString>;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
subtask: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
key: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
created: z.ZodOptional<z.ZodString>;
|
|
39
|
+
updated: z.ZodOptional<z.ZodString>;
|
|
40
|
+
url: z.ZodString;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
declare const jiraIssueDetailSchema: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
key: z.ZodString;
|
|
45
|
+
summary: z.ZodString;
|
|
46
|
+
status: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
id: z.ZodOptional<z.ZodString>;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
category: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
53
|
+
displayName: z.ZodString;
|
|
54
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
reporter: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
58
|
+
displayName: z.ZodString;
|
|
59
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
priority: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
id: z.ZodOptional<z.ZodString>;
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
issueType: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
id: z.ZodOptional<z.ZodString>;
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
subtask: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
id: z.ZodOptional<z.ZodString>;
|
|
72
|
+
key: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
created: z.ZodOptional<z.ZodString>;
|
|
76
|
+
updated: z.ZodOptional<z.ZodString>;
|
|
77
|
+
url: z.ZodString;
|
|
78
|
+
description: z.ZodOptional<z.ZodString>;
|
|
79
|
+
labels: z.ZodArray<z.ZodString>;
|
|
80
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
84
|
+
displayName: z.ZodString;
|
|
85
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
body: z.ZodString;
|
|
88
|
+
created: z.ZodOptional<z.ZodString>;
|
|
89
|
+
updated: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
declare const jiraTransitionSchema: z.ZodObject<{
|
|
93
|
+
id: z.ZodString;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
toStatus: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
id: z.ZodOptional<z.ZodString>;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
category: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
declare const jiraProjectSchema: z.ZodObject<{
|
|
102
|
+
id: z.ZodOptional<z.ZodString>;
|
|
103
|
+
key: z.ZodString;
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
description: z.ZodOptional<z.ZodString>;
|
|
106
|
+
projectTypeKey: z.ZodOptional<z.ZodString>;
|
|
107
|
+
simplified: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
lead: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
displayName: z.ZodString;
|
|
111
|
+
emailAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
assigneeType: z.ZodOptional<z.ZodString>;
|
|
114
|
+
apiUrl: z.ZodOptional<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
declare const incidentTriagePromptArgsShape: {
|
|
117
|
+
issueKey: z.ZodOptional<z.ZodString>;
|
|
118
|
+
projectKey: z.ZodOptional<z.ZodString>;
|
|
119
|
+
summary: z.ZodString;
|
|
120
|
+
symptoms: z.ZodString;
|
|
121
|
+
impact: z.ZodOptional<z.ZodString>;
|
|
122
|
+
suspectedService: z.ZodOptional<z.ZodString>;
|
|
123
|
+
environment: z.ZodOptional<z.ZodString>;
|
|
124
|
+
};
|
|
125
|
+
type IncidentTriagePromptArgs = z.infer<z.ZodObject<typeof incidentTriagePromptArgsShape>>;
|
|
126
|
+
type JiraIssueSummary = z.infer<typeof jiraIssueSummarySchema>;
|
|
127
|
+
type JiraIssueDetail = z.infer<typeof jiraIssueDetailSchema>;
|
|
128
|
+
type JiraTransition = z.infer<typeof jiraTransitionSchema>;
|
|
129
|
+
type JiraProject = z.infer<typeof jiraProjectSchema>;
|
|
130
|
+
interface JiraEnvironment {
|
|
131
|
+
readonly baseUrl: string;
|
|
132
|
+
readonly email: string;
|
|
133
|
+
readonly apiToken: string;
|
|
134
|
+
readonly defaultProjectKey?: string;
|
|
135
|
+
}
|
|
136
|
+
interface JiraSearchRequest {
|
|
137
|
+
readonly jql: string;
|
|
138
|
+
readonly startAt: number;
|
|
139
|
+
readonly maxResults: number;
|
|
140
|
+
readonly fields: readonly string[];
|
|
141
|
+
}
|
|
142
|
+
interface JiraSearchResult {
|
|
143
|
+
readonly startAt: number;
|
|
144
|
+
readonly maxResults: number;
|
|
145
|
+
readonly total: number;
|
|
146
|
+
readonly issues: readonly JiraIssueSummary[];
|
|
147
|
+
}
|
|
148
|
+
interface JiraClient {
|
|
149
|
+
searchIssues(request: JiraSearchRequest): Promise<JiraSearchResult>;
|
|
150
|
+
getIssue(issueKey: string, fields?: readonly string[]): Promise<JiraIssueDetail>;
|
|
151
|
+
getTransitions(issueKey: string): Promise<readonly JiraTransition[]>;
|
|
152
|
+
transitionIssue(issueKey: string, transitionId: string, comment?: string): Promise<void>;
|
|
153
|
+
getProject(projectKey: string): Promise<JiraProject>;
|
|
154
|
+
}
|
|
155
|
+
interface JiraRestClientOptions {
|
|
156
|
+
readonly environment: JiraEnvironment;
|
|
157
|
+
readonly fetchImpl?: typeof fetch;
|
|
158
|
+
}
|
|
159
|
+
interface JiraServerOptions {
|
|
160
|
+
readonly client?: JiraClient;
|
|
161
|
+
readonly environment?: JiraEnvironment;
|
|
162
|
+
readonly envSource?: NodeJS.ProcessEnv;
|
|
163
|
+
}
|
|
164
|
+
declare function loadJiraEnvironment(source?: NodeJS.ProcessEnv): JiraEnvironment;
|
|
165
|
+
declare class JiraRestClient implements JiraClient {
|
|
166
|
+
private readonly environment;
|
|
167
|
+
private readonly fetchImpl;
|
|
168
|
+
constructor(options: JiraRestClientOptions);
|
|
169
|
+
searchIssues(request: JiraSearchRequest): Promise<JiraSearchResult>;
|
|
170
|
+
getIssue(issueKey: string, fields?: readonly string[]): Promise<JiraIssueDetail>;
|
|
171
|
+
getTransitions(issueKey: string): Promise<readonly JiraTransition[]>;
|
|
172
|
+
transitionIssue(issueKey: string, transitionId: string, comment?: string): Promise<void>;
|
|
173
|
+
getProject(projectKey: string): Promise<JiraProject>;
|
|
174
|
+
private createUrl;
|
|
175
|
+
private createHeaders;
|
|
176
|
+
private requestJson;
|
|
177
|
+
private requestVoid;
|
|
178
|
+
private request;
|
|
179
|
+
private tryParseJson;
|
|
180
|
+
}
|
|
181
|
+
declare const metadata: ToolkitServerMetadata;
|
|
182
|
+
declare const serverCard: _universal_mcp_toolkit_core.ToolkitServerCard;
|
|
183
|
+
declare class JiraServer extends ToolkitServer {
|
|
184
|
+
private readonly client;
|
|
185
|
+
private readonly environment;
|
|
186
|
+
constructor(options?: JiraServerOptions);
|
|
187
|
+
readProjectResource(projectKey: string, uri?: string): Promise<{
|
|
188
|
+
[x: string]: unknown;
|
|
189
|
+
contents: ({
|
|
190
|
+
uri: string;
|
|
191
|
+
text: string;
|
|
192
|
+
mimeType?: string | undefined;
|
|
193
|
+
_meta?: {
|
|
194
|
+
[x: string]: unknown;
|
|
195
|
+
} | undefined;
|
|
196
|
+
} | {
|
|
197
|
+
uri: string;
|
|
198
|
+
blob: string;
|
|
199
|
+
mimeType?: string | undefined;
|
|
200
|
+
_meta?: {
|
|
201
|
+
[x: string]: unknown;
|
|
202
|
+
} | undefined;
|
|
203
|
+
})[];
|
|
204
|
+
_meta?: {
|
|
205
|
+
[x: string]: unknown;
|
|
206
|
+
progressToken?: string | number | undefined;
|
|
207
|
+
"io.modelcontextprotocol/related-task"?: {
|
|
208
|
+
taskId: string;
|
|
209
|
+
} | undefined;
|
|
210
|
+
} | undefined;
|
|
211
|
+
}>;
|
|
212
|
+
buildIncidentTriagePrompt(args: IncidentTriagePromptArgs): {
|
|
213
|
+
messages: ({
|
|
214
|
+
role: "assistant";
|
|
215
|
+
content: {
|
|
216
|
+
type: "text";
|
|
217
|
+
text: string;
|
|
218
|
+
};
|
|
219
|
+
} | {
|
|
220
|
+
role: "user";
|
|
221
|
+
content: {
|
|
222
|
+
type: "text";
|
|
223
|
+
text: string;
|
|
224
|
+
};
|
|
225
|
+
})[];
|
|
226
|
+
};
|
|
227
|
+
private createSearchIssuesTool;
|
|
228
|
+
private createGetIssueTool;
|
|
229
|
+
private createTransitionIssueTool;
|
|
230
|
+
private registerProjectResource;
|
|
231
|
+
private registerIncidentTriagePrompt;
|
|
232
|
+
}
|
|
233
|
+
declare function createServer(options?: JiraServerOptions): JiraServer;
|
|
234
|
+
declare const runtimeRegistration: {
|
|
235
|
+
createServer: typeof createServer;
|
|
236
|
+
serverCard: _universal_mcp_toolkit_core.ToolkitServerCard;
|
|
237
|
+
};
|
|
238
|
+
declare function main(argv?: readonly string[]): Promise<void>;
|
|
239
|
+
|
|
240
|
+
export { type JiraClient, type JiraEnvironment, JiraRestClient, type JiraRestClientOptions, type JiraSearchRequest, type JiraSearchResult, JiraServer, type JiraServerOptions, createServer, runtimeRegistration as default, loadJiraEnvironment, main, metadata, serverCard };
|