Skip to main content
Glama
mokemoke0821

MCP Server

by mokemoke0821

MCP サーバー

MCP (Message Control Protocol) サーバーは、Windows 環境で動作するシェルコマンド実行サーバーです。PowerShell、CMD、GitBash の各シェルをサポートし、特に日本語環境での使用に最適化されています。

特徴

  • 複数シェルサポート: PowerShell、CMD、GitBash

  • 日本語環境の完全対応: UTF-8/UTF-16LE エンコーディング処理

  • 特殊文字を含むコマンド処理: パイプライン(|)、セミコロン(;)などの特殊文字をサポート

  • 強化されたファイル検索機能: 日本語ファイル名対応

Related MCP server: Remote Command MCP Server

インストール

# 依存パッケージのインストール
npm install

使用方法

サーバーの起動

node server.js

または PM2 を使用して:

# PM2 のセットアップ (初回のみ)
setup-pm2.bat

# PM2 での起動
pm2 start autostart.js

テスト

テストスクリプトを実行して機能を検証できます:

# PowerShell 直接実行テスト
node test-direct-powershell.js

# MCP サーバー統合テスト
node test-mcp-server.js

開発

このプロジェクトは第3フェーズまでの改善を実装しています:

  1. 第1フェーズ: 基本機能実装

  2. 第2フェーズ: バッファサイズ増量、依存パッケージ追加

  3. 第3フェーズ: 日本語環境対応、特殊文字処理、ファイル検索機能改善

ライセンス

MITライセンス

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    F
    maintenance
    A secure server that enables AI applications to execute shell commands in specified directories, supporting multiple shell types (bash, sh, cmd, powershell) with built-in security features like directory isolation and timeout control.
    1
    22
    Apache 2.0
  • A
    license
    A
    quality
    F
    maintenance
    An MCP server that enables secure execution of shell commands across Windows, macOS, and Linux with built-in whitelisting and approval mechanisms for enhanced security.
    9
    71 npm
    22
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Cross-platform command execution server that intelligently adapts shell commands to the operating system and detects project-specific package managers (npm/bun, pip/poetry), with runtime-editable command mappings per project.
    5
    9 npm
    1
    GPL 3.0