Voyager

io.github.dir-ai由 GitHub 账号 dir-ai 发布v1.4.0更新于 Oct 24, 2026

Cited, OSV-gated, injection-hardened web briefs for coding agents. Verified, never raw web.

概览

AI 生成的概览

Voyager 为编码代理提供带引用、经漏洞门禁的网页简报和软件包检查,而非原始网页内容。

可以做什么
Voyager 将查询转化为带引用、带置信度评分的简报,综合软件包验证、GitHub 发现、权威文档和开放网络搜索。其 check 工具执行失败即拒绝的 OSV 漏洞门禁,并给出构建来源、许可证和时效等供应链信号,还可选在隔离容器中复现安装与冒烟导入。抓取的文本会剥离指令式载荷,并被框定为不可信证据。它以 CLI、库和 MCP 服务器形式提供,工具包括 check_package、retrieve、discover_repos 和 fetch_docs。
适用场景
当编码代理需要调研软件包或库,而你希望得到经过验证、带引用的结果而非原始网页时使用。它也可作为 CI 门禁,在代理选择了有漏洞、已弃用或不存在的依赖时让构建失败。
运行要求
通过 stdio 在本地运行,通常使用 npx @dir-ai/voyager mcp 或 Docker 镜像。npm 包需要 Node.js。Tier-A 核心(npm、PyPI、OSV、未认证的 GitHub)无需密钥;可选的 Tier-C 搜索提供方需要 TAVILY_API_KEY 或 GITHUB_TOKEN 等密钥,或自定义密钥解析器。隔离孪生需要容器运行时。
安装前请注意
隔离孪生会执行软件包代码,但仅在加固、网络隔离、只读、非 root 的容器内运行;没有容器运行时时它会拒绝运行,而不会在主机上执行,且它只证明安装和入口加载,并非安全性证明。TAVILY_API_KEY、GITHUB_TOKEN 等可选提供方密钥从环境变量或注入的解析器读取;磁盘缓存不会写入任何密钥。查询会发送到允许列表中的公共 API 主机。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

voyager

The verified-brief organ for coding agents.

An AI coding agent that reaches the open internet gets a raw, unsigned, possibly-poisoned blob and feeds it straight into its own prompt. voyager sits in front of that: it turns a query into a cited, confidence-scored, OSV-gated, injection-hardened brief — the only surface your model ever sees.

Every claim carries its provenance and a confidence signal. Package recommendations pass a fail-closed OSV vulnerability gate, surface build provenance (npm SLSA attestations) when present, and can be reproduced in a disposable twin — install + smoke-import run inside a hardened, rootless, network-isolated container (never on the host). That proves the package installs and its entrypoint loads; it is not a safety proof. All fetched text is stripped of instruction-shaped payloads (multilingual + base64 + markdown /HTML vectors) and framed as untrusted evidence the model must analyze, never obey.

  • check — is this package safe to use? Registry facts + OSV gate (fail-closed)
    • provenance/license/age supply-chain signals + optional isolated twin. Exit codes: 0 ok · 1 rejected (unsafe) · 2 tool/usage error (no verdict).
  • brief / retrieve — a cited brief combining package verification, GitHub discovery, canonical docs, and open-web search, each cross-referenced.
  • security by construction — one egress allowlist, https-only, streamed size cap, injection-strip + evidence framing. Zero-network unless you query.

CLI, library, and MCP server.

Install

bash
npm i @dir-ai/voyagernpx -y @dir-ai/voyager check express

CLI

bash
voyager check <name> [--ecosystem npm|pypi] [--version V] [--twin]   # exit 1 if unsafevoyager brief "<query>" [--package name] [--discover "<intent>"] [--search "<q>"] [--docs <lib>]voyager discover "<intent>"     # GitHub repo discovery (Tier-A)voyager search "<query>"        # open-web search (Tier-C, needs a key)voyager docs <library>          # canonical docs (Tier-B)voyager doctor                  # which source keys are configured

check is a natural CI gate: fail the build if an agent picked a vulnerable, deprecated, or non-existent dependency.

Library

ts
import { checkPackage, voyagerRetrieve, setKeyResolver } from '@dir-ai/voyager'
const v = await checkPackage({ name: 'express', ecosystem: 'npm' })// → { verdict: 'belief' | 'fact' | 'rejected', claim, steps }  (adversarial trace)
const brief = await voyagerRetrieve('a safe date library', {  packages: [{ name: 'date-fns', ecosystem: 'npm' }],  discover: 'date library',})brief.rendered   // the injection-hardened, framed text to feed a modelbrief.claims     // structured, cited, confidence-scored
// Bring your own key store (default is env vars):setKeyResolver((provider) => mySecrets.get(provider))

MCP server

jsonc
// .mcp.json{  "mcpServers": {    "voyager": { "command": "npx", "args": ["-y", "@dir-ai/voyager", "mcp"] }  }}

Tools: check_package, retrieve, discover_repos, fetch_docs.

Docker

bash
docker run --rm ghcr.io/dir-ai/voyager check expressdocker run -i --rm ghcr.io/dir-ai/voyager mcp   # stdio MCP

Tiers & trust

TierSourceBase trust
AGitHub · npm · PyPI · OSV (structured facts)high
Bcanonical docs (official hosts only)high
Copen-web search (Tavily / Exa / Apify)low — cross-referenced before trusted
Disolated twin (install + smoke in a container)reproduction, not a safety proof

Keys are optional: the Tier-A core (npm/PyPI/OSV, and GitHub unauthenticated) is zero-key. Tier-C providers each no-op without their key. Set GITHUB_TOKEN, TAVILY_API_KEY, etc., or inject a resolver.

Security posture

One egress allowlist (a fixed set of public API hosts), https-only, redirect: error, a streamed byte cap that aborts an oversized body mid-download, and an injection-strip that removes role-hijacks / chat-template tokens / zero-width & bidi characters, decodes-and-rescans base64, neutralizes markdown images and HTML comments, and matches instruction payloads across several languages. The framing is the real defense — the strip keeps it from being trivially escaped. The twin runs the package's code only inside a hardened, network-isolated, read-only, non-root container; with no container runtime it refuses to run (returns unsupported) rather than execute on the host. See SECURITY.md.

Cache

Idempotent Tier-A facts (npm / PyPI / OSV) are cached in-process and on disk under ~/.voyager/cache (content-addressed, TTL'd) so repeated checks are fast, survive across runs, and lean less on the network. No secret is ever written (auth headers are never part of a cache key or value). VOYAGER_NO_CACHE=1 disables it; VOYAGER_CACHE_DIR relocates it.

Roadmap

deps.dev-backed multi-ecosystem facts (crates / Go / RubyGems / Packagist), typosquatting detection, PyPI/cargo twins. Contributions welcome.

License

MIT © dir-ai

来源:README.md,提交 e615413

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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