Documentation
¶
Overview ¶
Package server implements the Model Context Protocol (MCP) server for godoctor. It orchestrates tool registration, handles incoming client requests (via Stdio or HTTP), and manages the lifecycle of the server. It connects the core logic (tools, graph) to the external world.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v0.34.0
type Option func(*Server)
Option defines a functional option for configuring a Server.
func WithServerConfig ¶ added in v0.34.0
func WithServerConfig(cfg config.ServerConfig) Option
WithServerConfig configures allowed origins and timeouts from config.ServerConfig.
Click to show internal directories.
Click to hide internal directories.