Hrevn Mcp Server

io.github.ai-human-andalusia由 GitHub 账号 ai-human-andalusia 发布v0.1.0a0更新于 Oct 24, 2026

HREVN trust layer for baseline diagnostics and verifiable workflow integrity for AI agents.

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

概览

AI 生成的概览

一个轻量本地 MCP 服务器,通过托管 HREVN API 提供基线诊断与工作流完整性检查工具。

可以做什么
对任务记录和配置档案执行基线检查,返回含风险标记、补救载荷和检查 ID 的结构化结果。按指定档案校验记录。根据记录与追踪数据生成捆绑包,可选包含报告 PDF。校验本地路径下的捆绑包或产物。核心逻辑保留在远程 HREVN 运行时,服务器只暴露稳定的工具契约。
适用场景
当你希望助手在 AI 工作流中执行 HREVN 基线诊断、档案校验或捆绑包生成与校验,并且已拥有 HREVN 托管 API 的访问权限时使用。
运行要求
作为本地 Python 进程运行,可从 PyPI 或源码安装,控制台入口为 hrevn-mcp-server,使用 stdio 传输。需要访问 HREVN API 的网络,并通过 HREVN_API_KEY 环境变量提供已签发的 API 密钥,同时设置 HREVN_API_BASE_URL。另有可选的超时和服务器名称/版本变量。
安装前请注意
需要 HREVN API 密钥,并在客户端配置的环境变量中传入,避免写入共享配置。自检和基线检查会调用线上托管 API,任务记录与追踪数据会发送给第三方。生成捆绑包可产出报告 PDF,verify_bundle 会读取你指定的本地路径。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

HREVN MCP Server

Minimal stdio MCP server for HREVN, backed by the live managed runtime at https://api.hrevn.com.

Why this exists

This repo exposes HREVN as real MCP tools instead of ad hoc helper scripts. It stays intentionally thin:

  • canonical semantics remain in the HREVN managed runtime
  • the MCP layer only exposes stable tool contracts
  • consequential results come back as structured output, including risk_flags, remedy_payload, and check_id

Included tools

  • baseline_check
  • profile_validate
  • generate_bundle
  • verify_bundle

Environment

bash
export HREVN_API_BASE_URL="https://api.hrevn.com"export HREVN_API_KEY="replace-with-issued-alpha-key"

Optional environment variables:

  • HREVN_MCP_TIMEOUT_SECONDS
  • HREVN_MCP_SERVER_NAME
  • HREVN_MCP_SERVER_VERSION

Install

Editable install

bash
cd hrevn-mcp-serverpython3 -m pip install -e .

From PyPI

bash
python3 -m pip install hrevn-mcp-server

The console entry point is:

bash
hrevn-mcp-server

Run

bash
hrevn-mcp-server

The server uses MCP stdio transport.

Verify before using a client

bash
hrevn-mcp-server --versionhrevn-mcp-server --list-toolshrevn-mcp-server --self-test

If you are running directly from source without an installed entry point:

bash
PYTHONPATH=src python3 -m hrevn_mcp_server.server --list-toolsPYTHONPATH=src python3 -m hrevn_mcp_server.server --self-test

The self-test runs a live baseline_check against the configured HREVN managed API.

Tool contracts

baseline_check

Minimal payload:

json
{  "task_type": "ai_workflow",  "profile": "eu_readiness_profile",  "record": {    "agent_name": "example_agent",    "summary": "baseline smoke test"  },  "metadata": {    "surface": "mcp",    "stage": "pre_completion"  }}

profile_validate

Minimal payload:

json
{  "profile": "eu_readiness_profile",  "record": {},  "metadata": {}}

generate_bundle

Minimal payload:

json
{  "record": {},  "traces": [],  "options": {    "include_report_pdf": false  }}

verify_bundle

Minimal payload:

json
{  "source": "/path/to/bundle-or-artifact"}

Example MCP config

Use a local stdio configuration like this:

json
{  "mcpServers": {    "hrevn": {      "command": "python3",      "args": [        "-m",        "hrevn_mcp_server.server"      ],      "env": {        "PYTHONPATH": "/ABSOLUTE/PATH/TO/hrevn-mcp-server/src",        "HREVN_API_BASE_URL": "https://api.hrevn.com",        "HREVN_API_KEY": "YOUR_HREVN_API_KEY"      }    }  }}

See also:

Antigravity status

HREVN can already be explored experimentally in Google Antigravity through custom MCP configuration.

What is already validated:

  • the HREVN MCP server runs locally
  • the server exposes real tools backed by https://api.hrevn.com
  • baseline_check returns real structured results
  • Antigravity preview builds expose MCP configuration surfaces in the UI

What is not claimed yet:

  • official native Antigravity integration
  • guaranteed MCP tool injection into every Antigravity agent instance
  • Antigravity-specific guardrail hooks beyond what has been directly observed

Registry metadata

This repo includes:

as a machine-readable manifest describing the MCP server, package, transport, and repository metadata.

Design rule

This server must not reimplement HREVN truth locally. It should expose stable MCP tools that call the managed API.

来源:README.md,提交 234f04b

工具

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

版本历史

1
  1. v0.1.0a0最新Sep 16, 2026

评分

已满足适用检查项的 40%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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

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