Versions in this module Expand all Collapse all v1 v1.3.2 Apr 21, 2026 v1.3.1 Apr 21, 2026 Changes in this version + const GetToolSpecToolName + var ErrDocsIndexUnavailable = errors.New("docs index unavailable") + func BuildDocsQuery(query string) string + func BuildStubTool(spec ToolSpec) (mcpgo.Tool, error) + func NewIntentMiddleware(next http.Handler, opts IntentOptions) http.Handler + func RegisterKnowledgeTools(server *mcpserver.MCPServer, opts KnowledgeOptions) error + func StemToken(value string) string + type ChatContext struct + Current string + History []ChatContextEntry + type ChatContextEntry struct + Content string + Role string + type Classifier interface + Rank func(ctx context.Context, chatCtx ChatContext, digest []ToolDigest) ([]string, error) + TopK func() int + func NewClassifierFromEnv() (Classifier, error) + type DocsSearchIndex struct + func NewDocsSearchIndex(options DocsSearchIndexOptions) *DocsSearchIndex + func (d *DocsSearchIndex) Search(ctx context.Context, queryInput string, limit int) ([]KnowledgeSearchResult, error) + type DocsSearchIndexOptions struct + DocsSiteURL string + HTTPClient *http.Client + SearchIndexURL string + TTL time.Duration + type IntentMode string + const IntentModeCompactOnly + const IntentModeOff + const IntentModeOn + func ModeFromEnv(fallback IntentMode) IntentMode + type IntentOptions struct + Classifier Classifier + Mode IntentMode + Specs []ToolSpec + type KnowledgeOptions struct + DocsIndexURL string + DocsSiteURL string + DocsTTL int64 + PlatformBaseURL string + type KnowledgeSearchResult struct + Snippet string + Title string + URL string + type LinkIntent struct + ExplicitLinkRequest bool + Target LinkTarget + func DetectLinkIntent(query string) LinkIntent + type LinkTarget string + const LinkTargetBoth + const LinkTargetDocs + const LinkTargetNone + const LinkTargetPlatform + type PlatformLink struct + Label string + URL string + type PlatformLinkSelector struct + func NewPlatformLinkSelector(baseURL string) (*PlatformLinkSelector, error) + func NewPlatformLinkSelectorWithCatalog(baseURL string, catalog []PlatformRoute) (*PlatformLinkSelector, error) + func (s *PlatformLinkSelector) Select(queryContext string, limit int) []PlatformLink + type PlatformRoute struct + Path string + Tokens []string type ServerOptions + Classifier Classifier + IntentMode IntentMode + type ToolDigest struct + Description string + Name string v1.3.0 Apr 17, 2026 Changes in this version + func InjectAuthContext(ctx context.Context, req *http.Request) context.Context + func RegisterBuiltinTools(server *mcpserver.MCPServer, specs []ToolSpec) + func RegisterCommandTools(server *mcpserver.MCPServer, specs []ToolSpec, options CommandExecutionOptions) + type Auth struct + APIKey string + Authorization string + func AuthFromContext(ctx context.Context) (Auth, error) + type CommandExecutionOptions struct + PublicAPIURL string + type ExecutionOptions struct + Auth Auth + Body any + Command []string + DisplayCommand []string + PublicAPIURL string + type ExecutionResult struct + ExitCode int + Payload any + Stderr string + StderrTruncated bool + Stdout string + StdoutTruncated bool + func ExecuteCLICommand(ctx context.Context, options ExecutionOptions) (*ExecutionResult, error) + type FlagBinding struct + FlagName string + Kind string + Property string + type Server struct + func NewServer(options ServerOptions) *Server + func (s *Server) Serve(ctx context.Context) error + type ServerOptions struct + Port int + PublicAPIURL string + Tools []ToolSpec + Version string + type ToolSpec struct + AllowExtraArgs bool + BodyProperty string + Command []string + Description string + FlagBindings []FlagBinding + Name string + Path string + PositionalArgs []string + Tool mcpgo.Tool