Skip to main content
Glama
seayniclabs

Mooring

Official
by seayniclabs

Mooring — Git & GitHub MCPサーバー

License: MIT

コードのための係留ロープ — AIツール向けのGitおよびGitHub操作。

Mooringは、AIアシスタントにローカルGitリポジトリおよびGitHub APIへの構造化されたアクセスを提供するMCPサーバーです。ローカル操作にはGitPythonを使用します(サブプロセス呼び出しは行いません)。GitHub操作にはPyGithubライブラリを使用し、トークンのマスキングとレート制限の処理が組み込まれています。


ツール

ローカルGit

ツール

説明

主要パラメータ

repo_status

ブランチ、先行/遅延、スタッシュ数、ステージング済み/未ステージング/追跡対象外ファイル

repo_path

repo_log

フィルタ付きコミットログ

repo_path, max_count, author, since, path, search

repo_diff

ユニファイド差分 — ワーキングツリー、ステージング済み、または参照間

repo_path, staged, from_ref, to_ref

repo_blame

行範囲指定可能なGit blame

repo_path, file_path, start_line, end_line

repo_branches

追跡情報、最終コミット、先行/遅延を含む全ブランチ

repo_path

repo_stash

スタッシュ操作: 一覧表示、プッシュ、ポップ、適用

repo_path, action, message

GitHub

ツール

説明

主要パラメータ

gh_pr_list

プルリクエストの一覧表示

repo, state, author, label

gh_pr_detail

レビュー、コメント、チェック実行を含むPR詳細

repo, number

gh_pr_create

プルリクエストの作成

repo, title, body, head, base, labels, reviewers

gh_issues

Issueの一覧表示、作成、更新

repo, state, action, title, body, number

gh_actions

最近のGitHub Actionsワークフロー実行の一覧表示

repo, workflow, status

ユーティリティ

ツール

説明

主要パラメータ

health

サーバーのバージョンとステータスチェック

(なし)


Related MCP server: Git MCP Server

インストール

# PyPI
pip install mooring-mcp

# Isolated install
pipx install mooring-mcp

使用方法

サーバーを直接実行します:

mooring

Claude Code

claude mcp add mooring -- mooring

Claude Desktop

Claude Desktopの設定ファイル (claude_desktop_config.json) に追加します:

{
  "mcpServers": {
    "mooring": {
      "command": "mooring",
      "env": {
        "GITHUB_TOKEN": "your-github-personal-access-token"
      }
    }
  }
}

すべてのGitHubツール (gh_*) には GITHUB_TOKEN 環境変数が必要です。ローカルGitツールはこれなしでも動作します。


セキュリティ

  • パストラバーサル保護 — ファイルパスは解決され、操作前にリポジトリルートに対して検証されます

  • シンボリックリンクエスケープ検出 — リポジトリ外を指すシンボリックリンクは拒否されます

  • 参照(Ref)の検証 — Gitの参照は安全な文字パターンと照合され、使用前に存在が確認されます

  • トークンマスキング — エラーメッセージは、返される前にGitHubトークンのパターン (ghp_*, gho_*, github_pat_*) がスクラブされます

  • レート制限の処理 — GitHubの403レスポンスはキャッチされ、生の例外ではなく明確なメッセージとして表示されます


開発

git clone https://github.com/seayniclabs/mooring.git
cd mooring
python -m venv .venv && source .venv/bin/activate
pip install -e ".[test]"
python -m pytest tests/ -q

ライセンス

MIT

TDQS

B3.4/5.0
Disambiguation4/5

Clear separation between GitHub API (gh_*) and local git (repo_*) operations. While gh_issues combines list/create/update into one tool whereas PR operations are split into separate tools, the descriptions clearly distinguish their purposes with no overlapping functionality between different tools.

Naming Consistency3/5

Uses consistent prefixes (gh_ and repo_) but mixes naming patterns: gh_issues and gh_actions use nouns while PR tools use verb_noun (gh_pr_create, gh_pr_list). Local git tools follow git command names (mostly nouns) but lack verb consistency with the GitHub action-oriented names.

Tool Count5/5

Twelve tools is well-scoped for a server bridging GitHub API and local git operations. The count covers essential inspection and management tasks without bloat, with each tool earning its place in the set.

Completeness3/5

Strong read-only coverage (status, log, diff, blame, list operations) but notable gaps in write operations: no PR update/merge/close, no local git commit/push/pull/checkout, and limited Actions support (list only). The surface supports inspection workflows well but leaves agents unable to complete full git/PR lifecycle operations.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    Enables code review operations on GitHub and GitLab, including fetching pull/merge requests, viewing diffs, adding comments, analyzing code quality, and creating merge requests directly from your MCP client.
    15
    8
    4
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Provides comprehensive Git functionality to MCP clients, enabling users to manage repositories through operations like commits, diffs, and branch management via natural language. It automatically detects the current working directory and supports multi-project workflows across different local environments.
    16
    607
    2
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides 15 MCP tools for AI-powered Git intelligence, enabling commit messages, branch creation, PR descriptions, code review, diff analysis, and push operations directly from your AI assistant.
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/seayniclabs/mooring'

If you have feedback or need assistance with the MCP directory API, please join our Discord server