mcp

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivityLogPath

func ActivityLogPath(projectRoot string) string

ActivityLogPath returns the path to the shared activity log file.

func AppendActivityLog

func AppendActivityLog(projectRoot string, entry ActivityEntry) error

AppendActivityLog appends an activity entry to the shared activity log. It is intentionally generic so CLI and TUI actions can be tracked too.

Types

type ActivityEntry

type ActivityEntry struct {
	Tool      string `json:"tool"`
	Args      string `json:"args,omitempty"`
	Result    string `json:"result"`
	Error     string `json:"error,omitempty"`
	Source    string `json:"source,omitempty"`
	Timestamp string `json:"timestamp,omitempty"`
}

ActivityEntry records an MCP tool invocation for TUI display.

func ReadActivityLog

func ReadActivityLog(projectRoot string, maxEntries int) []ActivityEntry

ReadActivityLog reads the last N entries from the shared MCP activity log.

type Server

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

Server wraps the MCP server and gitflow logic together.

func NewServer

func NewServer(gf *gflogic.Logic) *Server

NewServer creates an MCP server exposing all gitflow tools.

func (*Server) Activity

func (s *Server) Activity() []ActivityEntry

Activity returns a snapshot of recent MCP tool invocations.

func (*Server) Run

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

Run starts the MCP server on stdio transport (blocks until client disconnects).

Jump to

Keyboard shortcuts

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