返回目录

mirage

编辑精选维护状态: 活跃

strukto-ai/mirage

全球首个面向 AI 智能体的统一虚拟文件系统。

前往 GitHub项目主页
$ npm install @struktoai/mirage-node

3,602

星标

261

Fork

TypeScript

语言

Apache-2.0

许可证

2026-05-06

创建于

2026-09-04

最近推送

Apache-2.0 的 AI Agent 统一虚拟文件系统,把约 50 个服务挂载成一棵 bash 友好的目录树,可通过原生适配器、插件、MCP 或 FUSE 接入 DeepSeek Harness。

DSH 适配

兼容

作者声明

安全审计

未审计

最后核验

2026-08-21

许可证

Apache-2.0

01它能帮你完成什么?

  • Give DeepSeek Harness bash-level access to S3, Google Drive, Slack, Gmail, Redis and ~50 more services as one virtual filesystem

    A single mounted workspace where read, grep and pipe commands sweep every backend out of the box, with zero new vocabulary

    Developers running DeepSeek Harness (dsh) who want their agent to query real cloud and SaaS data without wiring up separate SDKs or MCP servers

  • Compose cross-service pipelines and keep agent runs portable on DeepSeek Harness

    bash pipelines that span backends (e.g. run a script stored in Slack and file the report into Redis), plus clone / snapshot / version of portable workspaces that move between machines

    Teams building agent workflows on DeepSeek Harness that need reproducible, portable workspaces across services

02如何接入 DeepSeek Harness?

前置条件

  • Python ≥ 3.11 for the `mirage-ai` package and the `mirage` CLI
  • Node.js ≥ 20 for the TypeScript SDK
  • macOS or Linux (FUSE-based mounts require platform support)

安装步骤

  1. 01

    Python: run `uv add mirage-ai` — installs the `mirage` library and the `mirage` CLI binary

  2. 02

    TypeScript: run `npm install @struktoai/mirage-node` (Node.js servers and CLIs), `npm install @struktoai/mirage-browser` (browser / edge runtimes), and optionally `npm install @struktoai/mirage-agents` (OpenAI / Vercel AI / LangChain / Mastra adapters)

    $ npm install @struktoai/mirage-node

  3. 03

    CLI: run `curl -fsSL https://strukto.ai/mirage/install.sh | sh`, or `npm install -g @struktoai/mirage-cli`, or `uvx mirage-ai`, or `npx @struktoai/mirage-cli`

    $ curl -fsSL https://strukto.ai/mirage/install.sh | sh

验证接入成功

作者未说明

03DSH 适配与能力边界

DSH 适配兼容

Used inside DeepSeek Harness as a coding-agent tool layer via native adapter, installable plugin, MCP, or FUSE mount

  • Unified virtual filesystem with ~50 built-in backends

    S3 / R2 / GCS / Supabase, Gmail / GDrive / GDocs / GSheets / GSlides, GitHub / Linear / Notion / Trello, Slack / Discord / Email, MongoDB / Postgres / LanceDB / Qdrant, Redis, SSH, RAM, Diskone filesystem tree under a single root, readable with standard bash semantics (read, grep, pipe)

    reads and writes are executed against the mounted remote services using your own credentials/tokens
  • Portable workspaces (clone / snapshot / version)

    a configured Mirage workspacesnapshot archives (e.g. demo.tar) that can be loaded on another machine to restore the workspace

    snapshot files are written to disk
  • Two-layer cache for remote backends

    repeated reads against remote backendsindex cache (listings/metadata, default TTL 10 minutes) and file cache (object bytes, default 512 MB) served from local state

    cache state is held in-process RAM by default; an optional Redis store shares cache state across workers, processes, and machines
  • Embeddable Python and TypeScript SDKs

    a Python ≥ 3.11 or Node.js ≥ 20 applicationworkspaces running in-process inside FastAPI, Express, browser apps, or any async runtime — no separate process required

04适合谁?何时不该用?

适合

  • Developers running DeepSeek Harness (dsh) who want their agent to query real cloud and SaaS data without wiring up separate SDKs or MCP servers
  • Teams building agent workflows on DeepSeek Harness that need reproducible, portable workspaces across services

不适合

  • Mirage targets macOS or Linux; FUSE-based mounts additionally require platform support, so FUSE mounting is not guaranteed on every machine.
  • Mounted remote backends (Slack, S3, Gmail, Redis, ...) are reached over the network with your own credentials — e.g. a Slack bot token is passed in the resource config — so writes can mutate the underlying services.

05兼容性、维护与安全提示

  • Mirage targets macOS or Linux; FUSE-based mounts additionally require platform support, so FUSE mounting is not guaranteed on every machine.
  • The Python SDK and CLI require Python ≥ 3.11, and the TypeScript SDK requires Node.js ≥ 20 — older runtimes cannot run Mirage.
  • Mounted remote backends (Slack, S3, Gmail, Redis, ...) are reached over the network with your own credentials — e.g. a Slack bot token is passed in the resource config — so writes can mutate the underlying services.
2026-05-062026-08-19v0.0.5

Apache-2.0 · actively maintained (latest release v0.0.5, 2026-08-15)

06常见问题

Mirage 如何接入 DeepSeek Harness?

DeepSeek Harness 被列在 Mirage 官方的编码代理集成表中,可通过原生适配器、可安装插件、MCP 或 FUSE 挂载接入;Mirage 文档中还有专门的 DeepSeek Harness 快速上手页(docs.mirage.strukto.ai/typescript/agents/dsh)。

是原生集成还是走 MCP?

两条路都有:编码代理可以通过原生适配器和可安装插件接入,也可以走 MCP 或 FUSE,按你在 DeepSeek Harness 中的工作流选择即可。

安装前需要准备什么?

`mirage-ai` 包和 `mirage` CLI 需要 Python ≥ 3.11,TypeScript SDK 需要 Node.js ≥ 20;如果要使用基于 FUSE 的挂载,还需要 macOS 或 Linux 且平台支持 FUSE。

可以挂载哪些服务?

内置约 50 个后端:RAM、Disk、Redis、S3 / R2 / OCI / Supabase / GCS、Gmail / GDrive / GDocs / GSheets / GSlides、GitHub / Linear / Notion / Trello、Slack / Discord / Email、MongoDB / GridFS / Postgres / LanceDB / Qdrant、SSH 等,全部并排挂载在同一个根目录下。

读写操作的数据去向是什么?

命令直接作用于挂载的后端:远程服务通过网络访问,使用你自己的凭据(例如 Slack bot token);双层缓存(索引缓存 + 文件缓存,默认在进程内 RAM,可选 Redis)会让重复读取走本地而不重复访问网络。

08数据与来源

  • 作者声明github.comeb4448d055bc…

    **Agent integrations:** OpenAI Agents SDK, Vercel AI SDK, LangChain, Pydantic AI, CAMEL, and OpenHands via the SDKs; cod…

  • 作者声明github.comeb4448d055bc…

    | Coding agents | [Claude Code](https://docs.mirage.strukto.ai/python/agents/claude-code), [Codex](https://docs.mirage.s…

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-08-21。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。