Documentation
¶
Index ¶
- func BearerAuth(token string, exemptPaths ...string) func(http.Handler) http.Handler
- func CORS(allowedOrigins []string) func(http.Handler) http.Handler
- func TCPHandlerFromConfig(base http.Handler, authToken string, allowedOrigins []string, ...) http.Handler
- type AddInput
- type AddOutput
- type ListHeadsInput
- type ListHeadsOutput
- type QueryInput
- type QueryOutput
- type QueryResult
- type ReinforceInput
- type ReinforceOutput
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BearerAuth ¶ added in v0.0.3
BearerAuth creates middleware requiring a static bearer token on all requests. When token is empty or path is in exemptPaths, check is skipped (e.g. for /api/status).
Types ¶
type AddInput ¶
type AddInput struct {
Content string `json:"content" jsonschema:"the knowledge to store"`
Category string `json:"category" jsonschema:"memory category: avoidance, security, syntax, architecture, or domain"`
Tags []string `` /* 159-byte string literal not displayed */
Scope string `json:"scope,omitempty" jsonschema:"global, team, or project (default: project)"`
Source string `json:"source,omitempty" jsonschema:"audit label, e.g. agent:2025-04-12 or manual"`
}
type ListHeadsInput ¶
type ListHeadsInput struct{}
type ListHeadsOutput ¶
type QueryInput ¶
type QueryInput struct {
Query string `json:"query" jsonschema:"describe the current task or question to retrieve relevant lessons"`
Category string `` /* 129-byte string literal not displayed */
TopK int `json:"top_k,omitempty" jsonschema:"maximum number of entries to return (default: 5)"`
Scopes []string `json:"scopes,omitempty" jsonschema:"limit to specific scopes: global, team, or project — empty returns all scopes"`
}
type QueryOutput ¶
type QueryOutput struct {
Entries []QueryResult `json:"entries"`
}
type QueryResult ¶
type ReinforceInput ¶
type ReinforceOutput ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) McpServer ¶
McpServer returns the underlying MCP server, e.g. for embedding in teh daemon.
func (*Server) ServeStdio ¶
ServeStdio runs the MCP server over stdin/stdout.
Click to show internal directories.
Click to hide internal directories.