Documentation
¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) DeleteAgent(name, version string) error
- func (c *Client) DeleteMCPServer(name, version string) error
- func (c *Client) DeleteSkill(name, version string) error
- func (c *Client) DeployAgent(name, version string, config map[string]string, runtimeTarget string) (*DeploymentResponse, error)
- func (c *Client) DeployServer(name, version string, config map[string]string, preferRemote bool, ...) (*DeploymentResponse, error)
- func (c *Client) GetAgentByName(name string) (*models.AgentResponse, error)
- func (c *Client) GetAgentByNameAndVersion(name, version string) (*models.AgentResponse, error)
- func (c *Client) GetAgentByNameAndVersionAdmin(name, version string) (*models.AgentResponse, error)
- func (c *Client) GetAgents() ([]*models.AgentResponse, error)
- func (c *Client) GetAllServerVersionsAdmin(name string) ([]v0.ServerResponse, error)
- func (c *Client) GetAllServers() ([]*v0.ServerResponse, error)
- func (c *Client) GetDeployedServerByNameAndVersion(name string, version string) (*DeploymentResponse, error)
- func (c *Client) GetDeployedServers() ([]*DeploymentResponse, error)
- func (c *Client) GetPublishedServers() ([]*v0.ServerResponse, error)
- func (c *Client) GetServerByName(name string, publishedOnly bool) (*v0.ServerResponse, error)
- func (c *Client) GetServerByNameAndVersion(name, version string, publishedOnly bool) (*v0.ServerResponse, error)
- func (c *Client) GetServerVersions(name string) ([]v0.ServerResponse, error)
- func (c *Client) GetSkillByName(name string) (*models.SkillResponse, error)
- func (c *Client) GetSkillByNameAndVersion(name, version string) (*models.SkillResponse, error)
- func (c *Client) GetSkillByNameAndVersionAdmin(name, version string) (*models.SkillResponse, error)
- func (c *Client) GetSkillVersions(name string) ([]*models.SkillResponse, error)
- func (c *Client) GetSkills() ([]*models.SkillResponse, error)
- func (c *Client) GetVersion() (*internalv0.VersionBody, error)
- func (c *Client) Ping() error
- func (c *Client) PublishAgent(agent *models.AgentJSON) (*models.AgentResponse, error)
- func (c *Client) PublishAgentStatus(name, version string) error
- func (c *Client) PublishMCPServer(server *v0.ServerJSON) (*v0.ServerResponse, error)
- func (c *Client) PublishMCPServerStatus(name, version string) error
- func (c *Client) PublishSkill(skill *models.SkillJSON) (*models.SkillResponse, error)
- func (c *Client) PublishSkillStatus(name, version string) error
- func (c *Client) PushAgent(agent *models.AgentJSON) (*models.AgentResponse, error)
- func (c *Client) PushMCPServer(server *v0.ServerJSON) (*v0.ServerResponse, error)
- func (c *Client) PushSkill(skill *models.SkillJSON) (*models.SkillResponse, error)
- func (c *Client) RemoveServer(name string, version string) error
- func (c *Client) UnpublishAgentStatus(name, version string) error
- func (c *Client) UnpublishMCPServer(name, version string) error
- func (c *Client) UnpublishSkill(name, version string) error
- func (c *Client) UpdateDeploymentConfig(name string, config map[string]string) (*DeploymentResponse, error)
- type DeploymentResponse
- type DeploymentsListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string
// contains filtered or unexported fields
}
Client is a lightweight API client replacing the previous SQLite backend
func NewClientFromEnv ¶
NewClientFromEnv constructs a client using environment variables
func (*Client) DeleteAgent ¶
DeleteAgent deletes an agent from the registry
func (*Client) DeleteMCPServer ¶
DeleteMCPServer deletes an MCP server from the registry by setting its status to deleted
func (*Client) DeleteSkill ¶
DeleteSkill deletes a skill from the registry Note: This uses DELETE HTTP method. If the endpoint doesn't exist, it will return an error.
func (*Client) DeployAgent ¶
func (c *Client) DeployAgent(name, version string, config map[string]string, runtimeTarget string) (*DeploymentResponse, error)
DeployAgent deploys an agent with configuration
func (*Client) DeployServer ¶
func (c *Client) DeployServer(name, version string, config map[string]string, preferRemote bool, runtimeTarget string) (*DeploymentResponse, error)
DeployServer deploys a server with configuration
func (*Client) GetAgentByName ¶
func (c *Client) GetAgentByName(name string) (*models.AgentResponse, error)
func (*Client) GetAgentByNameAndVersion ¶
func (c *Client) GetAgentByNameAndVersion(name, version string) (*models.AgentResponse, error)
GetAgentByNameAndVersion returns a specific version of an agent
func (*Client) GetAgentByNameAndVersionAdmin ¶
func (c *Client) GetAgentByNameAndVersionAdmin(name, version string) (*models.AgentResponse, error)
GetAgentByNameAndVersionAdmin returns a specific version of an agent (admin endpoint - includes unpublished)
func (*Client) GetAgents ¶
func (c *Client) GetAgents() ([]*models.AgentResponse, error)
GetAgents returns all agents from connected registries
func (*Client) GetAllServerVersionsAdmin ¶
func (c *Client) GetAllServerVersionsAdmin(name string) ([]v0.ServerResponse, error)
GetAllServerVersionsAdmin returns all versions of a server by name (admin endpoint - includes unpublished)
func (*Client) GetAllServers ¶
func (c *Client) GetAllServers() ([]*v0.ServerResponse, error)
func (*Client) GetDeployedServerByNameAndVersion ¶
func (c *Client) GetDeployedServerByNameAndVersion(name string, version string) (*DeploymentResponse, error)
GetDeployedServerByNameAndVersion retrieves a specific deployment by name and version
func (*Client) GetDeployedServers ¶
func (c *Client) GetDeployedServers() ([]*DeploymentResponse, error)
GetDeployedServers retrieves all deployed servers
func (*Client) GetPublishedServers ¶
func (c *Client) GetPublishedServers() ([]*v0.ServerResponse, error)
GetPublishedServers returns all published MCP servers
func (*Client) GetServerByName ¶
GetServerByName returns a server by name (latest version)
func (*Client) GetServerByNameAndVersion ¶
func (c *Client) GetServerByNameAndVersion(name, version string, publishedOnly bool) (*v0.ServerResponse, error)
GetServerByNameAndVersion returns a specific version of a server
func (*Client) GetServerVersions ¶
func (c *Client) GetServerVersions(name string) ([]v0.ServerResponse, error)
GetServerVersions returns all versions of a server by name (public endpoint - only published)
func (*Client) GetSkillByName ¶
func (c *Client) GetSkillByName(name string) (*models.SkillResponse, error)
GetSkillByName returns a skill by name
func (*Client) GetSkillByNameAndVersion ¶
func (c *Client) GetSkillByNameAndVersion(name, version string) (*models.SkillResponse, error)
GetSkillByNameAndVersion returns a specific version of a skill
func (*Client) GetSkillByNameAndVersionAdmin ¶
func (c *Client) GetSkillByNameAndVersionAdmin(name, version string) (*models.SkillResponse, error)
GetSkillByNameAndVersionAdmin returns a specific version of a skill (admin endpoint - includes unpublished)
func (*Client) GetSkillVersions ¶
func (c *Client) GetSkillVersions(name string) ([]*models.SkillResponse, error)
GetSkillVersions returns all versions of a skill by name (admin endpoint - includes unpublished)
func (*Client) GetSkills ¶
func (c *Client) GetSkills() ([]*models.SkillResponse, error)
GetSkills returns all skills from connected registries
func (*Client) GetVersion ¶
func (c *Client) GetVersion() (*internalv0.VersionBody, error)
func (*Client) PublishAgent ¶
PublishAgent creates an agent entry and marks it as published (published=true)
func (*Client) PublishAgentStatus ¶
PublishAgentStatus marks an existing agent as published (sets published=true)
func (*Client) PublishMCPServer ¶
func (c *Client) PublishMCPServer(server *v0.ServerJSON) (*v0.ServerResponse, error)
PublishMCPServer creates an MCP server entry and marks it as published (published=true)
func (*Client) PublishMCPServerStatus ¶
PublishMCPServerStatus marks an existing MCP server as published (sets published=true)
func (*Client) PublishSkill ¶
PublishSkill creates a skill entry and marks it as published (published=true)
func (*Client) PublishSkillStatus ¶
PublishSkillStatus marks an existing skill as published (sets published=true)
func (*Client) PushAgent ¶
PushAgent creates an agent entry in the registry without publishing (published=false)
func (*Client) PushMCPServer ¶
func (c *Client) PushMCPServer(server *v0.ServerJSON) (*v0.ServerResponse, error)
PushMCPServer creates an MCP server entry in the registry without publishing (published=false)
func (*Client) PushSkill ¶
PushSkill creates a skill entry in the registry without publishing (published=false)
func (*Client) RemoveServer ¶
RemoveServer removes a deployment
func (*Client) UnpublishAgentStatus ¶
UnpublishAgentStatus marks an existing agent as unpublished (sets published=false)
func (*Client) UnpublishMCPServer ¶
UnpublishMCPServer unpublishes an MCP server from the registry
func (*Client) UnpublishSkill ¶
UnpublishSkill unpublishes a skill from the registry
func (*Client) UpdateDeploymentConfig ¶
func (c *Client) UpdateDeploymentConfig(name string, config map[string]string) (*DeploymentResponse, error)
UpdateDeploymentConfig updates deployment configuration
type DeploymentResponse ¶
type DeploymentResponse struct {
ServerName string `json:"serverName"`
Version string `json:"version"`
DeployedAt string `json:"deployedAt"`
UpdatedAt string `json:"updatedAt"`
Status string `json:"status"`
Config map[string]string `json:"config"`
PreferRemote bool `json:"preferRemote"`
ResourceType string `json:"resourceType"`
Runtime string `json:"runtime"`
}
DeploymentResponse represents a deployment returned by the API
type DeploymentsListResponse ¶
type DeploymentsListResponse struct {
Deployments []DeploymentResponse `json:"deployments"`
}
DeploymentsListResponse represents the list of deployments