Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPHandler ¶
func HTTPHandler(eventChan <-chan lsprpc.SessionEvent, cache *cache.Cache, isDaemon bool) http.Handler
HTTPHandler returns an HTTP handler for handling requests from MCP client.
func Serve ¶
func Serve(ctx context.Context, address string, eventChan <-chan lsprpc.SessionEvent, cache *cache.Cache, isDaemon bool) error
Serve start an MCP server serving at the input address. The server receives LSP session events on the specified channel, which the caller is responsible for closing. The server runs until the context is canceled.
Types ¶
type ContextParams ¶
Click to show internal directories.
Click to hide internal directories.