S

enhanced-dev-env

...
Created 12/27/2024bydanmarauda

Language:

Shell

Stars:

2

Forks:

0

Enhanced Development Environment with MCP Servers

A comprehensive development environment featuring UV package manager, Open Interpreter (dev branch), and Model Context Protocol servers.

šŸš€ Features

  • UV package manager for fast Python package management
  • Modern CLI tools (exa, bat, ripgrep, etc.)
  • Zsh with Oh My Zsh and useful plugins
  • Development tools (git, vim, tmux, etc.)
  • Rust-based performance tools
  • Docker and Vagrant configurations
  • Optimized for Python development

šŸ› ļø Included Tools

Python Tools

  • UV package manager
  • IPython
  • Black (formatter)
  • isort (import sorter)
  • mypy (type checker)
  • ruff (linter)
  • pytest (testing)
  • debugpy (debugging)
  • pre-commit

Modern CLI Tools

  • exa (modern ls)
  • bat (modern cat)
  • ripgrep (modern grep)
  • fd-find (modern find)
  • delta (git diff)
  • zoxide (smart cd)
  • starship (shell prompt)
  • dust (modern du)
  • hyperfine (benchmarking)

Development Tools

  • Git
  • Vim
  • Tmux
  • HTTPx
  • Docker
  • Docker Compose

šŸš€ Quick Start

Using Docker

# Build and start the container
docker-compose up -d

# Enter the container
docker-compose exec dev zsh

# Or use the run command
docker-compose run --rm dev

Using Vagrant

# Start the VM
vagrant up

# SSH into the VM
vagrant ssh

# Destroy the VM
vagrant destroy

šŸ“ Directory Structure

.
ā”œā”€ā”€ Dockerfile           # Container definition
ā”œā”€ā”€ docker-compose.yml   # Container orchestration
ā”œā”€ā”€ Vagrantfile         # VM definition
ā”œā”€ā”€ .zshrc              # Shell configuration
ā”œā”€ā”€ workspace/          # Your projects directory
ā””ā”€ā”€ .config/
    ā””ā”€ā”€ uv/            # UV configuration

šŸ”§ Usage

Package Management

# Install packages
python-install pandas numpy

# Create virtual environment
venv-create

# Activate virtual environment
venv-activate

# Install project dependencies
python-deps

Development Workflow

# Initialize new project
uv-init myproject

# Create project from template

            
        
            
                uv-scaffold fastapi myapi

# Set up testing
uv-test-setup

# Check project structure
uv-project-check

Maintenance

# Clean UV cache
uv-clean

# Rebuild virtual environment
uv-venv-rebuild

# Check system
uv-doctor

āš™ļø Customization

Adding Local Configuration

Create ~/.zshrc.local for machine-specific settings:

# Local environment variables
export MY_VAR="value"

# Local aliases
alias myalias="mycommand"

Modifying UV Configuration

Edit ~/.config/uv/uvconfig.toml:

[cache]
maximum_size = "10GB"
shared = true

[network]
concurrent_downloads = 8

šŸ” Troubleshooting

Common Issues

  1. Package Installation Problems

    uv-clean
    uv-doctor
    
  2. Virtual Environment Issues

    uv-venv-rebuild
    
  3. Performance Issues

    bench "your-command"  # Uses hyperfine
    

šŸ“¦ Maintenance

Container Updates

# Rebuild container with updates
docker-compose build --no-cache

# Pull latest base image
docker-compose pull

VM Updates

# Update VM
vagrant provision

# Update box
vagrant box update

šŸ”’ Security Notes

  • Container runs as non-root user
  • SSH keys mounted read-only
  • Git config mounted read-only
  • Minimal base image
  • Regular security updates
Last updated: 1/5/2025

Publisher info

danmarauda's avatar

danmarauda

8
followers
38
following
233
repos

More MCP servers built with Shell

cursor-resources

.cursorrules, MCP and MCP servers, prompts, tips and tricks

By ample-education3
05-make-your-mcp-server

By ollama-tlms-golang2
MCPE-Server-Scripts

My own scipts for MCPE servers (at the moment supports only PM-based servers)

By FaigerSYS3