cmd-mcp-server

by PhialsBasement
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Allows the execution of command-line operations on Linux systems through a persistent shell session, providing access to Linux system commands and utilities.

CMD MCP サーバー

WindowsとLinuxの両方でCMDコマンドを実行し、SSH接続を可能にするモデルコンテキストプロトコル(MCP)サーバー実装。このサーバーにより、コマンドライン操作をMCP対応アプリケーションに統合できます。

特徴

  • MCP を介して CMD コマンドを実行する
  • TypeScript実装
  • 公式MCP SDKをベースに構築
  • クロスプラットフォームの互換性

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の CMD サーバーを自動的にインストールするには:

npx -y @smithery/cli install server-cmd --client claude

手動インストール

npm install server-cmd

前提条件

  • Node.js(v16以上を推奨)
  • npm または yarn パッケージマネージャー

使用法

import { MCPCmdServer } from 'server-cmd'; // Initialize the server const server = new MCPCmdServer(); // Start the server server.start();

構成

サーバーは、環境変数または構成オブジェクトを通じて構成できます。

const config = { // Add your configuration options here }; const server = new MCPCmdServer(config);

発達

開発環境をセットアップするには:

  1. リポジトリをクローンします。
git clone https://github.com/PhialsBasement/CMD-MCP-Server.git cd CMD-MCP-Server
  1. 依存関係をインストールします:
npm install
  1. プロジェクトをビルドします。
npm run build

スクリプト

  • npm run build - TypeScript を JavaScript にコンパイルする
  • npm run prepare - 公開用のパッケージを準備する

依存関係

  • @modelcontextprotocol/sdk : ^1.0.1
  • glob :^10.3.10
  • zod-to-json-schema : ^3.23.5

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

安全

コマンドライン操作の実行は潜在的に危険を伴う可能性があることにご注意ください。本番環境でこのサーバーを使用する場合は、適切なセキュリティ対策と入力検証を実装してください。

サポート

問題や機能のリクエストについては、 GitHub の問題追跡ツールを使用してください。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

CMD経由であらゆるコマンド実行を許可するMCPサーバー

  1. Features
    1. Installation
      1. Installing via Smithery
      2. Manual Installation
    2. Prerequisites
      1. Usage
        1. Configuration
          1. Development
            1. Scripts
              1. Dependencies
                1. Contributing
                  1. License
                    1. Security
                      1. Support
                        ID: s83mqs6123