Skip to main content
Glama
init.shโ€ข1.45 kB
#!/usr/bin/env bash set -e echo "๐Ÿš€ NIX MCP Server - Simplified Initialization" echo "==============================================" # Colors for output RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[1;33m' NC='\033[0m' # No Color # Check if uv is installed if ! command -v uv &> /dev/null; then echo -e "${YELLOW}๐Ÿ“ฆ Installing UV package manager...${NC}" curl -LsSf https://astral.sh/uv/install.sh | sh export PATH="$HOME/.local/bin:$PATH" fi # Install dependencies echo -e "${YELLOW}๐Ÿ“ฆ Installing Python dependencies...${NC}" uv sync # Create .env file if it doesn't exist if [ ! -f .env ]; then echo -e "${YELLOW}๐Ÿ“ Creating .env file from template...${NC}" cp .env.example .env echo -e "${GREEN}โœ“ Created .env file - please edit it with your configuration${NC}" fi # Test basic imports echo -e "${YELLOW}๐Ÿงช Testing basic setup...${NC}" if uv run python -c "import sys; sys.path.insert(0, 'src'); from nix_mcp.server_fastmcp import mcp; print('โœ“ Server imports working')" 2>/dev/null; then echo -e "${GREEN}โœ“ Basic imports successful${NC}" else echo -e "${RED}โœ— Import test failed - please check the installation${NC}" exit 1 fi echo "" echo -e "${GREEN}โœ… Initialization complete!${NC}" echo "" echo "Next steps:" echo " 1. Edit .env file with your configuration" echo " 2. Run 'uv run python main.py' to start the server" echo " 3. Run 'uv run python test_simple.py' to test"

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/haiqiubullish/nix-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server