opencode

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter implements the OpenCode integration via MCP.

func New

func New() *Adapter

New creates a new OpenCode adapter.

func (*Adapter) DiscoverSessions

func (a *Adapter) DiscoverSessions(projectDir string) ([]adapter.Session, error)

DiscoverSessions returns sessions based on the project directory. OpenCode doesn't expose persistent session IDs externally.

func (*Adapter) Install

func (a *Adapter) Install(config adapter.InstallConfig) error

Install writes opencode.json with devtap MCP server configuration and injects devtap instructions into a project instruction file.

func (*Adapter) Name

func (a *Adapter) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL