WSL + VSCode + Claude Desktop + MCP Setup
Version: 1.0.1 | Last Updated: 2024-12-07
1. WSL Environment (PowerShell Admin)
# Επαλήθευση WSL
wsl --list --verbose
# Αναμενόμενο output: Ubuntu-22.04 Running
# Επανεκκίνηση αν χρειάζεται
wsl --shutdown
wsl -d Ubuntu-22.04
2. Project Setup (WSL Ubuntu)
# Project directory
cd ~/projects/LegalTextAnalysis
# Environment
source .venv/bin/activate
# Verify packages
pip list | grep -E "mcp-server-sqlite|python-dotenv"
3. VSCode Integration
// .vscode/settings.json
{
"terminal.integrated.defaultProfile.linux": "bash",
"python.defaultInterpreterPath": "/home/alex/projects/LegalTextAnalysis/.venv/bin/python",
"terminal.integrated.cwd": "/home/alex/projects/LegalTextAnalysis"
}
4. Claude Desktop Configuration
// %APPDATA%\\\\Claude\\\\claude_desktop_config.json
{
"mcpServers": {
"sqlite": {
"command": "wsl",
"args": [
"-e", "bash", "-ic",
"cd ~/projects/LegalTextAnalysis && source .venv/bin/activate && mcp-server-sqlite --db-path=data/legal_text.db"
],
"env": {
"PYTHONIOENCODING": "utf-8",
"UV_FORCE_STDIO": "1",
"DEBUG": "mcp:*,sqlite:*",
"MCP_SQLITE_EXPOSE_TABLES": "true"
}
}
}
}
5. Verification Steps
# 1. Start MCP Server
cd ~/projects/LegalTextAnalysis
source .venv/bin/activate
mcp-server-sqlite --db-path=data/legal_text.db
# 2. Launch VSCode (from WSL)
code .
# 3. Test Claude Connection
# Run in Claude Desktop:
SELECT name FROM sqlite_master WHERE type='table';