We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bcherrington/activitywatch-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
dev-server.shβ’1.21 KiB
#!/bin/bash
# Development server script with auto-rebuild
# Usage: ./scripts/dev-server.sh
set -e
echo "π Starting ActivityWatch MCP Development Server"
echo ""
# Check if ActivityWatch is running
if ! curl -s http://localhost:5600/api/0/info > /dev/null 2>&1; then
echo "β οΈ Warning: ActivityWatch doesn't appear to be running on http://localhost:5600"
echo " The server will start, but tools may fail until ActivityWatch is running."
echo ""
fi
# Build the project
echo "π¦ Building project..."
npm run build
# Start the HTTP server
echo ""
echo "β Build complete!"
echo ""
echo "π Starting HTTP server on http://localhost:${MCP_PORT:-3000}"
echo " Health check: http://localhost:${MCP_PORT:-3000}/health"
echo " MCP endpoint: http://localhost:${MCP_PORT:-3000}/mcp"
echo ""
echo "π‘ To restart after code changes:"
echo " 1. Press Ctrl+C to stop the server"
echo " 2. Run: npm run build && npm run start:http"
echo ""
echo "π Logs:"
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
npm run start:http