Documentation
¶
Index ¶
- func AttachServer(ctx context.Context, addr, sessionID string) (*mcp.Server, error)
- func CreateToolHandler(t *team.Team, agentName string) ...
- func StartAttachStdio(ctx context.Context, addr, sessionID string) error
- func StartHTTPServer(ctx context.Context, agentFilename, agentName string, ...) error
- func StartMCPServer(ctx context.Context, agentFilename, agentName string, ...) error
- type SendInput
- type SendOutput
- type ToolInput
- type ToolOutput
- type TranscriptInput
- type TranscriptM
- type TranscriptOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachServer ¶ added in v1.58.0
AttachServer wires an MCP server to a running docker-agent run accessible via its HTTP control plane. It exposes a small toolset (send, transcript) that other agents can use to drive the live session.
func CreateToolHandler ¶
func CreateToolHandler(t *team.Team, agentName string) func(context.Context, *mcp.CallToolRequest, ToolInput) (*mcp.CallToolResult, ToolOutput, error)
func StartAttachStdio ¶ added in v1.58.0
StartAttachStdio runs the attach MCP server over stdio.
func StartHTTPServer ¶
func StartHTTPServer(ctx context.Context, agentFilename, agentName string, runConfig *config.RuntimeConfig, ln net.Listener) error
StartHTTPServer starts a streaming HTTP MCP server on the given listener
func StartMCPServer ¶
Types ¶
type SendOutput ¶ added in v1.58.0
type SendOutput struct {
Status string `json:"status"`
}
type ToolInput ¶
type ToolInput struct {
Message string `json:"message" jsonschema:"the message to send to the agent"`
}
type ToolOutput ¶
type ToolOutput struct {
Response string `json:"response" jsonschema:"the response from the agent"`
}
type TranscriptInput ¶ added in v1.58.0
type TranscriptInput struct {
Limit int `json:"limit,omitempty" jsonschema:"max number of recent messages to return (0 = all)"`
}
type TranscriptM ¶ added in v1.58.0
type TranscriptOutput ¶ added in v1.58.0
type TranscriptOutput struct {
Title string `json:"title"`
Messages []TranscriptM `json:"messages"`
}
Click to show internal directories.
Click to hide internal directories.