Sentrik

io.github.maxgerhardson由 GitHub 账号 maxgerhardson 发布v1.2.0更新于 Oct 24, 2026

Governance runtime for AI-generated code. Enforce compliance and security standards.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

以 MCP 服务器方式运行 Sentrik 的合规与安全扫描,让 AI 编码助手按标准检查代码并查看发现的问题。

可以做什么
Sentrik 是面向 AI 生成代码的治理运行时,通过 sentrik mcp-server 命令向助手开放。它让助手访问合规规则、扫描结果和修复建议,从而按 OWASP Top 10、SOC 2、HIPAA、PCI-DSS 及供应链规则等标准检查生成的代码。其底层 CLI 还能扫描代码、在 CI 中拦截不合格的拉取请求、检测硬编码密钥、扫描依赖漏洞(CVE)、生成 SBOM,以及输出威胁模型和质量评分。
适用场景
适合 AI 编码助手产出代码的速度快于人工审查速度,并需要在代码发布前强制执行安全、合规或架构标准的团队。也适合已在使用 Sentrik CLI 或 CI 门禁、希望助手看到相同发现与建议的工作流。
运行要求
作为本地 stdio 进程运行,通过 npm 包 sentrik 安装(README 中也给出 pip install sentrik)。仅支持桌面端。免费版无需许可证密钥或注册;Team 和 Organization 功能需要许可证密钥,通过环境变量 GUARD_LICENSE_KEY 提供。依赖漏洞扫描和许可证激活需要网络访问。
安装前请注意
可选的 GUARD_LICENSE_KEY 密钥从环境变量读取,应作为机密保存,不要提交到代码库。付费版本需联系厂商开通。扫描会读取源代码和依赖数据,仪表盘与 CI 集成会写入发现报告和 SARIF 输出;启用前请确认上传到 GitHub Code Scanning 等第三方服务的内容。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Sentrik,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Sentrik

Governance runtime for AI-generated code

Scan, gate, and trace compliance automatically — before it ships.

Website • Docs • Community • Pricing


What is Sentrik?

Sentrik is a CLI + dashboard that enforces coding standards, compliance rules, and security policies on every commit. Built for teams using AI coding agents (Claude Code, Cursor, Copilot) where code is generated faster than humans can review it.

The problem: AI agents write code that works but may violate security policies, compliance requirements, or architectural standards. Nobody catches it until audit time.

The solution: Sentrik scans every change against regulatory standards (OWASP, SOC 2, HIPAA, PCI-DSS, FDA IEC 62304, and more), gates PRs that fail, and generates audit-ready evidence.

Install

bash
pip install sentrik

Installing gives you the free tier immediately — 6 standards packs, 193 rules, no license key or sign-up. Paid tiers are activated with a license key from [email protected].

Quick Start

bash
# 1. Initialize your project (auto-detects language, frameworks, CI)sentrik init
# 2. Scan your codesentrik scan
# 3. Enforce the gate in CI (exit 1 on failure)sentrik gate
# 4. Launch the dashboardsentrik dashboard

Free Tier (forever, no credit card)

Sentrik includes 6 standards packs with 193 rules for free:

PackRulesWhat it catches
OWASP Top 1069SQL injection, XSS, auth flaws, SSRF, and more
SOC 230Trust services criteria for security & availability
Python Security18eval/exec, pickle, subprocess, Django/Flask vulns
Go Security15Injection, crypto misuse, unsafe, concurrency bugs
Supply Chain Security26SLSA, SBOM, dependency integrity, AI tool supply chain
C/C++ Coding Standards35Modern C/C++ safety and security practices

Plus built-in commands at every tier:

  • sentrik scan / sentrik gate - Scan and enforce
  • sentrik vulns - Dependency vulnerability scanning (CVEs)
  • sentrik sbom - Software bill of materials
  • sentrik secrets - Hardcoded secrets detection
  • sentrik dashboard - Web UI with findings, charts, and reports
  • sentrik threat-model - STRIDE threat analysis
  • sentrik quality-score - Code quality scoring (0-100)

Paid Tiers

FreeTeamOrganization
Standards packs6 (193 rules)18 (475 rules)24 (595 rules)
OWASP, SOC 2, Supply Chain, C/C++YesYesYes
HIPAA, PCI-DSS, ISO 27001, GDPR-YesYes
FDA IEC 62304, NIST, CMMC, Cloud IaC-YesYes
MISRA-C, DO-178C, ISO 26262--Yes
Vulnerability scanningYesYesYes
DashboardYesYesYes
Work item reconciliation-YesYes
Custom rule packs525100
Parallel scanning--Yes
Governance & audit log--Yes

Paid tiers are available by contacting [email protected] — see sentrik.dev/pricing.

CI/CD Integration

GitHub Actions (Marketplace)

yaml
# .github/workflows/sentrik.ymlname: Sentrik Gateon: [pull_request]jobs:  gate:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v4        with:          fetch-depth: 0      - uses: maxgerhardson/sentrik-community@v1

That's it — one line. The action auto-detects PR context, runs the gate, uploads SARIF to GitHub Code Scanning, and attaches the findings report as an artifact.

With options:

yaml
      - uses: maxgerhardson/sentrik-community@v1        with:          packs: "owasp-top-10,soc2,supply-chain-security"          fail-on: "critical,high"          license-key: ${{ secrets.SENTRIK_LICENSE_KEY }}

Using outputs:

yaml
      - uses: maxgerhardson/sentrik-community@v1        id: sentrik      - run: echo "Found ${{ steps.sentrik.outputs.findings-count }} findings"        if: always()

GitLab CI

yaml
sentrik:  image: maxgerhardson/sentrik:latest  script:    - sentrik gate --git-range "origin/main...HEAD"  rules:    - if: $CI_PIPELINE_SOURCE == "merge_request_event"

Azure Pipelines

yaml
- script: |    pip install sentrik    sentrik gate --git-range "origin/main...HEAD"  displayName: Sentrik Gate

AI Agent Integration

Sentrik works as an MCP server for AI coding agents:

bash
# Start MCP server for Claude Code, Cursor, VS Codesentrik mcp-server

The MCP server gives AI agents real-time access to compliance rules, scan results, and remediation guidance — so they write compliant code from the start.

Example Configurations

Starter (web app)

yaml
# .sentrik/config.yamlstandards_packs:  - owasp-top-10  - supply-chain-securitygate:  fail_on:    - critical    - high

Healthcare / Medical Device

yaml
standards_packs:  - owasp-top-10  - hipaa  - fda-iec-62304  - supply-chain-securitygate:  fail_on:    - critical    - high    - medium

Fintech

yaml
standards_packs:  - owasp-top-10  - pci-dss  - soc2  - supply-chain-securitygate:  fail_on:    - critical    - high

Government / Defense

yaml
standards_packs:  - owasp-top-10  - nist-800-53  - cmmc  - supply-chain-securitygate:  fail_on:    - critical    - high    - medium

Community

  • Discussions - Ask questions, share tips, show what you've built
  • Issues - Report bugs or request features
  • Documentation - Full CLI reference, configuration guide, API docs

Support

ChannelFor
GitHub DiscussionsQuestions, ideas, community help
[email protected]Direct support (paid tiers)
[email protected]Pricing and licensing

License

Proprietary. Free tier available forever with no credit card required.

来源:README.md,提交 019e929

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.2.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。