Skip to main content
Glama
ShowAnnotationIcon.ts285 B
const ShowAnnotationIcon = (annotations: Record<string, string>) => { // 如果 annotations 存在且不是空对象,则返回主要颜色图标,否则返回次要颜色图标 return annotations && Object.keys(annotations).length > 0; }; export default ShowAnnotationIcon;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/weibaohui/k8m'

If you have feedback or need assistance with the MCP directory API, please join our Discord server