uv provides the structure with --lib flag
uv init --lib mcp-wiki
cd mcp-wiki
mkdir -p src/mcp_wiki
touch src/mcp_wiki/server.py # Your MCP server code (tool, resources, prompts)
# src/mcp_wiki/__init__.py # Primary CLI entry point created by uv
touch src/mcp_wiki/__main__.py # To enable running as a Python module