mcpserver

package
v0.1.61 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient abstracts HTTP calls for testability.

type MemoryOption added in v0.1.33

type MemoryOption func(*Server)

MemoryOption configures optional memory search for the MCP server.

func WithMemoryAPI added in v0.1.33

func WithMemoryAPI(dirPath string) MemoryOption

WithMemoryAPI enables memory search tools via the daemon's HTTP API. dirPath is the project directory; if empty, the server falls back to channel_id for lookups.

type Server

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

Server wraps the MCP server with tools for task scheduling.

func New

func New(channelID, apiURL, authorID string, httpClient HTTPClient, logger *slog.Logger, opts ...MemoryOption) *Server

New creates a new MCP server with scheduler tools.

func (*Server) DirPath added in v0.1.33

func (s *Server) DirPath() string

DirPath returns the project directory used for memory lookups.

func (*Server) MCPServer

func (s *Server) MCPServer() *mcp.Server

MCPServer returns the underlying MCP server for testing.

func (*Server) Run

func (s *Server) Run(ctx context.Context, transport mcp.Transport) error

Run starts the MCP server on the given transport.

Jump to

Keyboard shortcuts

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