Skip to main content
Glama
LibraryList.tsx1.34 kB
import type { LibraryInfo } from "../../tools/ListLibrariesTool"; import Alert from "./Alert"; import LibraryItem from "./LibraryItem"; /** * Props for the LibraryList component. */ interface LibraryListProps { libraries: LibraryInfo[]; } /** * Renders a list of LibraryItem components. * @param props - Component props including the array of libraries. */ const LibraryList = ({ libraries }: LibraryListProps) => { if (libraries.length === 0) { return ( <Alert type="info" title="Welcome!" message={ <> To get started, click{" "} <span class="font-semibold">Add New Documentation</span> above and enter the URL of a documentation site to index. For more information, check the{" "} <a href="https://grounded.tools" target="_blank" rel="noopener noreferrer" class="font-medium underline hover:no-underline" > official website </a> . </> } /> ); } return ( <div id="library-list" class="space-y-2 animate-[fadeSlideIn_0.2s_ease-out]" > {libraries.map((library) => ( <LibraryItem library={library} /> ))} </div> ); }; export default LibraryList;

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/arabold/docs-mcp-server'

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