Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesPath to an .mcpb file or an unpacked MCPB directory.
dry_runNoShow what would be written without modifying the config.
name_overrideNoOverride the server name in opencode config. Default: from manifest.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description goes beyond the annotation (readOnlyHint: false) by detailing the actual modification of the config file, the dry_run option to preview changes, and the return format. It does not disclose edge-case behavior like overwriting existing server definitions, but the provided context is substantive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a purpose statement, return format, and examples. It is appropriately sized for the tool's complexity, though the first line repeats the tool name in all caps, which adds slight redundancy. Overall, it is efficient and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an install tool, the description covers the essential aspects: what it does, how it does it (unpack, extract manifest, merge), return values, and example invocations. It lacks explicit handling of conflict or error cases, but given the presence of an output schema and safe dry_run option, the information is largely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for all three parameters, so the description does not need to explain them further. The examples minimally illustrate usage (e.g., source path and name_override), but no extra semantic detail beyond the schema is provided, which aligns with the baseline for complete schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Install') and the resource ('MCPB bundle') with a specific target ('into opencode config'). It differentiates itself from the sibling tools, none of which perform installation, by explaining the unpacking and merging process.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The context is clear: this tool is used for installing MCPB bundles, with no need for alternatives among the listed siblings. There is no explicit 'when not to use' or mention of alternative tools, but the uniqueness of the task makes the usage context sufficiently clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandraschi/opencode-cli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server