mcp

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachServer added in v1.58.0

func AttachServer(ctx context.Context, addr, sessionID string) (*mcp.Server, error)

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

func StartAttachStdio(ctx context.Context, addr, sessionID string) error

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

func StartMCPServer(ctx context.Context, agentFilename, agentName string, runConfig *config.RuntimeConfig) error

Types

type SendInput added in v1.58.0

type SendInput struct {
	Message  string `json:"message" jsonschema:"the message to send"`
	FollowUp bool   `json:"followup,omitempty" jsonschema:"queue as end-of-turn follow-up instead of mid-turn steer"`
}

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 TranscriptM struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

type TranscriptOutput added in v1.58.0

type TranscriptOutput struct {
	Title    string        `json:"title"`
	Messages []TranscriptM `json:"messages"`
}

Jump to

Keyboard shortcuts

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