GM

guyru/man-mcp-server

Developer tools

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

16 stars 6 forks 品質 68 トレンド 10MIT

ローカルマシンからマンページを検索し、取得するためのMCPサーバー.

概要

FastMCP を使用して Linux の man ページへのアクセスを提供するモデルコンテキストプロトコル (MCP) サーバー。 このサーバーは、AIアシスタントがローカルマシンから直接システム文書を検索、検索、検索、および探索することができます。 このサーバーは、VSコードのGitHub Copilotと簡単に統合できるMCPB(MCP Bundle)としてパッケージ化されています。 - : apropos を使用してキーワードまたはコマンド名でドキュメントを検索 - : 名前とオプションのセクションで完全な man ページ コンテンツを取得する - : 利用可能な man ページ セクションをブラウズ (1-9) 説明付き - : 人ページ コンテンツは消去され、AI の消費のためにフォーマットされます - : すべての操作はタイムアウト保護で非同期です - : 人と一緒にリソースとして man ページを公開します。:// ログイン - : 標準のマンページシステムでLinux - : 3.10以上 - : マン、アプロポス(通常はLinux上でプリインストール) - : MCPライブラリ(MCPBで公開またはパッケージマネージャを介してインストール) このサーバーを使用する最も簡単な方法は、Claude Desktop でサポートされている MCPB バンドルです。 1。 Claudeデスクトップの設定2を開きます.

概要(AI 翻訳)

FastMCP を使用して Linux の man ページへのアクセスを提供するモデルコンテキストプロトコル (MCP) サーバー。 このサーバーは、AIアシスタントがローカルマシンから直接システム文書を検索、検索、検索、および探索することができます。

このサーバーは、VSコードのGitHub Copilotと簡単に統合できるMCPB(MCP Bundle)としてパッケージ化されています。

##特徴

-Search manページ: [apropos を使用してキーワードまたはコマンド名でドキュメントを検索する

  • 特定のページを取得する: 名前とオプションのセクションで完全なマンページコンテンツを入手 -リストセクション: 利用可能なマンページセクションをブラウズ (1-9) 説明付き
  • クリーンフォーマット: 人ページのコンテンツは、AIの消費のために洗浄され、フォーマットされます
  • 非同期操作: すべての操作はタイムアウトの保護と非同期です -MCP リソース: [man:// でリソースとして man ページを公開する ログイン

要件

  • 操作システム:標準的な人ページ システムが付いているLinux -Python: 3.10以上
  • システムコマンド: [man], [apropos]] (通常はLinux上でプリインストール) -Dependencies:MCPライブラリ(MCPBで公開またはパッケージマネージャでインストール)

インストール

クイックスタート MCPBバンドル

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

README

以下は原文 README の抜粋です。原文を見る。

MCP Man Pages Server

A Model Context Protocol (MCP) server that provides access to Linux man pages using FastMCP. This server allows AI assistants to search, retrieve, and explore system documentation directly from your local machine.

This server is packaged as an MCPB (MCP Bundle) for easy integration with GitHub Copilot in VS Code.

Features

  • Search man pages: Find documentation by keyword or command name using apropos
  • Retrieve specific pages: Get complete man page content by name and optional section
  • List sections: Browse available man page sections (1-9) with descriptions
  • Clean formatting: Man page content is cleaned and formatted for AI consumption
  • Async operations: All operations are asynchronous with timeout protection
  • MCP Resources: Expose man pages as resources with man:// URIs

Requirements

  • Operating System: Linux with standard man page system
  • Python: 3.10 or higher
  • System Commands: man, apropos (usually pre-installed on Linux)
  • Dependencies: MCP library (bundled in MCPB or installed via package managers)

Installation

Quick Start with MCPB Bundle

The easiest way to use this server is with the MCPB bundle, which is supported by Claude Desktop:

# Clone the repository
git clone https://github.com/guyru/man-mcp.git
cd man-mcp

# Build the MCPB bundle
make build

# This creates dist/man-mcp-{version}.mcpb

Installing in Claude Desktop

  1. Open Claude Desktop settings
  2. Navigate to the MCP section
  3. Add the generated dist/man-mcp-{version}.mcpb bundle file

Development Installation

# Clone the repository
git clone https://github.com/guyru/man-mcp.git
cd man-mcp

# Install dependencies
uv sync

# Install with development tools
uv sync --extra dev

Using pip

# Clone the repository
git clone https://github.com/guyru/man-mcp.git
cd man-mcp

# Install the package and dependencies from pyproject.toml
pip install .

# Or install in development mode (editable install)
pip install -e .

# For development with optional dependencies
pip install -e .[dev]

Usage

Running the Server for Development

# Using uv
uv run python3 server/main.py

# Using python directly
python3 server/main.py

# With MCP development tools
uv run mcp dev server/main.py

Building and Using MCPB Bundle

# Build the bundle
make build

# Test the bundle
make test

# View bundle information
make info

VS Code Integration

This MCP server can be integrated with VS Code using the GitHub Copilot extension. Since GitHub Copilot does not yet support MCPB bundles, direct configuration is required for VS Code.

Configuration for GitHub Copilot

Create a .vscode/mcp.json file in your workspace with the following configuration:

{
  "servers": {
    "man-mcp-server": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "run",
        "--directory",
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →