Skip to main content
Glama

Argus

by athapong

Argus - 存储库分析和安全评估工具

强大的模型上下文协议 (MCP) 工具,用于分析代码存储库、执行安全扫描和评估多种编程语言的代码质量。

特征

  • 多语言支持
    • Go:gocyclo、golangci-lint 分析
    • Java:PMD静态分析
    • Python:Pylint、Bandit 安全检查
    • JavaScript/TypeScript:ESLint 分析
    • 自动语言检测
  • 安全扫描
    • 集成 Trivy 漏洞扫描程序
    • 全面的安全报告
    • 支持多个分支
  • Git 操作
    • 分支机构计数和管理
    • 提交历史分析
    • 差异比较
    • 存储库结构可视化

安装

先决条件

  • Python 3.8+
  • Git
  • 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 }

支持的分析工具

语言工具安装
gocyclo,golangci-lintgo install github.com/fzipp/gocyclo/cmd/gocyclo@latest
Java偏振模色散macOS: brew install pmd ,Linux:自动安装
Python皮林特,土匪通过依赖项自动安装
JavaScriptESLintnpm install -g eslint

环境变量

  • SKIP_SYSTEM_CHECK :设置为任意值以跳过系统依赖性检查
  • PATH :工具安装时自动更新

错误处理

该工具提供了详细的错误消息和优雅的回退:

  • 依赖项安装失败显示警告而不是错误
  • 如果自动检测失败,语言检测将回退到指定语言
  • 工具执行错误被捕获在响应结构中

执照

MIT 许可证

贡献

  1. 分叉存储库
  2. 创建你的功能分支
  3. 提交你的更改
  4. 推送到分支
  5. 创建新的 Pull 请求
-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

用于分析代码存储库、执行安全扫描和评估多种编程语言的代码质量的模型上下文协议工具。

  1. 特征
    1. 安装
      1. 先决条件
      2. 系统依赖项
      3. 通过 uv 安装
    2. 用法
      1. 基本 MCP 命令
    3. 支持的分析工具
      1. 环境变量
        1. 错误处理
          1. 执照
            1. 贡献

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.
                Last updated -
                12
                54,281
                JavaScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that extracts and analyzes Python code structures, focusing on import/export relationships between files to help LLMs understand code context.
                Last updated -
                4
                Python
                MIT License
              • -
                security
                F
                license
                -
                quality
                A smart code retrieval tool based on Model Context Protocol that provides efficient and accurate code repository search capabilities for large language models.
                Last updated -
                Python
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
                Last updated -
                25
                Python
                MIT License
                • Apple
                • Linux

              View all related MCP servers

              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