### Install Zen MCP Server using UVX Quick Install Source: https://claudelog.com/claude-code-mcps/zen-mcp-server This command provides a one-line installation for the Zen MCP Server using the UVX package manager, eliminating the need for manual setup. It directly installs the server from its GitHub repository. ```shell exec $(which uvx || echo uvx) --from git+https://github.com/BeehiveInnovations/zen-mcp-server.git zen-mcp-server ``` -------------------------------- ### Install Zen MCP Server via Traditional Method Source: https://claudelog.com/claude-code-mcps/zen-mcp-server This is an alternative installation method for the Zen MCP Server, to be used if the UVX quick install method fails. It involves cloning the repository from GitHub and then running a server start script. This method requires manual execution of the server. ```shell # Only if uvx method doesn't work git clone https://github.com/BeehiveInnovations/zen-mcp-server.git cd zen-mcp-server ./run-server.sh # or ./run-server.ps1 on Windows ``` -------------------------------- ### Migrate Claude Code from npm to Native Installer Source: https://claudelog.com/install-claude-code This command initiates the migration process from an existing npm installation of Claude Code to the recommended native installer. It handles downloading the native installer, migrating configurations, and replacing the old installation. ```bash claude install ``` -------------------------------- ### Install Context7 MCP with NPX Source: https://claudelog.com/claude-code-mcps/context7-mcp This command installs the Context7 MCP tool using NPX, which is the recommended method for setup. It ensures you are using the latest version available. ```bash npx -y @upstash/context7-mcp ``` -------------------------------- ### Clone and Run Claudia Application Source: https://claudelog.com/claude-code-mcps/claudia Clones the Claudia repository from GitHub, installs its dependencies using Bun, and starts the development server for the Tauri desktop application. ```bash # Clone and build git clone https://github.com/getAsterisk/claudia.git cd claudia bun install # Run the application bun run tauri dev ``` -------------------------------- ### Alternative Local Setup for Serena Source: https://claudelog.com/claude-code-mcps/serena Steps for setting up Serena locally, including cloning the repository, optionally copying a configuration template, and running the MCP server using 'uv run'. ```bash # 1. Clone the repository (REQUIRED) git clone https://github.com/oraios/serena cd serena # 2. Optional: Copy configuration template cp src/serena/resources/serena_config.template.yml serena_config.yml # 3. Run the MCP server uv run serena-mcp-server ``` -------------------------------- ### Install Claude Code using Native Installer (Windows PowerShell) Source: https://claudelog.com/install-claude-code This command uses PowerShell to download and execute the Claude Code installation script for Windows. It fetches the script from the provided URL and runs it, performing the installation. ```powershell irm https://claude.ai/install.ps1 | iex ``` -------------------------------- ### Install Claude Code using Native Installer (Windows CMD) Source: https://claudelog.com/install-claude-code This command sequence uses the Command Prompt (CMD) on Windows to download the Claude Code installer script, execute it, and then clean up the downloaded script. It ensures Claude Code is installed via the native installer. ```cmd curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd ``` -------------------------------- ### Documentation and Examples Access Example Source: https://claudelog.com/faqs/--add-dir Configure your Claude Code workspace with `--add-dir` to include documentation and example code repositories. This provides immediate access to relevant materials, enhancing understanding and code quality. ```bash # Access documentation and example code claude --add-dir ../project-docs --add-dir ../code-examples ``` -------------------------------- ### Install Claude Code using Homebrew (macOS, Linux) Source: https://claudelog.com/install-claude-code This command installs Claude Code using the Homebrew package manager on macOS and Linux systems. Ensure Homebrew is installed and up-to-date before running this command. ```bash brew install --cask claude-code ``` -------------------------------- ### CLAUDE.md Configuration Example Source: https://claudelog.com/faqs/what-is-claude-md An example CLAUDE.md file demonstrating how to structure project configurations, including an overview, commands, file boundaries, rules, and code examples. This serves as a template for defining project-specific instructions for Claude Code. ```markdown # CLAUDE.md ## Project Overview Python web API using FastAPI and PostgreSQL. ## Commands - python -m venv venv: Create virtual environment - source venv/bin/activate: Activate environment - pip install -r requirements.txt: Install dependencies - uvicorn main:app --reload: Start development server - pytest: Run tests ## File Boundaries - Safe to edit: /app/, /tests/, /docs/ - Never touch: /venv/, /__pycache__/, /.pytest_cache/ ## Rules - Use type hints for all functions - Follow PEP 8 style guidelines - Add docstrings to all classes and functions - Write tests for new endpoints ## Code Examples ```python # Good: Proper typing and documentation from typing import List, Optional def get_users(limit: int = 10, active_only: bool = True) -> List[User]: """Retrieve users from database with optional filtering. Args: limit: Maximum number of users to return active_only: Whether to filter for active users only Returns: List of User objects """ return db.query(User).filter(User.is_active == active_only).limit(limit).all() # Bad: Missing types and documentation def get_users(limit=10, active=True): return db.query(User).filter(User.is_active == active).limit(limit).all() ``` ``` ``` -------------------------------- ### Install TweakCC using npm/pnpm Source: https://claudelog.com/claude-code-mcps/tweakcc This snippet shows how to install TweakCC, a CLI tool for personalizing Claude Code. It covers quick start with npx, installation via pnpm, and global installation with npm. The tool requires Node.js and npm/pnpm to be installed. ```shell npx tweakcc ``` ```shell # Using pnpm pnpm dlx tweakcc # Global installation (if preferred) npm install -g tweakcc tweakcc ``` -------------------------------- ### Bash Commands for Custom Agent Installation Source: https://claudelog.com/inventions/sub-agents-txt This sequence of Bash commands illustrates the process of installing a custom agent. It includes fetching the agent's details using curl, creating a directory for agents, and downloading the agent's configuration file. ```bash curl -s https://claudelog.com/subagents.txt ``` ```bash mkdir -p .claude/agents ``` ```bash curl -s https://claudelog.com/agents/claudelog-plan-mode-specialist.md ``` -------------------------------- ### Install Claude Code using Native Installer (macOS, Linux, WSL) Source: https://claudelog.com/install-claude-code This command downloads and executes the Claude Code installation script for macOS, Linux, and Windows Subsystem for Linux (WSL). It installs the stable version of Claude Code directly from the provided URL. ```bash # Install stable version curl -fsSL https://claude.ai/install.sh | bash ``` -------------------------------- ### Install Node.js LTS on WSL2 Source: https://claudelog.com/faqs/how-to-install-claude-code-on-windows Installs Node.js version 18.0+ (LTS) in your WSL2 environment using the NodeSource setup script. This provides the necessary JavaScript runtime for Claude Code. ```shell # Download and run NodeSource setup script for LTS version curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - sudo apt-get install -y nodejs ``` -------------------------------- ### Configure MCP Servers in claude.json Source: https://claudelog.com/faqs/how-to-setup-claude-code-mcp-servers This JSON configuration defines MCP servers for projects, specifying the command and arguments to launch them. It demonstrates how to set up the 'brave-search' and 'context7' servers using npx. Ensure Node.js is installed for npx commands. ```json { "projects": { "/path/to/your/project": { "mcpServers": { "brave-search": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-brave-search"] }, "context7": { "command": "npx", "args": ["-y", "context7-mcp"] } } } } } ``` -------------------------------- ### Install Linux Distribution on WSL2 (Windows) Source: https://claudelog.com/install-claude-code Installs a specified Linux distribution, recommended to be Ubuntu, within the Windows Subsystem for Linux 2 environment. This command is used after WSL2 is installed to set up a usable Linux operating system for development. ```powershell wsl --install -d Ubuntu ``` -------------------------------- ### Install Serena MCP Server using UVX Source: https://claudelog.com/claude-code-mcps/serena Installs the Serena MCP server directly from GitHub using the uvx package manager. This is the recommended method for MCP integration. It supports both Windows and Linux/macOS environments. ```bash # Windows: uvx --from git+https://github.com/oraios/serena serena-mcp-server.exe # Linux/macOS: uvx --from git+https://github.com/oraios/serena serena-mcp-server ``` -------------------------------- ### Example of Numbered System Steps in CLAUDE.md Source: https://claudelog.com/faqs/how-to-write-better-prompts-for-claude-code Demonstrates how to define a sequence of system steps using numbered lists within CLAUDE.md. This structured format helps Claude adhere to the specified order of operations and can facilitate the use of tools for progress tracking. ```markdown 1. Connect to the database 2. Validate user input 3. Update the record 4. Return the response ``` -------------------------------- ### Install CC Usage Tool Source: https://claudelog.com/claude-code-cost Installs the CC Usage tool, a command-line interface for monitoring Claude Code token usage and costs. It can be quickly started with npx or installed globally using npm. ```bash npx ccusage@latest # Quick start npm install -g ccusage # Global installation ``` -------------------------------- ### Install SuperClaude Framework Source: https://claudelog.com/faqs/what-is-super-claude Clones the SuperClaude repository and runs the installation script to configure the command system in the user's ~/.claude/ directory. This sets up the specialized commands and personas for Claude Code. ```bash git clone https://github.com/NomenAK/SuperClaude.git cd SuperClaude ./install.sh ``` -------------------------------- ### Install with Specific npm Registry Source: https://claudelog.com/troubleshooting Installs Claude Code using a specified npm registry, which can help circumvent issues with the default registry or network restrictions. ```shell npm install -g @anthropic-ai/claude-code --registry https://registry.npmjs.org/ ``` -------------------------------- ### Test Claude Code Installation Source: https://claudelog.com/faqs/how-to-install-claude-code-on-windows Creates a test directory, initializes a README file, and launches Claude Code within that directory. This verifies the basic installation and functionality. ```shell mkdir claude-test cd claude-test echo "# Test Project" > README.md claude ``` -------------------------------- ### Install Claude Code on Windows Source: https://claudelog.com/troubleshooting Provides instructions for installing Claude Code on Windows by running the Command Prompt as an administrator to overcome potential permission issues. ```shell # Run Command Prompt as Administrator npm install -g @anthropic-ai/claude-code ``` -------------------------------- ### Configure Claude Code Authentication Source: https://claudelog.com/faqs/download-claude-code-for-mac This command initiates the configuration process for Claude Code, likely setting up API keys or authentication tokens required for its operation. It's a necessary step after installation. ```bash claude config ``` -------------------------------- ### Install WSL2 (Windows) Source: https://claudelog.com/install-claude-code Installs the Windows Subsystem for Linux version 2, a prerequisite for running Linux environments on Windows. This command enables a Linux-based workflow for Claude Code development without requiring a separate virtual machine. ```powershell wsl --install ``` -------------------------------- ### Local Installation MCP Configuration for Serena Source: https://claudelog.com/claude-code-mcps/serena MCP configuration for a locally installed Serena instance. It specifies the absolute path to the 'uv' executable and the directory containing the Serena project to run the MCP server. ```json { "mcpServers": { "serena": { "command": "/absolute/path/to/uv", "args": [ "run", "--directory", "/absolute/path/to/serena", "serena-mcp-server" ] } } } ```