Skip to main content
Glama
mokemoke0821

MCP Server

by mokemoke0821

MCP 服务器

MCP(消息控制协议)服务器是一个在Windows环境中运行的shell命令执行服务器。它支持 PowerShell、CMD 和 GitBash shell,并且特别针对日语环境进行了优化。

特征

  • 多 shell 支持: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

发展

该项目实施三个阶段的改进:

  1. 第一阶段:基本功能实现

  2. 第 2 阶段:增加缓冲区大小,添加依赖项

  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