@rui.branco/jira-mcp 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/README.md +27 -28
- package/index.js +6 -0
- package/package.json +1 -1
- package/setup.js +7 -9
package/README.md
CHANGED
|
@@ -30,51 +30,50 @@ When working on development tasks, context switching between Jira and your code
|
|
|
30
30
|
- [Claude Code](https://claude.ai/code) CLI
|
|
31
31
|
- Jira Cloud account with API access
|
|
32
32
|
|
|
33
|
-
###
|
|
33
|
+
### Step 1: Add to Claude Code
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
git clone https://github.com/rui-branco/jira-mcp.git
|
|
39
|
-
cd jira-mcp
|
|
36
|
+
claude mcp add --transport stdio jira -- npx -y @rui.branco/jira-mcp
|
|
37
|
+
```
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
npm install
|
|
39
|
+
### Step 2: Configure Credentials
|
|
43
40
|
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
Run the setup to configure your Jira credentials:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx @rui.branco/jira-mcp setup "your@email.com" "YOUR_API_TOKEN" "https://company.atlassian.net"
|
|
46
45
|
```
|
|
47
46
|
|
|
48
|
-
|
|
47
|
+
Or run interactively:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx @rui.branco/jira-mcp setup
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
You'll need:
|
|
49
54
|
1. **Jira email** - Your Atlassian account email
|
|
50
55
|
2. **API token** - Generate at [Atlassian API Tokens](https://id.atlassian.com/manage-profile/security/api-tokens)
|
|
51
56
|
3. **Base URL** - Your Jira instance (e.g., `https://company.atlassian.net`)
|
|
52
57
|
|
|
53
|
-
###
|
|
58
|
+
### Step 3: Verify
|
|
54
59
|
|
|
55
|
-
|
|
56
|
-
node setup.js "your@email.com" "YOUR_API_TOKEN" "https://company.atlassian.net"
|
|
57
|
-
```
|
|
60
|
+
Restart Claude Code and run `/mcp` to verify the server is loaded.
|
|
58
61
|
|
|
59
|
-
###
|
|
62
|
+
### Alternative: Manual Installation
|
|
60
63
|
|
|
61
|
-
|
|
64
|
+
If you prefer to install manually:
|
|
62
65
|
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"type": "stdio",
|
|
68
|
-
"command": "node",
|
|
69
|
-
"args": ["~/.config/jira-mcp/index.js"]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
66
|
+
```bash
|
|
67
|
+
git clone https://github.com/rui-branco/jira-mcp.git ~/.config/jira-mcp
|
|
68
|
+
cd ~/.config/jira-mcp && npm install
|
|
69
|
+
node setup.js
|
|
73
70
|
```
|
|
74
71
|
|
|
75
|
-
|
|
72
|
+
Then add to Claude Code:
|
|
76
73
|
|
|
77
|
-
|
|
74
|
+
```bash
|
|
75
|
+
claude mcp add --transport stdio jira -- node $HOME/.config/jira-mcp/index.js
|
|
76
|
+
```
|
|
78
77
|
|
|
79
78
|
## Usage
|
|
80
79
|
|
package/index.js
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// Handle setup command
|
|
4
|
+
if (process.argv[2] === "setup") {
|
|
5
|
+
require("./setup.js");
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
|
|
3
9
|
const { Server } = require("@modelcontextprotocol/sdk/server/index.js");
|
|
4
10
|
const { StdioServerTransport } = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
5
11
|
const {
|
package/package.json
CHANGED
package/setup.js
CHANGED
|
@@ -8,7 +8,10 @@ const configDir = path.join(process.env.HOME, ".config/jira-mcp");
|
|
|
8
8
|
const configPath = path.join(configDir, "config.json");
|
|
9
9
|
|
|
10
10
|
// Check for command line arguments
|
|
11
|
-
|
|
11
|
+
let args = process.argv.slice(2);
|
|
12
|
+
// Skip "setup" arg if called via index.js
|
|
13
|
+
if (args[0] === "setup") args = args.slice(1);
|
|
14
|
+
|
|
12
15
|
if (args.length >= 3) {
|
|
13
16
|
// Non-interactive mode: node setup.js <email> <token> <baseUrl>
|
|
14
17
|
const [email, token, baseUrl] = args;
|
|
@@ -68,14 +71,9 @@ async function setup() {
|
|
|
68
71
|
}
|
|
69
72
|
|
|
70
73
|
console.log("\n=== Setup Complete ===");
|
|
71
|
-
console.log("\
|
|
72
|
-
console.log(
|
|
73
|
-
"
|
|
74
|
-
"type": "stdio",
|
|
75
|
-
"command": "node",
|
|
76
|
-
"args": ["${path.join(configDir, "server/index.js")}"]
|
|
77
|
-
}
|
|
78
|
-
}`);
|
|
74
|
+
console.log("\nIf you haven't already, add to Claude Code with:\n");
|
|
75
|
+
console.log(" claude mcp add --transport stdio jira -- npx -y @rui.branco/jira-mcp");
|
|
76
|
+
console.log("\nThen restart Claude Code and run /mcp to verify.");
|
|
79
77
|
|
|
80
78
|
rl.close();
|
|
81
79
|
}
|