Skip to main content
Glama

Formula One MCP Server

ChatThread.tsx953 B
import React, { useEffect, useRef } from 'react'; import type { Message } from '../types'; import MessageBubble from './MessageBubble'; import TypingIndicator from './TypingIndicator'; import './ChatThread.css'; interface ChatThreadProps { messages: Message[]; isProcessing: boolean; } const ChatThread: React.FC<ChatThreadProps> = ({ messages, isProcessing }) => { const messagesEndRef = useRef<HTMLDivElement>(null); const scrollToBottom = () => { messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' }); }; useEffect(() => { scrollToBottom(); }, [messages, isProcessing]); return ( <div className="chat-thread"> <div className="messages-container"> {messages.map((message) => ( <MessageBubble key={message.id} message={message} /> ))} {isProcessing && <TypingIndicator />} <div ref={messagesEndRef} /> </div> </div> ); }; export default ChatThread;

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/notsedano/f1-mcp-server'

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