Skip to content

Commit 98267fe

Browse files
committed
add instructionsFunc to toolset metadata
1 parent 0c16e33 commit 98267fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/inventory/server_tool.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ type ToolsetMetadata struct {
3131
// Use the base name without size suffix, e.g., "repo" not "repo-16".
3232
// See https://primer.style/foundations/icons for available icons.
3333
Icon string
34+
// InstructionsFunc optionally returns instructions for this toolset.
35+
// It receives the inventory so it can check what other toolsets are enabled.
36+
InstructionsFunc func(inv *Inventory) string
3437
}
3538

3639
// Icons returns MCP Icon objects for this toolset, or nil if no icon is set.

0 commit comments

Comments
 (0)