mcpserver

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvironmentInfoToCallResult added in v0.1.0

func EnvironmentInfoToCallResult(envInfo *environment.EnvironmentInfo) (*mcp.CallToolResult, error)

func EnvironmentToCallResult

func EnvironmentToCallResult(env *environment.Environment) (*mcp.CallToolResult, error)

func RunStdioServer

func RunStdioServer(ctx context.Context, dag *dagger.Client, singleTenant bool) error

Types

type EnvironmentResponse

type EnvironmentResponse struct {
	ID              string                         `json:"id"`
	Title           string                         `json:"title"`
	Config          *environment.EnvironmentConfig `json:"config"`
	RemoteRef       string                         `json:"remote_ref"`
	CheckoutCommand string                         `json:"checkout_command_to_share_with_user"`
	LogCommand      string                         `json:"log_command_to_share_with_user"`
	DiffCommand     string                         `json:"diff_command_to_share_with_user"`
	Services        []*environment.Service         `json:"services,omitempty"`
}

type Tool

type Tool struct {
	Definition mcp.Tool
	Handler    server.ToolHandlerFunc
}

func Tools added in v0.3.0

func Tools() []*Tool

Jump to

Keyboard shortcuts

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