externalmcp

package
v0.2.79 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 13 Imported by: 0 modules, 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

View Source
const (
	SessionPromptToolName = "session_prompt"
	ExternalMCPPath       = "/mcp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func StartSessionPromptServer

func StartSessionPromptServer(ctx context.Context, logger *slog.Logger, listener net.Listener, users map[string]string, sessionPromptHandler func(context.Context, string, string, string, string, map[string]string, []SessionAttachment) (SessionResult, error)) *Server

func (*Server) Close

func (s *Server) Close(ctx context.Context) error

type SessionAttachment

type SessionAttachment struct {
	Name       string `json:"name,omitempty" jsonschema:"display filename for the attachment"`
	MIMEType   string `json:"mime_type,omitempty" jsonschema:"attachment MIME type, for example image/png"`
	DataBase64 string `json:"data_base64" jsonschema:"base64-encoded attachment bytes"`
}

type SessionResult

type SessionResult struct {
	ExternalConversationID string              `json:"external_conversation_id" jsonschema:"external conversation ID for this MCP conversation"`
	Agent                  string              `json:"agent" jsonschema:"agent used for this MCP conversation turn"`
	Answer                 string              `json:"answer" jsonschema:"plain-text answer from rocketclaw"`
	Attachments            []SessionAttachment `json:"attachments,omitempty" jsonschema:"attachments returned by rocketclaw"`
}

Jump to

Keyboard shortcuts

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