About Copilot Terminal Mcp Server
Copilot Terminal MCP Server lets GitHub Copilot Chat manage named terminals and run commands without blocking other work. It provides tools for parallel execution, output monitoring, and process control in VS Code workflows.
Key features
- 01Create and manage named terminals
- 02Run commands without blocking
- 03Capture and search terminal output
- 04Execute terminals in parallel
- 05Cancel processes and inspect state
Use cases
- 01Run development servers alongside Copilot
- 02Watch test output in a separate terminal
- 03Search logs for errors
- 04Manage Docker command sessions
MCP support
It acts as an MCP server for GitHub Copilot Chat, exposing terminal creation, command execution, output monitoring, and process management tools. The README describes automatic configuration in VS Code.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
6Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| cwd | string | No | Working directory path (optional) |
| name | string | Yes | Unique name for the terminal |
| shell | string | No | Shell to use (optional, auto-detected) |
Details
From the project README🚀 Copilot Terminal MCP Server
Advanced MCP Server for terminal management with GitHub Copilot integration
Transform your development experience with intelligent, non-blocking terminals perfectly integrated with GitHub Copilot and VS Code.
✨ Features
🔧 Advanced Terminal Management
- Named terminals: Create and manage terminals with specific names
- Non-blocking execution: Launch servers without blocking GitHub Copilot
- Real-time output: Capture and monitor terminal output instantly
- Parallel execution: Run multiple terminals simultaneously without conflicts
- Smart recovery: Automatic error handling and process recovery
⚡ Performance & Reliability
- < 10ms response time: Ultra-fast command execution
- Zero timeout issues: Say goodbye to 30-second waits
- Enterprise-grade logging: Comprehensive monitoring and debugging
- Cross-platform compatibility: Windows, macOS, Linux
🚀 34 Powerful Tools
createTerminal- Create named terminals with custom configurationssendCommand- Non-blocking command executiongetTerminalOutput- Real-time output capturelistTerminals- Comprehensive terminal overviewdeleteTerminal- Clean terminal managementsendCommandAndWait- Convenience helper for quick operationscancelCommand- Graceful process terminationgetTerminalState- Advanced terminal diagnosticssearchOutput- Search through terminal outputtailOutput- Monitor terminal output like Unix tail ... and 24+ additional specialized tools for complete terminal mastery!
📦 Ultra-Simple Installation
Option 1: Automatic Installation (Recommended)
# One-command installation and configuration
npx copilot-terminal-mcp-server install
That's it! The MCP server will be automatically:
- ✅ Installed globally
- ✅ Configured in VS Code
- ✅ Ready to use with GitHub Copilot
Option 2: Global NPM Installation
# Global installation
npm install -g copilot-terminal-mcp-server
# Auto-configuration
copilot-terminal-install install
Option 3: Status Check
# Verify installation status
npx copilot-terminal-mcp-server status
🎯 Instant Usage with GitHub Copilot
Once installed, use these magic commands in GitHub Copilot Chat:
🚀 Development Workflows
🏃♂️ Start development server:
@workspace Launch npm start in terminal "dev-server"
🧪 Run tests:
@workspace Run tests in watch mode in terminal "tests"
🔍 Monitor logs:
@workspace Show output from all active terminals
🛠️ Multi-project setup:
@workspace Launch backend AND frontend simultaneously
📊 Advanced Operations
🔍 Debug investigation:
@workspace Search for "ERROR" in terminal "api-server" output
📈 Performance monitoring:
@workspace Show terminal states and performance metrics
🧹 Cleanup:
@workspace Stop all inactive terminals older than 10 minutes
🔄 Process management:
@workspace Restart "app-server" if it crashed
💡 Quick Examples
Example 1: Full-Stack Development
@workspace Create terminal "backend" and run "npm run dev"
@workspace Create terminal "frontend" and run "npm start"
@workspace Monitor both terminals for errors
Example 2: Testing Pipeline
@workspace Run unit tests in terminal "unit-tests"
@workspace Run integration tests in terminal "integration"
@workspace Show test coverage from both terminals
Example 3: Docker Workflow
@workspace Start docker-compose in terminal "containers"
@workspace Monitor container logs in real-time
@workspace Stop containers gracefully when done
🎛️ Configuration
The server auto-configures with optimal defaults. Manual configuration in mcp.json:
{
"servers": {
"copilot-terminal": {
"command": "npx",
"args": ["copilot-terminal-mcp-server", "start"],
"env": {
"NODE_ENV": "production",
"MAX_TERMINALS": "20",
"COMMAND_TIMEOUT": "30000"
}
}
}
}
🔧 Troubleshooting
❌ "MCP server not found"
npx copilot-terminal-mcp-server install --force
❌ "Permission denied"
# Windows (Administrator)
npm install -g copilot-terminal-mcp-server
# macOS/Linux
sudo npm install -g copilot-terminal-mcp-server
❌ VS Code not recognizing
- Restart VS Code
- Open GitHub Copilot Chat
- Test:
@workspace List active terminals
🏗️ Architecture
┌─────────────────────────────────────────────────────────────┐
│ GitHub Copilot Chat │
├─────────────────────────────────────────────────────────────┤
│ MCP Protocol │
├─────────────────────────────────────────────────────────────┤
│ Copilot Terminal MCP Server │
│ ┌─────────────────┐ ┌─────────────────┐ ┌──────────────┐ │
│ │ Terminal Manager│ │ Smart Executor │ │ Tool Registry│ │
│ │ │ │ │ │ │ │
│ │ • Create │ │ • Non-blocking │ │ • 34 Tools │ │
│ │ • Monitor │ │ • Parallel │ │ • Auto-reg │ │
│ │ • Cleanup │ │ • Recovery │ │ • Extensible │ │
│ └─────────────────┘ └─────────────────┘ └──────────────┘ │
├─────────────────────────────────────────────────────────────┤
│ VS Code Terminal API │
└─────────────────────────────────────────────────────────────┘
📊 Performance Metrics
- Command Response: < 10ms average
- Memory Usage: < 50MB per instance
- Terminal Capacity: 20+ concurrent terminals
- Uptime: 99.9% reliability
- Error Recovery: < 1s automatic restart
🛠️ Development
# Clone repository
git clone https://github.com/menoxz/Copilot-terminal-MCP.git
cd Copilot-terminal-MCP
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run in development mode
npm run dev
# Run tests
npm test
📚 Documentation
- Quick Install Guide - Get started in 30 seconds
- Usage Examples - Real-world scenarios
- API Reference - Complete tool documentation
- Troubleshooting - Common issues & solutions
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📈 Roadmap
- Web Dashboard: Browser-based terminal monitoring
- Cloud Terminals: Remote server terminal management
- AI Integration: LLM-powered command suggestions
- Plugin System: Custom tool development framework
- Enterprise Features: SSO, audit logs, team management
🐛 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: [email protected]
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
⭐ Star History
If this project helped you, please consider giving it a star! ⭐
🚀 Transform your development workflow today!
Made with ❤️ by menoxz
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.