Skip to content

cogitomancer/MCPlease

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MCPlease - Offline AI Coding Assistant

πŸ€– Powered by OSS-20B | πŸ”’ 100% Offline & Private | πŸ’» VSCode Ready | ⚑ One-Command Setup

MCPlease is an offline AI coding assistant that runs entirely on your machine. It provides intelligent code completion, explanations, and debugging help using a locally-hosted language model, ensuring your code never leaves your machine.

🎯 The Promise: AI-Native Development, Offline

Before MCPlease: Multiple setup steps, manual configuration, restarting processes With MCPlease: Download model once, then run ./start.sh for instant AI coding

Built for AI-native builders who want to keep building without cloud dependencies or credit systems.

✨ Features

  • πŸ”’ Complete Privacy: All AI processing happens locally - your code never leaves your machine
  • ⚑ Simple Setup: Download model once, then ./start.sh for instant AI coding
  • 🧠 Professional AI: Full OSS-20B model for production-quality coding assistance
  • πŸ’» Cross-Platform: Works on macOS, Linux, and Windows
  • πŸ”Œ VSCode Ready: Seamless integration with Continue.dev extension
  • πŸš€ AI-Native: Built for developers who code with AI

πŸš€ Quick Start

Download OSS-20B Model (Required)

python download_model.py

This is required - MCPlease needs the OSS-20B model to provide AI coding assistance.

Start MCPlease

./start.sh

Start Using MCPlease

  1. Download the model: python download_model.py (required)
  2. Start the system: ./start.sh
  3. Wait for VSCode to open
  4. Press Ctrl+I in VSCode to open Continue.dev
  5. Start coding with AI assistance!

Note: The fallback responses are just for testing - real AI coding assistance requires the full model.

πŸ“‹ System Requirements

Required

  • Python 3.9+
  • VSCode with Continue.dev extension
  • Any available port (automatically finds one)
  • 15GB+ free disk space (for OSS-20B model)
  • Stable internet connection (for model download)
  • Patience (10-30 minutes download time)

What You Get

  • Full OSS-20B model for AI coding assistance
  • Offline AI coding - no cloud dependencies
  • Professional-grade AI responses for building
  • Continue.dev integration in VSCode

πŸ”Œ VSCode Integration

Automatic! No manual configuration needed.

  1. Download the model: python download_model.py (required first)
  2. Run ./start.sh - This configures everything automatically
  3. VSCode opens with Continue.dev already configured
  4. Press Ctrl+I to start using AI assistance
  5. Start coding immediately!

The setup script handles all configuration automatically.

πŸ’‘ Usage Examples

Code Completion

def fibonacci(n):
    # AI will complete this function

Code Explanation

Select any code and ask: "What does this function do?"

Debugging Help

Paste error messages and get intelligent debugging suggestions.

πŸ› οΈ Manual Installation

If you prefer manual setup:

# Clone repository
git clone https://github.com/your-org/mcplease.git
cd mcplease

# Start server manually
python mcplease_http_server.py

# Configure VSCode manually
# (See .vscode/settings.json for configuration)

πŸ“Š Performance

  • Response Time: Instant with fallback responses
  • Memory Usage: Minimal (fallback mode)
  • Setup Time: ~10 seconds total
  • Context Length: Unlimited (fallback mode)

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   VSCode IDE    │◄──►│  HTTP Server     │◄──►│  AI Responses   β”‚
β”‚  (Continue.dev) β”‚    β”‚  (Port 8000)     β”‚    β”‚  (Fallback)     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
                       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                       β”‚  VSCode Config   β”‚
                       β”‚  (Auto-setup)    β”‚
                       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”§ Advanced Usage

Model Management

Download OSS-20B Model (Required)

python download_model.py
  • Downloads the full model (~13GB)
  • Automatically checks disk space
  • Resumes interrupted downloads
  • Required for AI coding assistance

Check Model Status

ls -la models/gpt-oss-20b/
  • Verify model files are present
  • Check total size (~13GB)

Remove Model (Not Recommended)

rm -rf models/gpt-oss-20b/
  • Frees up ~13GB of disk space
  • Breaks AI functionality - only use if you know what you're doing

Server Configuration

Custom Server Port

# The system automatically finds an available port
# If you need a specific port, set the PORT environment variable:
PORT=9000 ./start.sh

Manual Server Start

python mcplease_http_server.py

Custom VSCode Config

# Edit .vscode/settings.json for custom settings

πŸ§ͺ Development

Project Structure

mcplease/
β”œβ”€β”€ start.sh                    # One-command setup script
β”œβ”€β”€ mcplease_http_server.py     # HTTP server for Continue.dev
β”œβ”€β”€ .vscode/settings.json       # VSCode configuration
β”œβ”€β”€ tests/                      # Test suite
└── examples/                   # Usage examples

Running Tests

python -m pytest tests/ -v

Test Server

python test_server.py

🀝 Contributing

We welcome contributions!

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes and add tests
  4. Submit a pull request

πŸ“ License

This project is licensed under the MIT License.

πŸ†˜ Support

Common Issues

Model Download Problems

  • Slow download: Normal for 13GB file, be patient
  • Download interrupted: Just run python download_model.py again - it will resume
  • Not enough disk space: Free up at least 15GB before downloading
  • Network errors: Check your internet connection and try again

Server Issues

  • Port conflicts: Automatically resolved - the system finds an available port
  • Continue.dev not working: Restart VSCode after running ./start.sh

Getting Help

  • Documentation: Check our documentation files
  • Issues: Report bugs on GitHub Issues
  • Questions: Open a GitHub Discussion

πŸ™ Acknowledgments

  • Continue.dev for the excellent VSCode integration
  • FastAPI for the high-performance HTTP server
  • VSCode for the extensible IDE platform

**MCPlease** - Made with ❀️ for developers who want offline AI coding assistance #ForTheLoveOfCode

About

Forked MCP server project exploring tool integration and agent communication patterns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 97.6%
  • Shell 2.2%
  • Dockerfile 0.2%