DM

dfinke/mcp-powershell-exec

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

59 stars 12 forks 품질 56 트렌드 13MIT

사이트맵 PowerShell 스크립트를 실행하는 서버

개요

MCP PowerShell Exec Server는 문자열로 PowerShell 스크립트를 허용하는 경량 서버이며 출력을 반환합니다. PowerShell을 이해하고 작업하는 AI 조수 활성화. - 문자열 입력을 통해 PowerShell 스크립트를 수락 - MCP Server 환경에서 안전하게 실행하는 스크립트 - 실시간 실행 결과를 반환 저장소를 복제하고 서버를 설정: MCP PowerShell Exec Server가 동작하는 비디오를 시청하십시오. VSCode Insiders에서 GitHub Copilot을 사용하여이 MCP 서버를 사용하려면 다음 단계를 따르십시오. 1. - 다운로드 및 VSCode Insiders의 최신 버전을 설치 1. - Open VSCode Insiders - 확장 마켓 플레이스로 이동 - 검색 및 설치 "GitHub Copilot" 3. - .vscode/mcp.json를 여십시오 server.py 파일에 실제 경로로 경로를 바꾸십시오.

개요(AI 번역)

개요

MCP PowerShell Exec Server는 문자열로 PowerShell 스크립트를 허용하는 경량 서버이며 출력을 반환합니다. PowerShell을 이해하고 작업하는 AI 조수 활성화.

특징

  • 문자열 입력을 통해 PowerShell 스크립트를 허용
  • MCP Server 환경에서 안전하게 스크립트 실행
  • 실시간 재시작 결과

설치

저장소를 복제하고 서버를 설정:

작업 중

MCP PowerShell Exec Server가 동작하는 비디오를 시청하십시오.

사용법

VSCode Insiders에서 GitHub Copilot과 통합

VSCode Insiders에서 GitHub Copilot을 사용하여이 MCP 서버를 사용하려면 다음 단계를 따르십시오.

  1. **Install VSCode 내부자 **
  • VSCode Insiders의 최신 버전 다운로드 및 설치
  1. **Install GitHub Copilot 확장 **
  • VSCode 내부자 열기
  • 확장 마켓으로 이동
  • 검색 및 설치 “GitHub Copilot”
  1. ** MCP Server 구성 **
  • 오픈 .vscode/mcp.json

실제 경로로 경로를 server.py 파일로 바꾸십시오.

  1. ** 에이전트 모드**
  • VSCode Insiders에서 Copilot 채팅 열기
  • "Copilot Edits"를 클릭하십시오
  • "Agent mode"를 선택하십시오

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

MCP PowerShell Exec Server

Overview

MCP PowerShell Exec Server is a lightweight server that accepts PowerShell scripts as strings, executes them, and returns the output. Enabling AI assistants to understand and work with PowerShell.

Features

  • Accepts PowerShell scripts via string input
  • Executes scripts securely in an MCP Server environment
  • Returns execution results in real-time

Installation

Clone the repository and set up the server:

git clone https://github.com/yourusername/mcp-powershell-exec.git
cd mcp-powershell-exec

In Action

Watch the video to see MCP PowerShell Exec Server in action:

Usage

Integration with GitHub Copilot in VSCode Insiders

To use this MCP server with GitHub Copilot in VSCode Insiders, follow these steps:

  1. Install VSCode Insiders

  2. Install GitHub Copilot Extension

    • Open VSCode Insiders
    • Go to the Extensions marketplace
    • Search for and install “GitHub Copilot”
  3. Configure MCP Server

    • Open .vscode/mcp.json
    {
     "servers": {
         "powershell-integration": {
             "command": "py", // Python executable
             "args": [
                "drive:/yourpath/server.py"
             ],
             "env": {}
         }
     }
    }
    

    Replace the path with the actual path to your server.py file.

  4. Enable Agent Mode

    • Open Copilot chat in VSCode Insiders
    • Click on “Copilot Edits”
    • Choose “Agent mode”
    • Click the refresh button in the chat input to load the available tools

System Requirements

  • Python: Version 3.10 or higher (required for optimal performance)
  • PowerShell: Version 5.1

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For issues and questions:

  • Create an issue in this GitHub repository
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →