Skip to main content
Glama

Sentron

Ask a security expert before you adopt open source.
Your AI assistant should have to ask too.

Sentron is an MCP security gateway. It sits between Claude, Cursor, and the messy reality of GitHub: Scorecard for repo health, Trivy for licenses and vulns, Syft for SBOMs. When an assistant is about to trust a dependency, Sentron makes it run the checks a careful human would.

Status: v0.1.0 — usable locally, opinionated, still early. See docs/roadmap.md.


Why this exists

AI coding tools install packages, clone repos, and recommend binaries at machine speed. Humans used to pause and ask:

  • Is this project maintained, or abandoned with a shiny README?

  • Are there known HIGH/CRITICAL CVEs in what I'm about to pull?

  • What's actually in the box (SBOM), and under which licenses?

That pause is disappearing. Sentron puts it back — as tools your assistant can call before it says "looks fine."

It does not replace judgment. It replaces the blank stare when nobody ran Scorecard.


Related MCP server: Orcorus Repository Scanner

What you get (v0.1)

Tool

Under the hood

Answers

audit_repo_health

OpenSSF Scorecard

Overall score, weak checks, process smell

scan_licenses_and_vulns

Trivy

License hits + HIGH/CRITICAL vulns

generate_sbom

Syft

Package inventory / ecosystem counts

get_job_status

Sentron job runner

Poll long scans (Claude Desktop ~60s cap)

Long scans start in the background and return a job_id. Poll until completed. That keeps Claude Desktop from timing out mid-Scorecard.


Quick start

1. Install scanners (on your $PATH)

brew install scorecard trivy syft   # or your package manager of choice

2. Install Sentron

git clone https://github.com/grootynix/sentron.git
cd sentron
uv sync

3. Secrets stay in .env (never in mcp.json)

cp .env.example .env
# GITHUB_AUTH_TOKEN=...   # Scorecard rate limits / private repos

4. Wire Claude Desktop or Cursor

Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "sentron": {
      "command": "/Users/YOU/.local/bin/uv",
      "args": ["run", "--directory", "/ABS/PATH/TO/sentron", "sentron"]
    }
  }
}

Cursor — see .cursor/mcp.json. Same idea: launch via uv, no tokens in the JSON.

Quit and reopen the client. Ask it to audit a repo and poll get_job_status.

Smoke test without an AI client

uv run python - <<'PY'
import asyncio, json
from sentron.tools.syft import run_syft

async def main():
    print(json.loads(await run_syft("."))["summary"]["total_packages"])

asyncio.run(main())
PY

Architecture (short version)

Claude / Cursor
      │  stdio MCP
      ▼
 sentron.server (FastMCP)
      │  start job → job_id
      ▼
 sentron.jobs  ──poll──► get_job_status
      │
      ├── tools/scorecard.py  → scorecard CLI
      ├── tools/trivy.py      → trivy CLI
      └── tools/syft.py       → git clone (if URL) + syft CLI

CLI binaries are executed with asyncio.create_subprocess_exec, timeouts, and PATH preflight. Missing tools return a JSON error with install hints — not a stack trace.

Full write-up: docs/architecture.md.


Documentation

Doc

Contents

Getting started

Install, tokens, client config

Tools

Arguments, response shapes, polling

Configuration

Env vars, .env, timeouts

Architecture

Modules, data flow, design choices

Roadmap

v0.1 → v1.0 and beyond

Security

How to report issues

Contributing

Dev setup, PRs


Project status & versioning

  • Current release: 0.1.0 (see CHANGELOG.md)

  • Python: 3.11+

  • License: Apache-2.0

  • Stability: APIs may shift before 1.0. Pin a tag if you automate on this.


Roadmap (headline)

  • v0.1 — Scorecard + Trivy + Syft over MCP, async jobs, local secrets — shipped

  • v0.2 — Policy profiles ("block CRITICAL", license allowlists), better summaries for agents

  • v0.3 — CI / GitHub Action mode; SARIF / CycloneDX export

  • v1.0 — Stable tool schema, signed releases, documented threat model

Details: docs/roadmap.md.


What Sentron is not

  • Not a magic "safe / unsafe" oracle

  • Not a hosted SaaS (v0.1 runs on your machine)

  • Not a replacement for Scorecard, Trivy, or Syft — it orchestrates them

If a check fails because your fine-grained PAT can't read branch protection, Sentron skips that check and says so. Bring a classic repo-scoped PAT if you need the full set.


Contributing

Bugs, sharp edges, and small PRs welcome. Read CONTRIBUTING.md and the Code of Conduct.


License

Copyright 2026 Sentron contributors.
Licensed under the Apache License, Version 2.0.

Third-party CLIs (Scorecard, Trivy, Syft) keep their own licenses; you install them separately. See NOTICE.


Acknowledgments

Built on the shoulders of OpenSSF Scorecard, Aquasecurity Trivy, Anchore Syft, and the Model Context Protocol.

Available Tools

4 tools
audit_repo_healthA

Start an OpenSSF Scorecard audit (async — returns job_id immediately).

Scorecard often takes 60–120s. This tool returns a job_id right away. Poll get_job_status until status is completed, then read result.

Args: repo_url: GitHub repository URL or owner/repo shorthand.

Inputs: repo_url (required). Returns: result

generate_sbomA

Start Syft SBOM generation (async — returns job_id immediately).

Poll get_job_status until completed.

Args: target: Image, directory, or other source accepted by Syft.

Inputs: target (required). Returns: result

get_job_statusA

Poll a background Sentron scan job until it completes.

Args: job_id: ID returned by audit_repo_health, scan_licenses_and_vulns, or generate_sbom.

Returns: JSON with status (started|running|completed|failed). When completed, includes the original tool result payload.

Inputs: job_id (required). Returns: result

scan_licenses_and_vulnsA

Start a Trivy license + vulnerability scan (async — returns job_id).

Trivy frequently exceeds 60s (clone + DB). Poll get_job_status for results.

Args: target: Repository URL or local path accepted by trivy repository.

Inputs: target (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool maps to a distinct engine and artifact: OpenSSF Scorecard repo health, Trivy license/CVE scanning, Syft SBOM generation, and generic job polling. The descriptions clearly state which CLI/backend each wraps and how the async pattern ties them together, so an agent can select correctly.

    Naming Consistency5/5

    All four names follow a consistent snake_case verb_noun pattern (audit_repo_health, scan_licenses_and_vulns, generate_sbom, get_job_status). Verbs vary appropriately with the action while the structure remains predictable.

    Tool Count5/5

    Four tools is well-scoped: three distinct scan starters plus one shared poller, with no redundancy. Every tool earns its place in the async workflow.

    Completeness4/5

    The core async lifecycle (start job + poll for result/status) is fully covered, including failure status. Minor gaps exist: no job cancellation, no list-jobs or job-history tool, and no way to re-fetch a result once a job is no longer polled.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to screen GitHub repositories and pull requests for risk analysis, generating risk scores, findings, and merge-readiness signals.
      5
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to monitor GitHub repository health by calculating health scores, fetching repository metadata, analyzing Dependabot alerts, checking CI/CD status, and retrieving code scanning alerts.
      8
      216 npm
      1
      MIT