Skip to main content
Glama

GitMCP

messages.tsx857 B
import type { Message as TMessage } from "ai"; import { Message } from "./message"; import { useScrollToBottom } from "~/chat/lib/hooks/use-scroll-to-bottom"; export const Messages = ({ messages, isLoading, status, }: { messages: TMessage[]; isLoading: boolean; status: "error" | "submitted" | "streaming" | "ready"; }) => { const [containerRef, endRef] = useScrollToBottom(); return ( <div className="h-full overflow-y-auto no-scrollbar" ref={containerRef}> <div className="max-w-lg sm:max-w-3xl mx-auto py-4"> {messages.map((m, i) => ( <Message key={i} isLatestMessage={i === messages.length - 1} isLoading={isLoading} message={m} status={status} /> ))} <div className="h-1" ref={endRef} /> </div> </div> ); };

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/idosal/git-mcp'

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