server

package
v0.0.0-...-77730e6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the main MCP server wrapping Mythic SDK

func NewServer

func NewServer(cfg *config.Config) (*Server, error)

NewServer creates a new MCP server with Mythic integration

func (*Server) Authenticate

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

Authenticate logs in to the Mythic instance. Call this before serving.

func (*Server) Close

func (s *Server) Close() error

Close cleans up server resources

func (*Server) FileStore

func (s *Server) FileStore() *filestore.FileStore

FileStore returns the file store instance (may be nil if disabled).

func (*Server) MCPServer

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

MCPServer returns the underlying *mcp.Server so callers can wire it into any transport (StreamableHTTPHandler, SSEHandler, StdioTransport, etc.).

func (*Server) Run

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

Run starts the MCP server on a single-session transport (e.g. stdio). The server starts unauthenticated; the user must call mythic_login to establish a session. For HTTP serving, use MCPServer() with a StreamableHTTPHandler instead.

Jump to

Keyboard shortcuts

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