opencode-mercatoMercato — the OpenCode V2 marketplace for everything: plugins, MCP servers, skills, themes, and agents, inside the TUI
1
649
近 7 天 649
39.7
生态多维模型
2 天前
2026-08-17
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-mercato@0.2.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-mercato@0.2.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-mercatoopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Mercato — the OpenCode V2 marketplace for everything: plugins, MCP servers, skills, themes, and agents, inside the TUI.
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,
.bakbackups, 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
/mercatoin the prompt line. - Command Palette: Press
Ctrl+P(orCmd+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