Chainlit
Chainlit is a Python framework for building production-ready conversational AI interfaces. It specializes in step visualization — every LLM call, tool invocation, and retrieval step renders as an expandable node in the chat timeline. MCP tool calls appear as clearly labeled steps, making it easy for users to understand what the agent did and why.
Step-by-Step Visibility into MCP Tool Calls
Chainlit's step visualization turns opaque agent behavior into a transparent timeline. Every MCP tool call shows as an expandable step: you see the tool name, input parameters, response data, and execution time. Users can click to inspect details or collapse steps they understand.
For production applications, this transparency builds trust. When a customer-facing agent queries a database via MCP, the step appears in the conversation — users know their question was answered with real data, not hallucination.
Key features:
- Step visualization — LLM calls, tool invocations, and retrieval steps render inline
- Streaming — real-time token-by-token delivery with smooth UI updates
- Multi-modal — images, files, audio, and interactive elements in conversations
- Authentication — built-in user auth with session management
- Human feedback — thumbs up/down, star ratings, and free-form feedback on messages
- Data persistence — conversation history with Literal AI or custom backends
- Copilot mode — embed Chainlit as a chat widget in any web page
Python Setup
1. Create a Token
In Vinkius Cloud, go to your server → Connection Tokens → Create. Copy the URL.
2. Register MCP in Your App
import chainlit as cl
@cl.on_chat_start
async def start():
# Register MCP server tools
# Tools appear as callable functions in the agent
pass3. Launch
chainlit run app.pyMCP tool calls render as expandable steps in the chat interface.
FAQ
How do MCP tool calls display in Chainlit? As expandable steps in the conversation timeline. Each shows the tool name, parameters, response, and duration — click to inspect or collapse.
Can I embed Chainlit on my website? Yes. Copilot mode lets you embed the chat interface as a widget on any page.
Does Chainlit support authentication? Yes. Built-in auth with session management, user profiles, and conversation persistence.
Is Chainlit free? Open-source. Literal AI offers optional cloud-based analytics and data persistence.