
tizee/mcp-unix-manual
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
LLM の会話内で直接 Unix コマンド ドキュメンテーションを提供する MCP サーバー.
概要
Claude の会話内で直接 Unix コマンド ドキュメンテーションを提供する MCP サーバー。 - : Unix コマンドのヘルプページ、マンページ、および使用情報の取得 - : お使いのシステム上の利用可能なコマンドを発見し、機能によって分類される - : 特定のコマンドが利用可能なかどうかを確認し、バージョン情報を取得する - Python 3.13 + - Claudeデスクトップまたは任意のMCP互換クライアント 1。 このリポジトリのクローン2。 パッケージをインストールします。 3。 Claudeデスクトップにサーバーをインストールします。 インストールしたら、サーバーのツールをClaudeで直接使用できます。 Claudeにインストールせずにローカルにサーバーをテストするには: サーバは、コマンドのインジェクションを: - regex パターンに対するコマンド名のバリデーション - シェルを使用せずにコマンドを直接実行 - すべてのコマンド実行のタイムアウトを設定する - ドキュメントのみをチェックし、任意のコマンドを実行しない
概要(AI 翻訳)
Claude の会話内で直接 Unix コマンド ドキュメンテーションを提供する MCP サーバー。
##特徴
-コマンド文書の取得: Unix コマンドのヘルプページ、 man ページ、使用情報の取得 -共通コマンドをリスト: システムで利用可能なコマンドを発見し、機能別に分類 -コマンドの存在チェック: 特定のコマンドが利用可能なかどうかを確認し、バージョン情報を取得する
インストール
前提条件
- Python 3.13 +
- Claudeデスクトップまたは任意のMCP互換クライアント
セットアップ
- このリポジトリをクローンする
- パッケージを取付けて下さい:
3。 Claudeデスクトップにサーバーをインストールします。
使用法
インストールしたら、サーバーのツールをClaudeで直接使用できます。
コマンドのドキュメントの取得
共通コマンドの一覧
コマンドが存在するかどうかチェック
開発
Claudeにインストールせずにローカルにサーバーをテストするには:
セキュリティ
サーバは、コマンドインジェクションを防止するために注意を払う:
- 正規表現パターンに対するコマンド名の検証
- シェルを使用せずにコマンドを直接実行する
- すべてのコマンド実行でタイムアウトを設定する
- ドキュメントのみをチェックし、任意のコマンドを実行しない
ロギング
ログは `unix-manual-server に保存されます.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
Unix Manual Server (MCP)
An MCP server that provides Unix command documentation directly within Claude conversations.
Features
- Get command documentation: Retrieve help pages, man pages, and usage information for Unix commands
- List common commands: Discover available commands on your system, categorized by function
- Check command existence: Verify if a specific command is available and get its version information
Installation
Prerequisites
- Python 3.13+
- Claude Desktop or any MCP-compatible client
Setup
- Clone this repository
- Install the package:
pip install -e .
# or
uv install -e .
- Install the server in Claude Desktop:
mcp install unix_manual_server.py
# uv
uv run mcp install unix_manual_server.py
Usage
Once installed, you can use the server’s tools directly in Claude:
Get command documentation
I need help with the grep command. Can you show me the documentation?
List common commands
What Unix commands are available on my system?
Check if a command exists
Is the awk command available on my system?
Development
To test the server locally without installing it in Claude:
mcp dev unix_manual_server.py
Security
The server takes precautions to prevent command injection by:
- Validating command names against a regex pattern
- Executing commands directly without using shell
- Setting timeouts on all command executions
- Only checking for documentation, never executing arbitrary commands
Logging
Logs are saved to unix-manual-server.log in the same directory as the script, useful for debugging.
- use
@modelcontextprotocol/inspectorwithnpxunder the hood.
uv run mcp dev unix_manual_server.py
npx @modelcontextprotocol/inspector uv run unix_manual_server.py
License
MIT
Created with the MCP Python SDK. For more information about MCP, visit modelcontextprotocol.io.
インストール
npx @modelcontextprotocol/inspector uv run unix_manual_server.py