project

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentNameFromManifest

func AgentNameFromManifest(projectDir string) string

AgentNameFromManifest attempts to read the agent name, falling back to directory name.

func CleanupRegistryDir

func CleanupRegistryDir(projectDir string, verbose bool) error

CleanupRegistryDir removes the generated registry directory if it exists. This keeps registry-resolved MCP server artifacts from sticking around across runs.

func ConstructImageName

func ConstructImageName(configuredImage, agentName string) string

ConstructImageName builds an image reference using defaults when not provided.

func ConstructMCPServerImageName

func ConstructMCPServerImageName(agentName, serverName string) string

ConstructMCPServerImageName builds the image name for a command MCP server.

func EnsureMcpServerDirectories

func EnsureMcpServerDirectories(projectDir string, manifest *common.AgentManifest, verbose bool) error

EnsureMcpServerDirectories creates config.yaml and Dockerfile for command-type MCP servers. For registry-resolved servers, srv.Build contains the folder path (e.g., "registry/<name>"). For locally-defined servers, srv.Build is empty and srv.Name is used as the folder.

func EnvVarsFromManifest

func EnvVarsFromManifest(manifest *common.AgentManifest) []string

EnvVarsFromManifest extracts environment variables referenced in MCP headers.

func LoadManifest

func LoadManifest(projectDir string) (*common.AgentManifest, error)

LoadManifest loads the agent manifest from the project directory.

func RegenerateDockerCompose

func RegenerateDockerCompose(projectDir string, manifest *common.AgentManifest, version string, verbose bool) error

RegenerateDockerCompose rewrites docker-compose.yaml using the embedded template.

func RegenerateMcpTools

func RegenerateMcpTools(projectDir string, manifest *common.AgentManifest, verbose bool) error

RegenerateMcpTools updates the generated mcp_tools.py file based on manifest state.

func ResolveProjectDir

func ResolveProjectDir(projectDir string) (string, error)

ResolveProjectDir resolves the project directory path

Types

This section is empty.

Jump to

Keyboard shortcuts

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