opencode_mcpb_install
Installs an MCPB bundle into opencode's config by unpacking the .mcpb file, reading its manifest, and merging the server definition into the mcp section. Supports dry-run and name override.
Instructions
OPENCODE_MCPB_INSTALL - Install an MCPB bundle into opencode config.
Unpacks the .mcpb (or reads an unpacked directory), extracts the manifest,
and merges the server definition into the opencode config file's mcp section.
Return Format
{"success": bool, "server_name": str, "config_path": str, "entry": {...}}
Examples
opencode_mcpb_install(source="./dist/arxiv-mcp-v1.0.0.mcpb") opencode_mcpb_install(source="./dist/arxiv-mcp-v1.0.0.mcpb", name_override="arxiv") opencode_mcpb_install(source="./mcpb/", dry_run=True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Path to an .mcpb file or an unpacked MCPB directory. | |
| dry_run | No | Show what would be written without modifying the config. | |
| name_override | No | Override the server name in opencode config. Default: from manifest. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||