mcpserver

package
v1.59.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDomainTools

func RegisterDomainTools(server *mcp.Server, client *api.Client)

func RegisterMetadataTools

func RegisterMetadataTools(server *mcp.Server, client *api.Client)

func RegisterPlanTools

func RegisterPlanTools(server *mcp.Server, client *api.Client)

func RegisterTeamTools

func RegisterTeamTools(server *mcp.Server, client *api.Client)

func RegisterUsageTools

func RegisterUsageTools(server *mcp.Server, client *api.Client)

func RegisterWorkspaceTools

func RegisterWorkspaceTools(server *mcp.Server, client *api.Client)

func Run

func Run() error

Types

type CreateDomainArgs

type CreateDomainArgs struct {
	TeamId     int    `json:"teamId" jsonschema:"ID of the team"`
	DomainName string `json:"domainName" jsonschema:"The domain name to create"`
}

type CreateTeamArgs

type CreateTeamArgs struct {
	OrgId string `json:"orgId,omitempty" jsonschema:"Optional organization ID to create the team in"`
	Name  string `json:"name" jsonschema:"Name of the new team"`
	Dc    int    `json:"dc" jsonschema:"Default datacenter ID"`
}

type CreateWorkspaceInput

type CreateWorkspaceInput struct {
	TeamId        int     `json:"teamId" jsonschema:"ID of the team to create the workspace in"`
	Name          string  `json:"name" jsonschema:"Name of the workspace"`
	PlanId        int     `json:"planId" jsonschema:"Plan ID for the workspace (e.g. 1 for basic)"`
	IsPrivateRepo bool    `json:"isPrivateRepo" jsonschema:"Whether the repository is private"`
	Replicas      int     `json:"replicas" jsonschema:"Number of replicas, usually 1"`
	BaseImage     *string `json:"baseImage,omitempty" jsonschema:"Optional base image name"`
	GitUrl        *string `json:"gitUrl,omitempty" jsonschema:"Optional git repository URL"`
	InitialBranch *string `json:"initialBranch,omitempty" jsonschema:"Optional initial branch"`
}

type DeleteDomainArgs

type DeleteDomainArgs struct {
	TeamId     int    `json:"teamId" jsonschema:"ID of the team"`
	DomainName string `json:"domainName" jsonschema:"The domain name to delete"`
}

type DeleteTeamArgs

type DeleteTeamArgs struct {
	OrgId  string `json:"orgId,omitempty" jsonschema:"Optional organization ID the team belongs to"`
	TeamId int    `json:"teamId" jsonschema:"ID of the team to delete"`
}

type DeleteWorkspaceArgs

type DeleteWorkspaceArgs struct {
	WorkspaceId int `json:"workspaceId" jsonschema:"ID of the workspace to delete"`
}

type DeployLandscapeArgs

type DeployLandscapeArgs struct {
	WorkspaceId int    `json:"workspaceId" jsonschema:"ID of the workspace"`
	Profile     string `json:"profile" jsonschema:"The landscape profile"`
}

type ExecCommandArgs

type ExecCommandArgs struct {
	WorkspaceId int               `json:"workspaceId" jsonschema:"ID of the workspace"`
	Command     string            `json:"command" jsonschema:"Command to execute"`
	Workdir     string            `json:"workdir" jsonschema:"Working directory"`
	Env         map[string]string `json:"env" jsonschema:"Environment variables to pass"`
}

type GetDomainArgs

type GetDomainArgs struct {
	TeamId     int    `json:"teamId" jsonschema:"ID of the team"`
	DomainName string `json:"domainName" jsonschema:"The domain name"`
}

type GetLandscapeServiceEventsArgs

type GetLandscapeServiceEventsArgs struct {
	TeamId     int    `json:"teamId" jsonschema:"ID of the team"`
	ResourceId string `json:"resourceId" jsonschema:"Resource ID"`
	BeginDate  string `json:"beginDate" jsonschema:"Begin date in RFC3339 format"`
	EndDate    string `json:"endDate" jsonschema:"End date in RFC3339 format"`
	Limit      int    `json:"limit,omitempty" jsonschema:"Limit"`
	Offset     int    `json:"offset,omitempty" jsonschema:"Offset"`
}

type GetLogsOfReplicaArgs

type GetLogsOfReplicaArgs struct {
	WorkspaceId int    `json:"workspaceId" jsonschema:"ID of the workspace"`
	Step        int    `json:"step" jsonschema:"Index of execution step (default 0)"`
	Replica     string `json:"replica" jsonschema:"ID of server replica"`
}

type GetLogsOfServerArgs

type GetLogsOfServerArgs struct {
	WorkspaceId int    `json:"workspaceId" jsonschema:"ID of the workspace"`
	Step        int    `json:"step" jsonschema:"Index of execution step (default 0)"`
	Server      string `json:"server" jsonschema:"Name of the landscape server"`
}

type GetLogsOfStageArgs

type GetLogsOfStageArgs struct {
	WorkspaceId int    `json:"workspaceId" jsonschema:"ID of the workspace"`
	Stage       string `json:"stage" jsonschema:"Stage name, like 'run'"`
	Step        int    `json:"step" jsonschema:"Index of execution step (default 0)"`
}

type GetPipelineStateArgs

type GetPipelineStateArgs struct {
	WorkspaceId int    `json:"workspaceId" jsonschema:"ID of the workspace"`
	Stage       string `json:"stage" jsonschema:"Stage name"`
}

type GetTeamArgs

type GetTeamArgs struct {
	TeamId int `json:"teamId" jsonschema:"ID of the team to get"`
}

type GetUsageSummaryLandscapeArgs

type GetUsageSummaryLandscapeArgs struct {
	TeamId    int    `json:"teamId" jsonschema:"ID of the team"`
	BeginDate string `json:"beginDate" jsonschema:"Begin date in RFC3339 format"`
	EndDate   string `json:"endDate" jsonschema:"End date in RFC3339 format"`
	Limit     int    `json:"limit,omitempty" jsonschema:"Limit"`
	Offset    int    `json:"offset,omitempty" jsonschema:"Offset"`
}

type GetWorkspaceArgs

type GetWorkspaceArgs struct {
	WorkspaceId int `json:"workspaceId" jsonschema:"ID of the workspace to get"`
}

type ListBaseimagesArgs

type ListBaseimagesArgs struct{}

type ListDataCentersArgs

type ListDataCentersArgs struct{}

type ListDomainsArgs

type ListDomainsArgs struct {
	TeamId int `json:"teamId" jsonschema:"ID of the team"`
}

type ListTeamsArgs

type ListTeamsArgs struct {
	OrgId string `json:"orgId,omitempty" jsonschema:"Optional organization ID to list teams for"`
}

type ListWorkspacePlansArgs

type ListWorkspacePlansArgs struct{}

type ListWorkspacesArgs

type ListWorkspacesArgs struct {
	TeamId int `json:"teamId" jsonschema:"ID of the team to list workspaces for"`
}

type ScaleLandscapeServicesArgs

type ScaleLandscapeServicesArgs struct {
	WorkspaceId int            `json:"workspaceId" jsonschema:"ID of the workspace"`
	Services    map[string]int `json:"services" jsonschema:"Map of service name to replica count"`
}

type ScaleWorkspaceArgs

type ScaleWorkspaceArgs struct {
	WorkspaceId int `json:"workspaceId" jsonschema:"ID of the workspace"`
	Replicas    int `json:"replicas" jsonschema:"Number of replicas"`
}

type SetEnvVarArgs

type SetEnvVarArgs struct {
	WorkspaceId int               `json:"workspaceId" jsonschema:"ID of the workspace"`
	EnvVars     map[string]string `json:"envVars" jsonschema:"Key-value map of environment variables"`
}

type StartPipelineStageArgs

type StartPipelineStageArgs struct {
	WorkspaceId int    `json:"workspaceId" jsonschema:"ID of the workspace"`
	Profile     string `json:"profile" jsonschema:"Profile name"`
	Stage       string `json:"stage" jsonschema:"Stage name"`
}

type StopPipelineStageArgs added in v1.23.0

type StopPipelineStageArgs struct {
	WorkspaceId int    `json:"workspaceId" jsonschema:"ID of the workspace"`
	Stage       string `json:"stage" jsonschema:"Stage name"`
}

StopPipelineStageArgs has no Profile field, unlike StartPipelineStageArgs: The API stops the currently running pipeline as only one can run at a time.

type UpdateDomainArgs

type UpdateDomainArgs struct {
	TeamId     int                  `json:"teamId" jsonschema:"ID of the team"`
	DomainName string               `json:"domainName" jsonschema:"The domain name to update"`
	Args       api.UpdateDomainArgs `json:"args" jsonschema:"The update arguments array"`
}

type VerifyDomainArgs

type VerifyDomainArgs struct {
	TeamId     int    `json:"teamId" jsonschema:"ID of the team"`
	DomainName string `json:"domainName" jsonschema:"The domain name to verify"`
}

type WorkspaceStatusArgs

type WorkspaceStatusArgs struct {
	WorkspaceId int `json:"workspaceId" jsonschema:"ID of the workspace"`
}

Jump to

Keyboard shortcuts

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