opencode_mcpb_install
OPENCODE_MCPB_INSTALL - Install an MCPB bundle into opencode config.
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 |
|---|---|---|---|
| data | Yes | ||
| message | Yes | ||
| success | Yes |