Documentation
¶
Index ¶
- func Install(ctx context.Context, logger logger.Logger) error
- func Register(ctx MCPContext) error
- func Uninstall(ctx context.Context, logger logger.Logger) error
- type CreateAgentArguments
- type CreateProjectArguments
- type DeleteAgentArguments
- type DeployArguments
- type EnvDeleteArguments
- type EnvListArguments
- type EnvSetArguments
- type ListAgentsArguments
- type ListTemplatesArguments
- type MCPClientApplicationConfig
- type MCPClientConfig
- type MCPConfig
- type MCPContext
- type MCPServerConfig
- type NoArguments
- type RegisterCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
Install installs the agentuity tool for the given command and args. It will install the tool for each MCP client config that is detected and not already installed.
func Register ¶
func Register(ctx MCPContext) error
Types ¶
type CreateAgentArguments ¶
type CreateAgentArguments struct {
Name string `json:"name" jsonschema:"required,description=The name of the agent which must be unique within the project"`
Description string `json:"description" jsonschema:"required,description=A description of the agent and what it does"`
AuthType string `` /* 175-byte string literal not displayed */
Directory string `json:"directory" jsonschema:"required,description=The directory where the project is located"`
}
type CreateProjectArguments ¶
type CreateProjectArguments struct {
Name string `json:"name" jsonschema:"required,description=The name of the project which must be unique within the organization"`
Description string `json:"description" jsonschema:"required,description=A description of the project"`
AgentName string `json:"agentName" jsonschema:"required,description=The name of the agent to create"`
AgentDescription string `json:"agentDescription" jsonschema:"required,description=A description of the agent and what it does"`
AuthType string `` /* 175-byte string literal not displayed */
Directory string `json:"directory" jsonschema:"required,description=The directory to create the project in in the local file system"`
Provider string `` /* 164-byte string literal not displayed */
Template string `` /* 158-byte string literal not displayed */
OrganizationId string `` /* 238-byte string literal not displayed */
}
type DeleteAgentArguments ¶ added in v0.0.75
type DeployArguments ¶
type DeployArguments struct {
Directory string `json:"directory" jsonschema:"required,description=The directory where the project is located"`
Tags []string `json:"tags,omitempty" jsonschema:"description=Tags to associate with this deployment"`
Description string `json:"description,omitempty" jsonschema:"description=Description for the deployment tag(s)"`
Message string `json:"message,omitempty" jsonschema:"description=Message for the deployment tag(s)"`
}
type EnvDeleteArguments ¶
type EnvListArguments ¶
type EnvListArguments struct {
Directory string `json:"directory" jsonschema:"required,description=The directory where the project is located"`
}
type EnvSetArguments ¶
type EnvSetArguments struct {
Key string `json:"key" jsonschema:"required,description=The name of the environment variable or secret to set"`
Value string `json:"value" jsonschema:"required,description=The value to set the environment variable or secret to set"`
IsSecret bool `` /* 155-byte string literal not displayed */
Directory string `json:"directory" jsonschema:"required,description=The directory where the project is located"`
}
type ListAgentsArguments ¶
type ListAgentsArguments struct {
Directory string `json:"directory" jsonschema:"required,description=The directory where the project is located"`
}
type ListTemplatesArguments ¶
type ListTemplatesArguments struct {
Provider string `` /* 172-byte string literal not displayed */
}
type MCPClientConfig ¶
type MCPClientConfig struct {
Name string
ConfigLocation string
Command string
Application *MCPClientApplicationConfig
Transport string
Config *MCPConfig `json:"-"`
Detected bool `json:"-"` // if the agentuity mcp server is detected in the config file
Installed bool `json:"-"` // if this client is installed on this machine
IsAMP bool `json:"-"`
}
type MCPConfig ¶
type MCPConfig struct {
MCPServers map[string]MCPServerConfig `json:"mcpServers,omitempty"`
AMPMCPServers map[string]MCPServerConfig `json:"amp.mcpServers,omitempty"`
AMPURL string `json:"amp.url"`
Extra map[string]interface{} `json:"-"`
// contains filtered or unexported fields
}
func (*MCPConfig) AddIfNotExists ¶
func (*MCPConfig) MarshalJSON ¶ added in v0.0.148
func (*MCPConfig) UnmarshalJSON ¶ added in v0.0.148
type MCPContext ¶
type MCPServerConfig ¶
type NoArguments ¶
type NoArguments struct {
}
type RegisterCallback ¶
type RegisterCallback func(ctx MCPContext) error
Click to show internal directories.
Click to hide internal directories.