Skip to main content

OpenCode

OpenCode has no marketplace command, but it does have a real plugin-install mechanism — unlike OpenCode "plugins" in general (JS/TS modules with lifecycle hooks), jeap-dev-toolkit's plugin is written specifically to use the ctx.mcp.transform and ctx.skill.transform hooks to register the jEAP MCP server and this plugin's skills directly in OpenCode's runtime catalog. No config file to merge by hand and no skill folders to copy — OpenCode reconciles both on every launch, and a jeap-mcp-service entry you set yourself is left alone.

It is published to the public npm registry as @jeap/jeap-opencode-plugin.

Requires OpenCode v2.0.27+ (first release with ctx.mcp.transform / ctx.skill.transform). OpenCode v1 is unsupported.

Install OpenCode itself​

If OpenCode isn't installed yet, or was installed via npm/bun, use the official install script instead:

curl -fsSL https://opencode.ai/v2/install | bash

Install the plugin​

Global (recommended):

opencode plugin add @jeap/jeap-opencode-plugin

Project-local — add it to the project's opencode.json(c):

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

Pin a version the same way as any other OpenCode plugin: opencode plugin add @jeap/jeap-opencode-plugin@1.2.3, or { "package": "@jeap/jeap-opencode-plugin@1.2.3" } in config.

Verify​

Run opencode, then:

  • /mcp → confirm jeap-mcp-service is connected.
  • Ask something clearly jEAP-specific (e.g. "migrate this project to Spring Boot 4") and confirm a bundled skill picks it up, or check your skill list for jeap-expert, install-jeap-cli, migrate-spring-boot-4, and migrate-confluence-docs.

Update​

opencode plugin update @jeap/jeap-opencode-plugin
opencode plugin check @jeap/jeap-opencode-plugin

Remove​

opencode plugin remove @jeap/jeap-opencode-plugin

(Or delete the plugins entry from your opencode.json(c), for a project-local install.)

Working from a local checkout instead (development only)​

For testing an unpublished change — not needed for normal use — point OpenCode at the checkout directly:

{
"$schema": "https://opencode.ai/config.json",
"plugins": ["/absolute/path/to/jeap-agent-marketplace/plugins/jeap-dev-toolkit"]
}

OpenCode loads the package through its package.json (name + exports), so the path can point at either plugins/jeap-dev-toolkit or a symlink to it — no copying. A relative path resolves from that opencode.json's own directory.