Documentation
¶
Overview ¶
Package server adapts the transport-independent groundstrike engine to MCP over Streamable HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBuildMetadata ¶
func SetBuildMetadata(info BuildMetadata)
SetBuildMetadata updates the About contract for /about responses.
Types ¶
type BuildMetadata ¶
type Engine ¶
type Engine interface {
Reconcile(context.Context) (groundstrike.Report, error)
Search(context.Context, groundstrike.SearchQuery) ([]groundstrike.SearchHit, error)
Outline(context.Context, string) ([]groundstrike.Symbol, error)
Status(context.Context) (groundstrike.Status, error)
}
type Options ¶
type Options struct {
// TrustedHosts adds exact hostnames or IP addresses accepted by the MCP
// endpoint. Loopback IP addresses and localhost are always trusted.
TrustedHosts []string
}
Options configures the HTTP security boundary.
type OutlineInput ¶
type OutlineInput struct {
Path string `json:"path" jsonschema:"root-relative source file path"`
}
type OutlineOutput ¶
type OutlineOutput struct {
Symbols []groundstrike.Symbol `json:"symbols"`
}
type SearchInput ¶
type SearchOutput ¶
type SearchOutput struct {
Hits []groundstrike.SearchHit `json:"hits"`
}
Click to show internal directories.
Click to hide internal directories.