Help us shape the future of Go! Take the 2026 Go Developer Survey

bridge

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	// contains filtered or unexported fields
}

Bridge provides IDE integration via a VS Code MCP bridge server.

func Setup

func Setup(ctx context.Context, workingDir string, manager *mgr.Manager) *Bridge

Setup discovers a VS Code bridge from lockfiles and connects it to the MCP manager. Returns nil if no bridge is found.

func (*Bridge) Close

func (b *Bridge) Close()

Close shuts down the bridge session.

func (*Bridge) GetContext

func (b *Bridge) GetContext() string

GetContext returns the current IDE state formatted for prompt injection.

func (*Bridge) GetDiagnostics

func (b *Bridge) GetDiagnostics(ctx context.Context, path string) (string, error)

GetDiagnostics fetches LSP diagnostics from the IDE for a file.

func (*Bridge) GetInstructions

func (b *Bridge) GetInstructions() string

GetInstructions returns the MCP server instructions from the bridge.

func (*Bridge) IsConnected

func (b *Bridge) IsConnected() bool

IsConnected returns true if the bridge MCP server is connected.

func (*Bridge) NotifyFileUpdated

func (b *Bridge) NotifyFileUpdated(ctx context.Context, path string)

NotifyFileUpdated tells the IDE that a file was changed externally so language services re-analyze it.

Jump to

Keyboard shortcuts

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