Skip to content

Commit bf63505

Browse files
jrcoakona-agent
andcommitted
Fix Jira MCP automation syntax error
- Add missing 'fi' statement to close conditional block in setupJiraMCP task - Fix file path expansion in ready check (~/ to $HOME/) - Resolve 'unexpected end of file' error preventing MCP server setup - Automation now runs successfully and tests MCP server functionality Co-authored-by: Ona <no-reply@ona.com>
1 parent 26f8fd5 commit bf63505

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.gitpod/automations.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ services:
5555
echo "🎯 Project: MBA (coakley.atlassian.net)"
5656
5757
ready: |
58-
if [ -f "/home/node/jira-mcp/build/index.js" ] && [ -f "~/.config/gitpod/mcp-config.json" ]; then
58+
if [ -f "/home/node/jira-mcp/build/index.js" ] && [ -f "$HOME/.config/gitpod/mcp-config.json" ]; then
5959
echo "Jira MCP server is ready"
6060
exit 0
6161
else
6262
echo "Jira MCP server not ready"
6363
exit 1
6464
fi
65-
65+
6666
stop: |
6767
echo "Jira MCP server stopped (no persistent process)"
6868
@@ -296,11 +296,12 @@ tasks:
296296
echo "🧪 Testing MCP server..."
297297
cd /home/node/jira-mcp
298298
299-
# Quick test to verify server works
300-
if echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {"roots": {"listChanged": true}}, "clientInfo": {"name": "test-client", "version": "1.0.0"}}}' | timeout 5 node build/index.js >/dev/null 2>&1; then
301-
echo "✅ Jira MCP server setup complete and tested!"
302-
else
303-
echo "⚠️ Jira MCP server setup complete but test failed"
299+
# Quick test to verify server works
300+
if echo '{"jsonrpc": "2.0", "id": 1, "method": "initialize", "params": {"protocolVersion": "2024-11-05", "capabilities": {"roots": {"listChanged": true}}, "clientInfo": {"name": "test-client", "version": "1.0.0"}}}' | timeout 5 node build/index.js >/dev/null 2>&1; then
301+
echo "✅ Jira MCP server setup complete and tested!"
302+
else
303+
echo "⚠️ Jira MCP server setup complete but test failed"
304+
fi
304305
fi
305306
306307
echo "📍 Configuration: ~/.config/gitpod/mcp-config.json"

0 commit comments

Comments
 (0)