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

agents

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package agents reads the MCP servers that coding agents keep in their own config files and turns them into tap's server definitions. It only reads: nothing in an agent's config is changed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Agent is the agent's name as people know it; Path is the file that was read.
	Agent, Path string
	Servers     []Server
	Skipped     []Skipped
}

Config is what one agent's file holds.

func Read

func Read(place Place, cwd string) (*Config, error)

Read loads the servers in one file. cwd picks the project whose servers Claude Code keeps in its user file. A file with no servers in it gives a Config with none.

type Place

type Place struct {
	// ID is what a person types to pick the agent: claude, codex, opencode, cursor or vscode.
	ID, Agent, Path string
}

Place is a file where an agent may keep servers.

func Places

func Places(home, cwd string) []Place

Places lists the files tap knows to look in, for a home directory and a working directory.

type Server

type Server struct {
	Name string
	Def  wire.Object
	// Note says what changed on the way over, such as a new name. It is empty for most.
	Note string
}

Server is one server an agent has, in tap's shape, under a name tap accepts.

type Skipped

type Skipped struct{ Name, Why string }

Skipped is a server tap cannot take over, and why.

Jump to

Keyboard shortcuts

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