@@ -8,9 +8,6 @@ services:
88 commands :
99 start : |
1010 echo "Setting up Jira MCP server..."
11-
12- # Create config directory
13- mkdir -p ~/.config/gitpod
1411
1512 # Clone and build Jira MCP if not already present
1613 if [ ! -d "/home/node/jira-mcp" ]; then
@@ -26,56 +23,6 @@ services:
2623 echo "Jira MCP already installed"
2724 fi
2825
29- # Create MCP configuration file
30- echo "Creating MCP configuration..."
31- cat > ~/.config/gitpod/mcp-config.json << EOF
32- {
33- "mcpServers": {
34- "jira-mcp": {
35- "command": "node",
36- "args": ["/home/node/jira-mcp/build/index.js"],
37- "env": {
38- "JIRA_HOST": "\${JIRA_HOST:-coakley.atlassian.net}",
39- "JIRA_USERNAME": "\${JIRA_USERNAME:-joe@gitpod.io}",
40- "JIRA_API_TOKEN": "\${JIRA_API_TOKEN:-your_api_token_here}",
41- "JIRA_PROJECT_KEY": "\${JIRA_PROJECT_KEY:-MBA}",
42- "AUTO_CREATE_TEST_TICKETS": "true",
43- "JIRA_ACCEPTANCE_CRITERIA_FIELD": "customfield_10429",
44- "JIRA_STORY_POINTS_FIELD": "customfield_10040",
45- "JIRA_EPIC_LINK_FIELD": "customfield_10014"
46- }
47- }
48- }
49- }
50- EOF
51-
52- # Configure generic MCP client connection
53- echo "Configuring MCP client connection..."
54-
55- # Create generic MCP client config
56- MCP_CLIENT_CONFIG="$HOME/.config/mcp/client-config.json"
57- mkdir -p "$HOME/.config/mcp"
58- cat > "$MCP_CLIENT_CONFIG" << EOF
59- {
60- "mcpServers": {
61- "jira-mcp": {
62- "command": "node",
63- "args": ["/home/node/jira-mcp/build/index.js"],
64- "env": {
65- "JIRA_HOST": "\${JIRA_HOST:-coakley.atlassian.net}",
66- "JIRA_USERNAME": "\${JIRA_USERNAME:-joe@gitpod.io}",
67- "JIRA_API_TOKEN": "\${JIRA_API_TOKEN:-your_api_token_here}",
68- "JIRA_PROJECT_KEY": "\${JIRA_PROJECT_KEY:-MBA}",
69- "AUTO_CREATE_TEST_TICKETS": "true",
70- "JIRA_ACCEPTANCE_CRITERIA_FIELD": "customfield_10429",
71- "JIRA_STORY_POINTS_FIELD": "customfield_10040",
72- "JIRA_EPIC_LINK_FIELD": "customfield_10014"
73- }
74- }
75- }
76- }
77- EOF
78-
7926 # Test MCP server connection if credentials are available
8027 if [ -n "\$JIRA_API_TOKEN" ] && [ "\$JIRA_API_TOKEN" != "your_api_token_here" ]; then
8128 echo "Testing MCP server connection..."
@@ -89,26 +36,14 @@ services:
8936 fi
9037 fi
9138
92- # Create a simple verification script
93- echo '#!/bin/bash' > /tmp/verify-mcp-connection.sh
94- echo 'echo "Verifying MCP configuration..."' >> /tmp/verify-mcp-connection.sh
95- echo 'echo "Server config: $([ -f ~/.config/gitpod/mcp-config.json ] && echo \"Found\" || echo \"Missing\")"' >> /tmp/verify-mcp-connection.sh
96- echo 'echo "Generic client config: $([ -f ~/.config/mcp/client-config.json ] && echo \"Found\" || echo \"Missing\")"' >> /tmp/verify-mcp-connection.sh
97- echo 'echo "MCP server binary: $([ -f /home/node/jira-mcp/build/index.js ] && echo \"Found\" || echo \"Missing\")"' >> /tmp/verify-mcp-connection.sh
98- chmod +x /tmp/verify-mcp-connection.sh
99-
100- echo "Jira MCP server and client setup complete"
101- echo "Server config: ~/.config/gitpod/mcp-config.json"
102- echo "Generic client config: ~/.config/mcp/client-config.json"
39+ echo "Jira MCP server setup complete"
10340 echo "Server location: /home/node/jira-mcp/"
41+ echo "Configuration: Uses standardized MCP config files (.mcp/config.json, mcp.json, .mcp.yaml)"
10442 echo "Project: MBA (coakley.atlassian.net)"
10543 echo "Available tools: create-ticket, get-ticket, search-tickets, update-ticket, link-tickets, get-test-steps, add-test-steps"
106- echo ""
107- echo "Run '/tmp/verify-mcp-connection.sh' to verify the setup"
108- echo "AI assistants may need to restart to pick up the new MCP configuration"
10944
11045 ready : |
111- if [ -f "/home/node/jira-mcp/build/index.js" ] && [ -f "$HOME/.config/gitpod/mcp-config.json" ] ; then
46+ if [ -f "/home/node/jira-mcp/build/index.js" ]; then
11247 echo "Jira MCP server is ready"
11348 exit 0
11449 else
0 commit comments