mirror of
https://github.com/chaitin/SafeLine.git
synced 2026-01-31 13:53:33 +08:00
feat: desc
This commit is contained in:
@@ -127,6 +127,7 @@ func RegisterTool[T any, R any](s *MCPServer, tool Tool[T, R]) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
opts = append(opts, mcp.WithDescription(tool.Description()))
|
||||
t := mcp.NewTool(tool.Name(),
|
||||
opts...,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user