-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·39 lines (31 loc) · 952 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·39 lines (31 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Exit on error
set -e
echo "Setting up Jira 9.12.14 MCP Server..."
# Check for Node.js
if ! command -v node &> /dev/null; then
echo "Node.js is not installed. Please install Node.js v16 or higher."
exit 1
fi
# Check Node.js version
NODE_VERSION=$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)
if [ "$NODE_VERSION" -lt 16 ]; then
echo "Node.js version must be v16 or higher. Current version: $(node -v)"
exit 1
fi
# Install dependencies
echo "Installing dependencies..."
npm install
# Build the project
echo "Building the project..."
npm run build
# Copy .env.example to .env if it doesn't exist
if [ ! -f .env ]; then
echo "Creating .env file from example..."
cp .env.example .env
echo "Please edit the .env file to add your Jira credentials."
fi
echo "Setup complete! To run the server, use:"
echo "npm start"
echo ""
echo "Remember to configure your JIRA_API_URL and JIRA_AUTH_TOKEN in the .env file."