Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
NewHandler returns a new Handler instance
func (*Handler) Get ¶
func (h *Handler) Get(id string) (*cvemap.Vulnerability, error)
Get fetches a single vulnerability document by its ID.
func (*Handler) MCPHandler ¶
func (h *Handler) MCPHandler(client *cvemap.Client) func(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error)
MCPHandler returns the MCP handler for this tool.
func (*Handler) MCPToolSpec ¶
MCPToolSpec returns the MCP tool spec for registration.
Click to show internal directories.
Click to hide internal directories.