Documentation
¶
Index ¶
- Constants
- func ApplyRuntimeAuthOptions(cfg config.Config, st *store.Store, opts *HTTPOptions) error
- func AuthEnabled(cfg config.Config) bool
- func Serve(ctx context.Context, cfg config.Config, in io.Reader, out io.Writer) error
- func ServeHTTP(ctx context.Context, cfg config.Config, opts HTTPOptions) error
- func WriteOpenAuthWarning(out io.Writer, surface string)
- type BearerTokenAuthenticator
- type BearerTokenIdentity
- type BearerTokenValidator
- type HTTPOptions
- type ResearchPack
- type ResearchPackOptions
- type Server
Constants ¶
View Source
const ( DefaultHTTPAddr = "127.0.0.1:8743" DefaultHTTPPath = "/mcp" )
Variables ¶
This section is empty.
Functions ¶
func ApplyRuntimeAuthOptions ¶ added in v0.2.5
func AuthEnabled ¶ added in v0.2.5
func WriteOpenAuthWarning ¶ added in v0.2.5
Types ¶
type BearerTokenAuthenticator ¶ added in v0.2.5
type BearerTokenIdentity ¶ added in v0.2.5
type BearerTokenValidator ¶ added in v0.2.5
type HTTPOptions ¶
type HTTPOptions struct {
Addr string
Path string
AllowedOrigins []string
MaxBodyBytes int64
RequireBearerAuth bool
BearerTokenValidator BearerTokenValidator
BearerTokenAuthenticator BearerTokenAuthenticator
LogOutput io.Writer
}
type ResearchPack ¶
type ResearchPack = brainresearch.Pack
type ResearchPackOptions ¶
type ResearchPackOptions = brainresearch.Options
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) BuildResearchPack ¶
func (s *Server) BuildResearchPack(ctx context.Context, opts ResearchPackOptions) (ResearchPack, error)
func (*Server) HTTPHandler ¶
func (s *Server) HTTPHandler(opts HTTPOptions) http.Handler
Source Files
¶
- access_log.go
- auth.go
- get.go
- get_format.go
- get_related.go
- get_sections.go
- get_types.go
- get_window.go
- http.go
- http_helpers.go
- prompt_args.go
- prompt_definitions.go
- prompt_render.go
- prompts.go
- protocol.go
- research.go
- research_format.go
- resource_definitions.go
- resource_helpers.go
- resource_readers.go
- resource_stats.go
- resources.go
- server.go
- tool_definitions.go
- tool_filter.go
- tool_format_graph.go
- tool_format_search.go
- tool_format_stats.go
- tool_result.go
- tool_schema_helpers.go
- tool_schemas_core.go
- tool_schemas_graph.go
- tool_schemas_okf.go
- tool_schemas_research.go
- tool_schemas_stats.go
- tool_schemas_whats_new.go
- tool_util.go
- tools.go
- tools_get.go
- tools_graph.go
- tools_okf.go
- tools_search.go
- tools_stats.go
- tools_whats_new.go
- transport_stdio.go
Click to show internal directories.
Click to hide internal directories.