mcp

package
v0.19.0-pre.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2025 License: BSD-3-Clause Imports: 21 Imported by: 0

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

type ContextParams struct {
	// TODO(hxjiang): experiment if the LLM can correctly provide the right
	// location information.
	Location protocol.Location `json:"location"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL