.PHONY: test lint install mcp-http mcp-stop

test:
	uv run pytest

lint:
	uv run ruff check .

install:
	uv tool install -e .

mcp-http: ## Start MCP server in SSE mode (default port 8002)
	BRIDGE_MCP_PORT=$${BRIDGE_MCP_PORT:-8002} uv run python src/bridge/mcp_server/server.py --http

mcp-stop: ## Stop MCP server running on port 8002
	@lsof -ti:$${BRIDGE_MCP_PORT:-8002} | xargs -r kill -TERM && echo "MCP server stopped" || echo "No MCP server running on port $${BRIDGE_MCP_PORT:-8002}"
