Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsGitHubFlow ¶
IsGitHubFlow reports whether the given source type should use the GitHub device code flow (as opposed to the Microsoft flow).
func LogAPIKeyStatus ¶ added in v0.1.5
func LogAPIKeyStatus()
LogAPIKeyStatus logs whether API/MCP bearer-token auth is enabled. Call once from main after creating the server.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the REST API server for the Web UI.
func NewServer ¶
NewServer creates a new API server wired to the given store, crawler, and MCP handler. Pass nil for mcpHandler and/or crawler when not needed (e.g. in tests). key must be exactly 32 bytes and is used for AES-256-GCM token encryption.
func NewServerWithMCPHandlers ¶ added in v0.1.3
func NewServerWithMCPHandlers(store *db.Store, c *crawler.Crawler, mcpHandler, mcpStreamableHandler http.Handler, key []byte) *Server
NewServerWithMCPHandlers creates a new API server with separate MCP handlers for SSE (/mcp/sse) and streamable HTTP (/mcp/http) clients.