@vira_m/jira-mcp-server 1.0.0 → 1.0.1

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/SETUP.md ADDED
@@ -0,0 +1,69 @@
1
+ # Jira MCP Server — Инструкции подключения
2
+
3
+ Пакет: `@vira_m/jira-mcp-server`
4
+ Инструмент: `get_jira_issue` — получить тикет по ключу (например `PROJ-123`)
5
+
6
+ ---
7
+
8
+ ## Codemie Платформа
9
+
10
+ 1. Открой **Skills** → **Create Skill**
11
+ 2. Заполни:
12
+ - **Skill Name:** `jira-ticket-fetcher`
13
+ - **Description:** `Use this skill to fetch Jira issues by key from Jira Server`
14
+ - **Instructions:**
15
+ ```
16
+ Use the get_jira_issue tool to fetch a Jira ticket by its key.
17
+ Always return the full ticket details including summary, status, priority, assignee, and description.
18
+ ```
19
+ 3. В **External tools** добавь MCP сервер:
20
+ ```json
21
+ {
22
+ "command": "npx",
23
+ "args": ["-y", "@vira_m/jira-mcp-server"],
24
+ "env": {
25
+ "JIRA_BASE_URL": "https://jira.yourcompany.com",
26
+ "JIRA_PAT": "your_personal_access_token"
27
+ }
28
+ }
29
+ ```
30
+ 4. Нажми **Create Skill**
31
+ 5. Прикрепи скил к нужному ассистенту: **Assistants** → выбери ассистента → **Edit** → **Skills** → добавь `jira-ticket-fetcher`
32
+
33
+ ---
34
+
35
+ ## Codemie Code (локально)
36
+
37
+ Открой конфиг MCP (обычно `~/.codemie/mcp.json` или через `ctrl+p` → MCP Settings) и добавь:
38
+
39
+ ```json
40
+ {
41
+ "mcpServers": {
42
+ "jira": {
43
+ "command": "npx",
44
+ "args": ["-y", "@vira_m/jira-mcp-server"],
45
+ "env": {
46
+ "JIRA_BASE_URL": "https://jira.yourcompany.com",
47
+ "JIRA_PAT": "your_personal_access_token"
48
+ }
49
+ }
50
+ }
51
+ }
52
+ ```
53
+
54
+ Перезапусти Codemie Code — инструмент `get_jira_issue` станет доступен.
55
+
56
+ ---
57
+
58
+ ## Использование
59
+
60
+ После подключения просто напиши ассистенту:
61
+ ```
62
+ Покажи тикет PROJ-123
63
+ ```
64
+
65
+ или
66
+
67
+ ```
68
+ Fetch Jira issue PROJ-456
69
+ ```
package/dist/index.js CHANGED
@@ -2,10 +2,11 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
3
  import axios from "axios";
4
4
  import { z } from "zod";
5
- const JIRA_BASE_URL = process.env.JIRA_BASE_URL;
6
- const JIRA_PAT = process.env.JIRA_PAT;
5
+ // Support both direct env vars (local) and Codemie platform integration env vars
6
+ const JIRA_BASE_URL = process.env.JIRA_BASE_URL || process.env.url;
7
+ const JIRA_PAT = process.env.JIRA_PAT || process.env.token;
7
8
  if (!JIRA_BASE_URL || !JIRA_PAT) {
8
- console.error("Missing JIRA_BASE_URL or JIRA_PAT environment variables");
9
+ console.error("Missing Jira credentials. Set JIRA_BASE_URL + JIRA_PAT (local) or url + token (Codemie integration)");
9
10
  process.exit(1);
10
11
  }
11
12
  const jira = axios.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vira_m/jira-mcp-server",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "MCP server for fetching Jira issues",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -3,11 +3,12 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
3
3
  import axios from "axios";
4
4
  import { z } from "zod";
5
5
 
6
- const JIRA_BASE_URL = process.env.JIRA_BASE_URL!;
7
- const JIRA_PAT = process.env.JIRA_PAT!;
6
+ // Support both direct env vars (local) and Codemie platform integration env vars
7
+ const JIRA_BASE_URL = process.env.JIRA_BASE_URL || process.env.url;
8
+ const JIRA_PAT = process.env.JIRA_PAT || process.env.token;
8
9
 
9
10
  if (!JIRA_BASE_URL || !JIRA_PAT) {
10
- console.error("Missing JIRA_BASE_URL or JIRA_PAT environment variables");
11
+ console.error("Missing Jira credentials. Set JIRA_BASE_URL + JIRA_PAT (local) or url + token (Codemie integration)");
11
12
  process.exit(1);
12
13
  }
13
14