mcpbridge

package
v0.6.49 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvReceiveIDType   = "ALICE_MCP_RECEIVE_ID_TYPE"
	EnvReceiveID       = "ALICE_MCP_RECEIVE_ID"
	EnvResourceRoot    = "ALICE_MCP_RESOURCE_ROOT"
	EnvSourceMessageID = "ALICE_MCP_SOURCE_MESSAGE_ID"
	EnvActorUserID     = "ALICE_MCP_ACTOR_USER_ID"
	EnvActorOpenID     = "ALICE_MCP_ACTOR_OPEN_ID"
	EnvChatType        = "ALICE_MCP_CHAT_TYPE"
	EnvSessionKey      = "ALICE_MCP_SESSION_KEY"
	EnvResumeThreadID  = "ALICE_MCP_RESUME_THREAD_ID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionContext

type SessionContext struct {
	ReceiveIDType   string
	ReceiveID       string
	ResourceRoot    string
	SourceMessageID string
	ActorUserID     string
	ActorOpenID     string
	ChatType        string
	SessionKey      string
	// ResumeThreadID is the Claude Code session UUID of the current session.
	// Skills can read ALICE_MCP_RESUME_THREAD_ID to use it as
	// action.resume_thread_id when creating resume-mode scheduled tasks.
	ResumeThreadID string
}

func SessionContextFromEnv

func SessionContextFromEnv(getenv func(key string) string) SessionContext

func (SessionContext) ToEnv

func (c SessionContext) ToEnv() map[string]string

func (SessionContext) Validate

func (c SessionContext) Validate() error

Jump to

Keyboard shortcuts

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