mcpwire

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGoplsSkill

func GenerateGoplsSkill(templates fs.FS, skillsDir, instructions string) error

GenerateGoplsSkill writes <skillsDir>/gopls-navigation/SKILL.md by combining the curated header template with the live `gopls mcp -instructions` output, so the skill is always current with the installed gopls. The caller skips this when gopls is absent.

func GoplsInstructions

func GoplsInstructions(ctx context.Context) (string, error)

GoplsInstructions runs `gopls mcp -instructions` and returns its output: the authoritative, version-current MCP tool reference for the installed gopls.

func GoplsOnPath

func GoplsOnPath() bool

GoplsOnPath reports whether the gopls binary is resolvable on PATH.

func WriteMCP

func WriteMCP(templates fs.FS, repoDir string) error

WriteMCP merges the rendered gopls server into <repoDir>/.mcp.json, preserving any other servers and unrelated top-level keys. It is idempotent: re-running replaces only the managed gopls entry and never duplicates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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