@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 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
- ### Quick Setup
33
+ ### Step 1: Add to Claude Code
34
34
 
35
35
  ```bash
36
- # Clone to ~/.config (recommended)
37
- cd ~/.config
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
- # Install dependencies
42
- npm install
39
+ ### Step 2: Configure Credentials
43
40
 
44
- # Run interactive setup
45
- node setup.js
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
- The setup will prompt for:
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
- ### Alternative: Command-Line Setup
58
+ ### Step 3: Verify
54
59
 
55
- ```bash
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
- ### Claude Code Configuration
62
+ ### Alternative: Manual Installation
60
63
 
61
- Add to your `~/.claude.json`:
64
+ If you prefer to install manually:
62
65
 
63
- ```json
64
- {
65
- "mcpServers": {
66
- "jira": {
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
- > **Note:** If you cloned to a different location, update the path accordingly.
72
+ Then add to Claude Code:
76
73
 
77
- Restart Claude Code to load the MCP server.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rui.branco/jira-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Jira MCP server for Claude Code - fetch tickets, search with JQL, and get Figma designs",
5
5
  "main": "index.js",
6
6
  "bin": {
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
- const args = process.argv.slice(2);
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("\nAdd this to your Claude Code config (~/.claude.json):\n");
72
- console.log(`"mcpServers": {
73
- "jira": {
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
  }