Логотип AuditHub MCP Server

AuditHub MCP Server

Організація
Veridise

Connect AI agents to AuditHub’s blockchain security tools. Launch scans, review findings, monitor tasks. Open source, Apache 2.0.

ВидавецьVeridise
Репозиторійaudithub-mcp
МоваPython
Форки
0
Зірки
22
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяApache-2.0
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    AuditHub MCP Server надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 22, форки: 0 — у пов’язаному репозиторії.

AuditHub MCP Server

This repository contains the source code of audithub-mcp, an MCP server for AuditHub.

audithub-mcp allows LLM-based agents to access functionality such as:

  • Discovering information about AuditHub organizations and projects
  • Launching and monitoring AuditHub tool tasks
  • Accessing AuditHub issues and findings

By design, the MCP server limits the functionality to be read-only and non-destructive. Additional features can be enabled through the configuration file.

Warning: LLMs can make mistakes. Verify all tool outputs manually before acting on them.

Prerequisites

  • Python 3.12+
  • uv

The package bundles PAQL as an Emscripten WebAssembly module. Its cross-platform Node.js runtime is installed automatically as a Python dependency, so validate_paql does not require a system PAQL or Node.js installation.

Installation

audithub-mcp is implemented as a Python package, but it is not yet available in PyPI. You must install it directly from this repository.

Global Installation

If you are using the uv package manager, you can install audithub-mcp using uv:

uv tool install 'git+https://github.com/Veridise/audithub-mcp'
audithub-mcp --help

Local Clone

From the repo root:

bash
uv venv
uv sync --active

If your virtual environment is already active and you just want to run the server entrypoint, use:

bash
uv run audithub-mcp --help

Using audithub-mcp

To use audithub-mcp, you need to configure two parts: your agent and the audithub-mcp config file. Once both are configured, the agent should automatically start the MCP server and use its tools.

Agent Configuration

To enable audithub-mcp in your agent, you must add it to the MCP server config for your agent.

The following examples assume that audithub-mcp is available on PATH, and that your config file is located at ~/.config/audithub-mcp/config.yaml.

  • Codex CLI
    • For interactive setup, use codex mcp add audithub-mcp
    • If you want to set it up with a config file, add the following to your .codex/config.toml:
      toml
      [mcp_servers.audithub-mcp]
      command = "audithub-mcp"
      args = ["--config", "~/.config/audithub-mcp/config.yaml"]
  • Claude Code
    • For interactive setup, use claude mcp add audithub-mcp audithub-mcp
    • If you want to set it up with a config file, add the following to your .claude/mcp.json:
      json
      {
        "mcpServers": {
          "audithub-mcp": {
            "command": "audithub-mcp",
            "args": [
              "--config",
              "~/.config/audithub-mcp/config.yaml"
            ]
          }
        }
      }

MCP Server Configuration

You will need to create a YAML file containing the audithub-mcp server creation and ensure that the agent configuration calls audithub-mcp with the --config <path> argument.

If you are not sure where to put the config file, a good default location is in ~/.config/audithub-mcp/config.yaml. The file permissions should be set to 400 (owner read-only) since it contains credentials.

See the config docs for details on how to create the configuration file.

Available MCP Tools

ToolDescription
get_organizationsList allowlisted organizations; pass details=true for full organization records and filter_id to narrow results
get_defi_vanguard_detectorsList all DeFi Vanguard detectors for an organization using the Vanguard listing block format
get_projectsList allowlisted projects in an organization; pass details=true for full project records and filter_id to narrow results
get_versionsList versions for a project; pass details=true for full version records, filter_id to narrow results, and latest_only=true for the latest version only
get_task_infoGet status and details for an AuditHub task
get_task_artifactsList sanitized artifact metadata for an AuditHub task
get_task_artifactFetch a task artifact by ID as base64-encoded content
get_task_logsGet logs for one or more steps of a task and write each result to a local output file
get_task_findingsFetch findings for a task and write them to a local output file
wait_for_task_completionPoll a task until no pending steps remain or the timeout is reached, then return the latest task snapshot and completion state; with no timeout, task-capable clients can invoke it as a task
parse_findings_from_task_logParse one or more task log files into JSON containing findings plus counts written to a local absolute output path
validate_paqlParse a PAQL pattern or Luau query definition with the bundled WebAssembly PAQL validator; optionally typecheck it against the configured dialect
get_version_commentsGet comments for a specific project version
get_version_comment_threadsGet comment threads for a specific project version
get_thread_commentsGet comments for a specific thread within a project version
get_project_issuesGet all issues for a project
get_project_issueGet a specific issue from a project
get_project_commentsGet all comments for a project across all versions
help_contextGet a prompt/instructions on how agents should use the mcp server
run_orca_taskStart an OrCa task for a project version; registered only when task runs are explicitly enabled
run_defi_vanguard_taskStart a DeFi Vanguard task for a project version; registered only when task runs are explicitly enabled
create_version_from_fileCreate a project version by uploading a local .zip archive; registered only when version creation is explicitly enabled
create_version_from_urlCreate a project version from a git repository or archive URL; registered only when version creation is explicitly enabled

All tools return typed Python objects backed by audithub-sdk models.

The optional authenticated POST /shutdown operational route is deliberately not an MCP tool and never appears in tool discovery. It is enabled only for local HTTP mode when --shutdown-secret-file PATH is supplied; see the configuration guide.

The objects returned by get_organizations, get_projects, and get_versions only exposes items belonging to organizations/projects on the configured allowlists.

Available MCP Resources

ResourceDescription
docs://vanguard/custom-detectorsVanguard custom-detector documentation resource; the server fetches the linked markdown files on first access, caches the rendered text in memory, and returns the markdown bodies

Security Model

  • Read-only by default. Default tools are named get_* and only invoke generated audithub-sdk GET endpoints.
  • Task completion polling. wait_for_task_completion repeatedly fetches task details until no pending steps remain or the timeout is reached, then returns the latest sanitized Task snapshot with a boolean completion flag. When called with no timeout by a task-capable client, it can run as a task instead of blocking the request.
  • Opt-in OrCa task execution. The run_orca_task mutation tool is registered only when AH_ENABLE_TASK_RUNS=1 or --enable-task-runs is supplied. It calls the generated OrCa POST endpoint through audithub-sdk.
  • Opt-in DeFi Vanguard task execution. The run_defi_vanguard_task mutation tool is registered under the same task-run opt-in gate. Its inputs are flattened at the top level: organization_id, project_id, version_id, detector selections, and the runtime options. Pass detector selections as two-item JSON arrays [type, id], where builtin selectors use a built-in detector code from get_defi_vanguard_detectors, and custom selectors use the catalog id shown by the same tool. The server resolves those selections through the backend detector catalog before calling the generated DeFi Vanguard v2 POST endpoint.
  • On-chain OrCa mode. When launching OrCa against already deployed contracts, pass deployment_info_file as a path ending in .deployment.json. The server normalizes that into on_chain=True and rejects mismatched paths early so callers do not accidentally launch a local Foundry-style run.
  • Opt-in version creation. The create_version_from_url mutation tool is registered only when AH_ENABLE_VERSION_CREATION=1 or --enable-version-creation is supplied. It calls the generated project version URL POST endpoint through audithub-sdk.
  • Local findings parsing. The parse_findings_from_task_log utility tool reads one or more local task log files, extracts findings with the shared log parser, and writes a JSON file containing the parsed findings plus the total finding count and per-log counts. It does not call the AuditHub API.
  • Local PAQL validation. The validate_paql utility tool runs the bundled PAQL WebAssembly module with the uv-installed Node.js runtime, invokes it directly without a shell, and does not contact AuditHub. Syntax validation is available by default. Typechecking uses the bundled Vanguard Solidity dialect spec; explicitly configured PAQL_NODE_EXECUTABLE, PAQL_WASM_MODULE, and PAQL_DIALECT_SPEC values override the bundled defaults.
  • Detector catalog cache. The DeFi Vanguard v2 built-in detector list is fetched lazily from the AuditHub configuration endpoint and cached in-process for one day. Custom detectors are fetched live on each request from both the organization library and the standard library.
  • Detector listing format. get_defi_vanguard_detectors returns one block per detector. Each block starts with detector: <json> where <json> is a JSON value matching DefiVanguardV2DetectorSelectionInput, followed by title:. Standard-library custom detectors also include description: loaded from the detector payload. Each block ends with ------.
  • Credential isolation. OIDC credentials are read from the environment once at startup and passed into audithub_sdk_ext.AuthenticatedApiClient. They are never accepted as tool arguments and are not surfaced in tool outputs or sanitized error messages.
  • ID allowlisting. The server refuses to access any organization or project whose numeric ID was not explicitly included in AH_ALLOWED_ORG_IDS / AH_ALLOWED_PROJECT_IDS. The check runs before any network request.
  • SDK-only transport. All AuditHub interaction flows through audithub-sdk and audithub_sdk_ext; there is no raw HTTP helper in the MCP server.

Development Workflow

  • Run tests: uv run pytest
  • Type check: uv run mypy
  • Lint: uv run ruff check
  • Format code: uv run ruff format

Override audithub-sdk Locally

To test audithub-mcp against a local checkout of audithub-sdk, add a path source override in the root pyproject.toml, then re-sync the environment.

Example root pyproject.toml override:

toml
[tool.uv.sources]
audithub-sdk = { path = "/absolute/path/to/audithub-sdk", editable = true }

Then run:

bash
uv sync --active

To return to the pinned version, remove the audithub-sdk entry from [tool.uv.sources] and run uv sync --active again.

License

Apache 2.0

Встановлення

TypingMind
{
  "mcpServers": {
    "audithub-mcp": {
      "command": "audithub-mcp",
      "args": [
        "--config",
        "{{config.CONFIG_PATH}}"
      ],
      "env": {
        "CONFIG_PATH": "<CONFIG_PATH>"
      }
    }
  }
}

Використовуйте MCP AuditHub MCP Server з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення AuditHub MCP Server ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте AuditHub MCP Server як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP AuditHub MCP Server.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "audithub-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для AuditHub MCP Server, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для AuditHub MCP Server.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через AuditHub MCP Server?
AuditHub MCP Server
Звісно. Я це прочитав.
Ось що я знайшов за допомогою AuditHub MCP Server.

Поширені запитання

Для чого використовується сервер MCP AuditHub MCP Server?

AuditHub MCP Server — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP AuditHub MCP Server з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати AuditHub MCP Server з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP AuditHub MCP Server із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши AuditHub MCP Server, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP AuditHub MCP Server до TypingMind?

AuditHub MCP Server працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP AuditHub MCP Server у TypingMind?

AuditHub MCP Server надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP AuditHub MCP Server?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо AuditHub MCP Server потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇