Development Environment MCP Server

by 0nilinkz

210 downloads Not rated yet MIT license

About

Multi-platform environment detection MCP server for VS Code Copilot integration

Details

License
MIT license

Explore

- Automatic Environment Detection: Detects Windows, Linux, macOS, and Raspberry Pi environments
- Shell-Aware Command Syntax: Provides correct terminal command syntax for PowerShell, Bash, Zsh
- VS Code Integration: Seamless integration with GitHub Copilot and VS Code tasks
- Cross-Platform: Works across Windows, Linux, and macOS development environments
- Extensible: Easy to extend with new tools and environment detection logic


A Model Context Protocol (MCP) server that provides intelligent environment detection and command syntax assistance for cross-platform development workflows.

pip install dev-environment-mcp

git clone https://github.com/yourusername/dev-environment-mcp.git
cd dev-environment-mcp
pip install -e .


dev-env-mcp detect-environment --format summary


User: "Run the tests"
Copilot: (detects Windows PowerShell) "python -m pytest test/"

User: "Run the tests"
Copilot: (detects Linux) "python3 -m pytest test/"

User: "Set environment variable"
Copilot: (Windows) "$env:PYTHONPATH = 'c:\dev\project'"
Copilot: (Linux) "export PYTHONPATH=/home/user/project"


Detects current OS, shell, hardware, and provides environment context.

Parameters:
- format (string): Output format - "json", "summary", "copilot"

- DEV_ENV_MCP_CONFIG: Path to custom configuration file
- DEV_ENV_MCP_LOG_LEVEL: Logging level (DEBUG, INFO, WARN, ERROR)
- DEV_ENV_MCP_CACHE_TTL: Cache TTL for environment detection (seconds)

Create a dev-env-mcp.json config file:

json
{
"detection": {
"cache_ttl": 300,
"enable_hardware_detection": true,
"custom_environments": {
"my-docker": {
"detect_command": "cat /.dockerenv",
"shell": "bash",
"python_cmd": "python3"
}
}
},
"commands": {
"custom_operations": {
"my-build": {
"windows": "msbuild /p:Configuration=Release",
"linux": "make build",
"macos": "xcodebuild -configuration Release"
}
}
}
}

bash
git clone https://github.com/yourusername/dev-environment-mcp.git
cd dev-environment-mcp
pip install -e ".[dev]"

bash
pytest test/
```

A Model Context Protocol (MCP) server that provides intelligent environment detection and command syntax assistance for cross-platform development workflows.

Features

- Automatic Environment Detection: Detects Windows, Linux, macOS, and Raspberry Pi environments
- Shell-Aware Command Syntax: Provides correct terminal command syntax for PowerShell, Bash, Zsh
- VS Code Integration: Seamless integration with GitHub Copilot and VS Code tasks
- Cross-Platform: Works across Windows, Linux, and macOS development environments
- Extensible: Easy to extend with new tools and environment detection logic

Quick Start

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.