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
#!/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"