MCPcopy
hub / github.com/github/github-mcp-server / Icons

Method Icons

pkg/inventory/server_tool.go:42–44  ·  view source on GitHub ↗

Icons returns MCP Icon objects for this toolset, or nil if no icon is set. Icons are provided in both 16x16 and 24x24 sizes.

()

Source from the content-addressed store, hash-verified

40// Icons returns MCP Icon objects for this toolset, or nil if no icon is set.
41// Icons are provided in both 16x16 and 24x24 sizes.
42func (tm ToolsetMetadata) Icons() []mcp.Icon {
43 return octicons.Icons(tm.Icon)
44}
45
46// ServerTool represents an MCP tool with metadata and a handler generator function.
47// The tool definition is static, while the handler is generated on-demand

Callers 3

RegisterFuncMethod · 0.80
RegisterPromptsMethod · 0.80

Calls 1

IconsFunction · 0.92

Tested by

no test coverage detected