Skip to content

Commit 66c4e60

Browse files
committed
feat: desc
1 parent eeae48a commit 66c4e60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mcp_server/pkg/mcp/mcp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func RegisterTool[T any, R any](s *MCPServer, tool Tool[T, R]) error {
127127
if err != nil {
128128
return err
129129
}
130+
opts = append(opts, mcp.WithDescription(tool.Description()))
130131
t := mcp.NewTool(tool.Name(),
131132
opts...,
132133
)

0 commit comments

Comments
 (0)