跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    ThomasSanna

    Mercato

    v0.2.1MCP 集成
    opencode-mercato

    Mercato — the OpenCode V2 marketplace for everything: plugins, MCP servers, skills, themes, and agents, inside the TUI

    GitHub 星标

    1

    月装机量

    649

    近 7 天 649

    综合评分SCORE

    39.7

    生态多维模型

    最近提交

    2 天前

    2026-08-17

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-mercato@0.2.1"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    Mercato — the OpenCode V2 marketplace for everything: plugins, MCP servers, skills, themes, and agents, inside the TUI.

    npm version npm downloads CI License: MIT

    What is Mercato

    A unified marketplace for everything OpenCode: plugins, MCP servers, skills, themes, and agents — browsable, comparable, and installable from a modal dialog inside the OpenCode TUI.

    Mercato targets OpenCode V2 only. The catalog is transparently aggregated from community sources (see Credits) — Mercato never owns the data, but provides discovery, trust ratings, safe lifecycle installation, auto-updates, and rollback capabilities.

    Features

    • Everything OpenCode: Discover plugins, MCP servers, skills, agents, themes, and commands.
    • V2-Native TUI: Modal dialog loop with keyboard-first navigation and palette integration.
    • Transparent Provenance & Trust: Multi-source aggregation with trust scoring and security notices.
    • Safe Installation Pipeline: Pre-install diff preview, conflict refusal, .bak backups, and atomic writes.
    • Updates & Version History: SemVer analysis, auto-update eligibility policy (patch/minor), downgrade picker from NPM history, and content-hash comparison for versionless items.
    • Preferences & Settings: Configurable auto-update rules, cache TTL, and default target scope (Global vs Local).
    • Restore Journal: View and restore previous configuration backup snapshots atomically.

    Install

    opencode plugin opencode-mercato
    

    Usage

    • Command: Type /mercato in the prompt line.
    • Command Palette: Press Ctrl+P (or Cmd+P) and choose Mercato.

    Keyboard Navigation

    Key Action
    / Navigate items / actions / options
    Enter / Return Open details / Confirm action / Install version
    Tab / Shift+Tab Cycle kind tabs (All, Plugins, MCPs, Skills, Agents, Themes, Commands) / Switch Scope
    u Open Updates view
    s Open Settings view
    r Open Restore Backups view
    Esc Back to previous screen / Close modal

    Development

    Requires Bun.

    bun install
    bun run typecheck
    bun test
    

    Credits

    Community data sources are credited transparently in CREDITS.md — opencode.cafe, awesome-opencode, and the OpenCode ecosystem docs. Their content is aggregated, never repackaged as ours.

    License

    MIT © 2026 Thomas Sanna