Documentation
¶
Overview ¶
Package mcp provides the MCP server and tool handlers for git-courer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OllamaLifecycle ¶
OllamaLifecycle abstracts Ollama runtime operations (start, stop, pre-warm).
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server holds the MCP server and all injected dependencies.
func ServeWithAdapter ¶
func ServeWithAdapter(cfg *config.Config, git ports.Git, llm ports.LLM, ollamaLifecycle OllamaLifecycle) *Server
ServeWithAdapter wires everything together and starts serving asynchronously.
func (*Server) SetClientInfo ¶
func (s *Server) SetClientInfo(info *domain.ClientInfo, caps *domain.ClientCapabilities)
SetClientInfo stores client information captured during the MCP initialize handshake.
func (*Server) Stop ¶
func (s *Server) Stop(ollamaLifecycle OllamaLifecycle)
Stop stops Ollama if we started it.
Click to show internal directories.
Click to hide internal directories.