mcpField
C
Copilot Terminal Mcp Server

Copilot Terminal Mcp Server

Local
github.com/menoxzDeveloper Tools1Updated 63w ago

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

  1. 01Create and manage named terminals
  2. 02Run commands without blocking
  3. 03Capture and search terminal output
  4. 04Execute terminals in parallel
  5. 05Cancel processes and inspect state

Use cases

  1. 01Run development servers alongside Copilot
  2. 02Watch test output in a separate terminal
  3. 03Search logs for errors
  4. 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.

mcp.json · Universal config
{
"mcpServers": {
"Copilot-terminal-MCP": {
"command": "npx",
"args": [
"-y",
"copilot-terminal-mcp"
],
"env": {
"NODE_ENV": "<NODE_ENV>",
"MAX_TERMINALS": "<MAX_TERMINALS>",
"COMMAND_TIMEOUT": "<COMMAND_TIMEOUT>"
}
}
}
}
Run commandnpx -y copilot-terminal-mcp
Environment variables to set
NODE_ENV
MAX_TERMINALS
COMMAND_TIMEOUT

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmcopilot-terminal-mcp

Tools

6

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
cwdstringNoWorking directory path (optional)
namestringYesUnique name for the terminal
shellstringNoShell to use (optional, auto-detected)

Details

From the project README

🚀 Copilot Terminal MCP Server

NPM Version License: MIT Node.js Version

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
  1. createTerminal - Create named terminals with custom configurations
  2. sendCommand - Non-blocking command execution
  3. getTerminalOutput - Real-time output capture
  4. listTerminals - Comprehensive terminal overview
  5. deleteTerminal - Clean terminal management
  6. sendCommandAndWait - Convenience helper for quick operations
  7. cancelCommand - Graceful process termination
  8. getTerminalState - Advanced terminal diagnostics
  9. searchOutput - Search through terminal output
  10. tailOutput - 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
  1. Restart VS Code
  2. Open GitHub Copilot Chat
  3. 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

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup
  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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

📄 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! ⭐

Star History Chart


🚀 Transform your development workflow today!

Made with ❤️ by menoxz

Comments

Markdown supported

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.