Documentation
¶
Overview ¶
Package server implements a Model Context Protocol (MCP) server that exposes Celeste's capabilities to external clients such as Claude Code, Codex, or any MCP-compatible tool orchestrator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(s *Server)
RegisterHandlers registers all three MCP tool handlers on the server.
Types ¶
type Config ¶
type Config struct {
// Transport mode: "stdio" or "sse"
Transport string
// SSE-specific settings
Port int
BindAddr string // default "127.0.0.1"
Remote bool // if true, bind to BindAddr (possibly 0.0.0.0)
CertFile string // TLS certificate for mTLS
KeyFile string // TLS private key for mTLS
TokenFile string // path to bearer token file (default ~/.celeste/server.token)
RateLimit int // requests per minute (default 60)
// Celeste config for creating LLM clients
CelesteConfig *config.Config
Workspace string
}
Config holds MCP server configuration.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a Config with sensible defaults.
type ContentBlock ¶
type ContentBlock = mcp.ContentBlock
ContentBlock is a content item in a tool call response. Re-exported from the mcp package for handler convenience.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the MCP server that exposes Celeste tools to external clients.
func (*Server) RegisterTool ¶
func (s *Server) RegisterTool(def mcp.MCPToolDef, handler ToolHandler)
RegisterTool adds a tool definition and its handler to the server.
type ToolHandler ¶
ToolHandler processes a tool call and returns content blocks.