id

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 4 Imported by: 0

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

func NewHandler(client *cvemap.Client) *Handler

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

func (h *Handler) MCPToolSpec() mcp.Tool

MCPToolSpec returns the MCP tool spec for registration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL