@atlassian-dc-mcp/jira 0.16.0 → 0.17.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.17.0](https://github.com/b1ff/atlassian-dc-mcp/compare/v0.16.0...v0.17.0) (2026-04-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * add interactive setup CLI with secure credential storage ([f317903](https://github.com/b1ff/atlassian-dc-mcp/commit/f317903a9975b66442f54e520a5a1656a69d1a1b))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.16.0](https://github.com/b1ff/atlassian-dc-mcp/compare/v0.15.0...v0.16.0) (2026-04-14)
7
18
 
8
19
 
package/README.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  This package provides a Machine Comprehension Protocol (MCP) server for interacting with Atlassian Jira Data Center edition.
4
4
 
5
+ ## Interactive Setup
6
+
7
+ The easiest way to configure this server is the built-in `setup` subcommand:
8
+
9
+ ```bash
10
+ npx @atlassian-dc-mcp/jira setup
11
+ ```
12
+
13
+ It prompts for host, API base path, default page size, and API token, then stores them in the most secure place available:
14
+
15
+ - **macOS** — token in the login Keychain (service `atlassian-dc-mcp`, account `jira-token`); host / base path / page size in `~/.atlassian-dc-mcp/jira.env` (mode `0600`).
16
+ - **Linux** — everything in `~/.atlassian-dc-mcp/jira.env` with POSIX mode `0600` (read/write for your user only).
17
+ - **Windows** — everything in `%USERPROFILE%\.atlassian-dc-mcp\jira.env`. Node passes the mode bits but Windows ignores them, so the file inherits the ACL of your user profile directory (typically readable only by your user, SYSTEM, and Administrators).
18
+
19
+ After setup, you can launch the server without any environment variables:
20
+
21
+ ```json
22
+ {
23
+ "mcpServers": {
24
+ "atlassian-jira-dc": {
25
+ "command": "npx",
26
+ "args": ["-y", "@atlassian-dc-mcp/jira"]
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ Environment variables still override stored values — see [Configuration sources](#configuration-sources) below.
33
+
5
34
  ## Claude Desktop Configuration
6
35
 
7
36
  To use this MCP connector with Claude Desktop, add the following to your Claude Desktop configuration:
@@ -94,7 +123,7 @@ Alternatively, you can use `JIRA_API_BASE_PATH` instead of `JIRA_HOST` to specif
94
123
  JIRA_DEFAULT_PAGE_SIZE=25
95
124
  ```
96
125
 
97
- Direct environment variables override values loaded from `ATLASSIAN_DC_MCP_CONFIG_FILE`.
126
+ See [Configuration sources](#configuration-sources) for the full precedence chain.
98
127
 
99
128
  To create a personal access token:
100
129
  - In Jira, select your profile picture at the top right
@@ -102,6 +131,19 @@ Alternatively, you can use `JIRA_API_BASE_PATH` instead of `JIRA_HOST` to specif
102
131
  - Select **Create token** and give it a name
103
132
  - Copy the token and store it securely (you won't be able to see it again)
104
133
 
134
+ ## Configuration sources
135
+
136
+ Each key is resolved by walking these sources in priority order and taking the first non-empty value:
137
+
138
+ | Priority | Source | Reads | Written by `setup` |
139
+ |---------:|--------|-------|--------------------|
140
+ | 100 | `process.env` (`JIRA_HOST`, `JIRA_API_BASE_PATH`, `JIRA_API_TOKEN`, `JIRA_DEFAULT_PAGE_SIZE`) | all keys | — |
141
+ | 80 | env file — `ATLASSIAN_DC_MCP_CONFIG_FILE` (absolute path) or `./.env` | all keys | — |
142
+ | 60 | home file — `~/.atlassian-dc-mcp/jira.env` on macOS/Linux, `%USERPROFILE%\.atlassian-dc-mcp\jira.env` on Windows (mode `0600` on POSIX; Windows inherits the user-profile ACL) | all keys | host, apiBasePath, defaultPageSize (always); token (non-darwin or keychain fallback) |
143
+ | 40 | macOS Keychain — service `atlassian-dc-mcp`, account `jira-token` | token only | token (darwin only) |
144
+
145
+ `setup` always writes non-secret fields to the home file and tries the keychain first for the token. If a higher-priority source shadows the value being saved, `setup` prints a warning so you can unset the env var.
146
+
105
147
  ## Usage
106
148
 
107
149
  Start the MCP server:
package/bin/run.js CHANGED
@@ -1,3 +1,7 @@
1
1
  #!/usr/bin/env node
2
-
3
- import '../build/index.js';
2
+ const sub = process.argv[2];
3
+ if (sub === 'setup') {
4
+ await import('../build/setup.js');
5
+ } else {
6
+ await import('../build/index.js');
7
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=setup.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/setup.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+ describe('jira setup shim', () => {
4
+ it('calls runSetup with JIRA_PRODUCT', () => {
5
+ const setupSource = fs.readFileSync(path.join(process.cwd(), 'src', 'setup.ts'), 'utf8');
6
+ expect(setupSource).toMatch(/runSetup\(\s*JIRA_PRODUCT\s*\)/);
7
+ expect(setupSource).toMatch(/from\s+['"]@atlassian-dc-mcp\/common['"]/);
8
+ expect(setupSource).toMatch(/import\s+\{\s*JIRA_PRODUCT\s*\}\s+from\s+['"]\.\/config\.js['"]/);
9
+ });
10
+ });
11
+ //# sourceMappingURL=setup.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.test.js","sourceRoot":"","sources":["../../src/__tests__/setup.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;QAC1C,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,CAAC;QACzF,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;QAC9D,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,0CAA0C,CAAC,CAAC;QACxE,MAAM,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,iEAAiE,CAAC,CAAC;IACjG,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/build/config.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { type ProductDefinition } from '@atlassian-dc-mcp/common';
2
+ export declare const JIRA_PRODUCT: ProductDefinition;
1
3
  export declare function getJiraRuntimeConfig(): import("@atlassian-dc-mcp/common").ProductRuntimeConfig;
2
4
  export declare function getDefaultPageSize(): number;
3
5
  export declare function getMissingConfig(): string[];
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,wBAAgB,oBAAoB,4DAEnC;AAED,wBAAgB,kBAAkB,WAEjC;AAED,wBAAgB,gBAAgB,aAE/B"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,YAAY,EAAE,iBAS1B,CAAC;AAEF,wBAAgB,oBAAoB,4DAEnC;AAED,wBAAgB,kBAAkB,WAEjC;AAED,wBAAgB,gBAAgB,aAE/B"}
package/build/config.js CHANGED
@@ -1,11 +1,21 @@
1
- import { getProductRuntimeConfig, validateProductRuntimeConfig } from '@atlassian-dc-mcp/common';
1
+ import { getProductRuntimeConfig, validateProductRuntimeConfig, } from '@atlassian-dc-mcp/common';
2
+ export const JIRA_PRODUCT = {
3
+ id: 'jira',
4
+ envVars: {
5
+ host: 'JIRA_HOST',
6
+ apiBasePath: 'JIRA_API_BASE_PATH',
7
+ token: 'JIRA_API_TOKEN',
8
+ defaultPageSize: 'JIRA_DEFAULT_PAGE_SIZE',
9
+ },
10
+ defaultApiBasePath: '/rest/api/2',
11
+ };
2
12
  export function getJiraRuntimeConfig() {
3
- return getProductRuntimeConfig('jira');
13
+ return getProductRuntimeConfig(JIRA_PRODUCT);
4
14
  }
5
15
  export function getDefaultPageSize() {
6
16
  return getJiraRuntimeConfig().defaultPageSize;
7
17
  }
8
18
  export function getMissingConfig() {
9
- return validateProductRuntimeConfig('jira');
19
+ return validateProductRuntimeConfig(JIRA_PRODUCT);
10
20
  }
11
21
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAEjG,MAAM,UAAU,oBAAoB;IAClC,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,oBAAoB,EAAE,CAAC,eAAe,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAC;AAC9C,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,4BAA4B,GAE7B,MAAM,0BAA0B,CAAC;AAElC,MAAM,CAAC,MAAM,YAAY,GAAsB;IAC7C,EAAE,EAAE,MAAM;IACV,OAAO,EAAE;QACP,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,oBAAoB;QACjC,KAAK,EAAE,gBAAgB;QACvB,eAAe,EAAE,wBAAwB;KAC1C;IACD,kBAAkB,EAAE,aAAa;CAClC,CAAC;AAEF,MAAM,UAAU,oBAAoB;IAClC,OAAO,uBAAuB,CAAC,YAAY,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,oBAAoB,EAAE,CAAC,eAAe,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,4BAA4B,CAAC,YAAY,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":""}
package/build/setup.js ADDED
@@ -0,0 +1,4 @@
1
+ import { runSetup } from '@atlassian-dc-mcp/common';
2
+ import { JIRA_PRODUCT } from './config.js';
3
+ await runSetup(JIRA_PRODUCT);
4
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.js","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,QAAQ,CAAC,YAAY,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlassian-dc-mcp/jira",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "main": "build/index.js",
5
5
  "type": "module",
6
6
  "bin": "./bin/run.js",
@@ -32,7 +32,7 @@
32
32
  "test": "jest"
33
33
  },
34
34
  "dependencies": {
35
- "@atlassian-dc-mcp/common": "^0.16.0",
35
+ "@atlassian-dc-mcp/common": "^0.17.0",
36
36
  "@modelcontextprotocol/sdk": "^1.27.1",
37
37
  "dotenv": "^16.4.7",
38
38
  "zod": "^3.24.2"
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "eb8394fc8317b2d986b03de9853edf47aa77566a"
49
+ "gitHead": "3f2e386c4f08b0ff6781dde37ce6e54f6dcb8d51"
50
50
  }
@@ -0,0 +1,11 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+
4
+ describe('jira setup shim', () => {
5
+ it('calls runSetup with JIRA_PRODUCT', () => {
6
+ const setupSource = fs.readFileSync(path.join(process.cwd(), 'src', 'setup.ts'), 'utf8');
7
+ expect(setupSource).toMatch(/runSetup\(\s*JIRA_PRODUCT\s*\)/);
8
+ expect(setupSource).toMatch(/from\s+['"]@atlassian-dc-mcp\/common['"]/);
9
+ expect(setupSource).toMatch(/import\s+\{\s*JIRA_PRODUCT\s*\}\s+from\s+['"]\.\/config\.js['"]/);
10
+ });
11
+ });
package/src/config.ts CHANGED
@@ -1,7 +1,22 @@
1
- import { getProductRuntimeConfig, validateProductRuntimeConfig } from '@atlassian-dc-mcp/common';
1
+ import {
2
+ getProductRuntimeConfig,
3
+ validateProductRuntimeConfig,
4
+ type ProductDefinition,
5
+ } from '@atlassian-dc-mcp/common';
6
+
7
+ export const JIRA_PRODUCT: ProductDefinition = {
8
+ id: 'jira',
9
+ envVars: {
10
+ host: 'JIRA_HOST',
11
+ apiBasePath: 'JIRA_API_BASE_PATH',
12
+ token: 'JIRA_API_TOKEN',
13
+ defaultPageSize: 'JIRA_DEFAULT_PAGE_SIZE',
14
+ },
15
+ defaultApiBasePath: '/rest/api/2',
16
+ };
2
17
 
3
18
  export function getJiraRuntimeConfig() {
4
- return getProductRuntimeConfig('jira');
19
+ return getProductRuntimeConfig(JIRA_PRODUCT);
5
20
  }
6
21
 
7
22
  export function getDefaultPageSize() {
@@ -9,5 +24,5 @@ export function getDefaultPageSize() {
9
24
  }
10
25
 
11
26
  export function getMissingConfig() {
12
- return validateProductRuntimeConfig('jira');
27
+ return validateProductRuntimeConfig(JIRA_PRODUCT);
13
28
  }
package/src/setup.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { runSetup } from '@atlassian-dc-mcp/common';
2
+ import { JIRA_PRODUCT } from './config.js';
3
+
4
+ await runSetup(JIRA_PRODUCT);