#!/usr/bin/env bash
set -e
# Load environment variables
if [ -f .env ]; then
set -a
source .env
set +a
fi
# Ensure UV is in PATH
export PATH="$HOME/.local/bin:$PATH"
# Check if initialized
if [ ! -d "src/nix_mcp/protobuf" ] || [ -z "$(ls -A src/nix_mcp/protobuf 2>/dev/null)" ]; then
echo "⚠️ Project not initialized. Running initialization..."
./init.sh
fi
echo "🚀 Starting NIX MCP Server..."
echo " Rodeos endpoint: ${RODEOS_ENDPOINT:-http://127.0.0.1:8880}"
echo " Nodeos API: ${NODEOS_API:-http://127.0.0.1:8888}"
echo " Log level: ${LOG_LEVEL:-INFO}"
echo ""
# Run the server
exec uv run python main.py "$@"
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