Skip to main content
Glama

Argus - リポジトリ分析およびセキュリティ評価ツール

コード リポジトリを分析し、セキュリティ スキャンを実行し、複数のプログラミング言語にわたるコード品質を評価するための強力なモデル コンテキスト プロトコル (MCP) ツール。

特徴

  • 多言語サポート

    • Go: gocyclo、golangci-lint 分析

    • Java: PMD 静的解析

    • Python: Pylint、Bandit のセキュリティチェック

    • JavaScript/TypeScript: ESLint分析

    • 自動言語検出

  • セキュリティスキャン

    • 統合されたTrivy脆弱性スキャナー

    • 包括的なセキュリティレポート

    • 複数のブランチのサポート

  • Git操作

    • ブランチの列挙と管理

    • コミット履歴分析

    • 差分比較

    • リポジトリ構造の可視化

Related MCP server: SafetyCulture MCP Server

インストール

前提条件

  • Python 3.8以上

  • ギット

  • libmagic (システム依存)

システム依存関係

macOS

brew install libmagic

Linux(Ubuntu/Debian)

sudo apt-get update
sudo apt-get install -y libmagic1

UVによるインストール

uvx argus

使用法

基本的なMCPコマンド

# Analyze repository structure
analyze_repository_structure(
    repo_url="https://gitlab.com/user/repo",
    gitlab_credentials={"api_key": "your-token"},  # Optional
    branch="main"  # Optional
)

# Perform code quality analysis
analyze_code_quality(
    repo_url="https://gitlab.com/user/repo",
    language="python"  # Optional, will auto-detect if not specified
)

# Security scan
security_scan_repository(
    repo_url="https://gitlab.com/user/repo",
    scan_type="trivy"
)

# Compare changes
compare_git_changes(
    repo_url="https://gitlab.com/user/repo",
    source="feature-branch",
    target="main"
)

# Security scan repository
security_scan_repository(
    repo_url="https://gitlab.com/user/repo",
    scan_type="trivy"
)

### MCP Configuration

```json
{
    "command": "uvx",
    "args": [
        "--from",
        "git+https://github.com/athapong/argus",
        "argus"
    ],
    "alwaysAllow": [
        "get_commit_history",
        "enumerate_branches",
        "compare_git_changes",
        "analyze_code_quality",
        "security_scan_repository"  
    ],
    "timeout": 300
}

サポートされている分析ツール

言語

ツール

インストール

行く

ゴシクロ、ゴランジリント

go install github.com/fzipp/gocyclo/cmd/gocyclo@latest

ジャワ

PMD

macOS: brew install pmd 、Linux: 自動インストール

パイソン

パイリント、バンディット

依存関係により自動インストール

JavaScript

ESLint

npm install -g eslint

環境変数

  • SKIP_SYSTEM_CHECK : システム依存関係チェックをスキップするには任意の値を設定します

  • PATH : ツールのインストール時に自動的に更新されます

エラー処理

このツールは、詳細なエラー メッセージと適切なフォールバックを提供します。

  • 依存関係のインストール失敗ではエラーではなく警告が表示されます

  • 自動検出が失敗した場合、言語検出は指定された言語にフォールバックします。

  • ツール実行エラーはレスポンス構造に記録されます

ライセンス

MITライセンス

貢献

  1. リポジトリをフォークする

  2. 機能ブランチを作成する

  3. 変更をコミットする

  4. ブランチにプッシュする

  5. 新しいプルリクエストを作成する

-
security - not tested
A
license - permissive license
-
quality - not tested

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

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/athapong/argus'

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