agents

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package agents wires the Privasys MCP server into the common AI-agent harnesses. It generates the per-harness MCP registration file (and an AGENTS.md briefing) so a developer or an agent can mount the platform with a single command, the way `privasys mcp serve` is meant to be consumed.

The registration only ever points at the locally installed `privasys` binary, which reads its token from the OS keychain — no secret is ever written into the generated config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentsBlock

func AgentsBlock() string

AgentsBlock returns the full managed block (markers included).

func MergeAgentsMD

func MergeAgentsMD(existing []byte) (result []byte, changed bool)

MergeAgentsMD inserts or replaces the managed Privasys block in an AGENTS.md file, leaving the rest of the file untouched.

func Names

func Names() []string

Names returns the harness ids, sorted, for help text and validation.

Types

type Harness

type Harness struct {
	Name  string // stable id used on the command line, e.g. "claude"
	Title string // human label, e.g. "Claude Code"
	Path  string // repo-relative file the registration is merged into
	// contains filtered or unexported fields
}

Harness is one supported AI-agent ecosystem and where its project-local MCP registration lives.

func All

func All() []Harness

All returns the known harnesses in a stable order.

func Lookup

func Lookup(name string) (Harness, bool)

Lookup resolves a harness by id.

func (Harness) Merge

func (h Harness) Merge(existing []byte) (result []byte, changed bool, err error)

Merge folds the Privasys MCP server into the harness's config file content, preserving any other servers and unrelated keys already present. existing may be nil or empty for a fresh file. It reports whether the result differs from what was already there.

Jump to

Keyboard shortcuts

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