PC

phialsbasement/cmd-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

26 stars 11 forks 品質 54 トレンド 0MIT

CMDコマンドを実行するためのMCPサーバー。 付加的な代理人のためのclaudeに引っ掛けることができます.

概要

WindowsとLinuxの両方でCMDコマンドを実行するためのモデルコンテキストプロトコル(MCP)サーバーの実装、およびSSH接続を可能にする。 このサーバーでは、MCP 互換アプリケーションとコマンドライン操作を統合できます。 - MCP - TypeScript の実装で CMD コマンドを実行 - 公式 MCP SDK で構築 - クロスプラットフォームの互換性 クラウドデスクトップ用のCMD ServerをSmisery経由で自動的にインストールするには: - Node.js(v16以上推奨) - npmまたは yarnパッケージマネージャ 環境変数やコンフィギュレーションオブジェクトを介してサーバーを設定できます。 - npm run build - Compile TypeScript to JavaScript - npm run prepare - 公開するためのパッケージを用意する - @modelcontextprotocol/sdk:^1.0.1 - glob:^10.3.10 - zod-to-json-schema:^3.23.5 ご協力のほどよろしくお願いします! プルリクエストを提出してください.

概要(AI 翻訳)

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

##特徴

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

インストール

##Smitheryでインストールする

クラウドデスクトップ用のCMD ServerをSmisery経由で自動的にインストールするには:

手動インストール

前提条件

  • Node.js(v16以上推奨)
  • npmかヤーンのパッケージのマネージャー

使用法

設定

環境変数やコンフィギュレーションオブジェクトを介してサーバーを設定できます。

開発

開発環境を設定するには:

  1. リポジトリのクローン化:

  2. 依存関係を取付けて下さい:

  3. プロジェクトのビルド:

スクリプト

  • [npm run build - コンパイルタイプスクリプトをJavaScriptに
  • npm run prepare - 出版のためのパッケージを用意する

依存関係

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

投稿

ご協力のほどよろしくお願いします! プルリクエストを提出してください。

ライセンス

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

CMD MCP Server

A Model Context Protocol (MCP) server implementation for executing CMD commands on both Windows and Linux, as well as allowing SSH connections. This server allows you to integrate command-line operations with MCP-compatible applications.

Features

  • Execute CMD commands through MCP
  • TypeScript implementation
  • Built on the official MCP SDK
  • Cross-platform compatibility

Installation

Installing via Smithery

To install CMD Server for Claude Desktop automatically via Smithery:

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

Manual Installation

npm install server-cmd

Prerequisites

  • Node.js (v16 or higher recommended)
  • npm or yarn package manager

Usage

import { MCPCmdServer } from 'server-cmd';

// Initialize the server
const server = new MCPCmdServer();

// Start the server
server.start();

Configuration

The server can be configured through environment variables or a configuration object:

const config = {
  // Add your configuration options here
};

const server = new MCPCmdServer(config);

Development

To set up the development environment:

  1. Clone the repository:
git clone https://github.com/PhialsBasement/CMD-MCP-Server.git
cd CMD-MCP-Server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm run prepare - Prepare the package for publishing

Dependencies

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

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

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

Security

Please note that executing command-line operations can be potentially dangerous. Make sure to implement proper security measures and input validation when using this server in production environments.

Support

For issues and feature requests, please use the GitHub issue tracker.

GitHub で README 全文を見る

インストール

npx -y @smithery/cli install server-cmd --client claude
MCP 初心者?mcpskill.org のガイドから始めましょう →