AI Interfaces
MCP Connection Card
A connection summary for MCP servers with transport health, latency, and available capabilities.
Installation
Copy and paste the code into your project.
Accessibility notes
Connection state, transport, latency, and capabilities are all represented as readable text.
MCP server
Product knowledge
- Transport
- Streamable HTTP
- Round trip
- 84ms
- Search docs
- Read resources
- Run tools
Preview accent
const capabilities = ["Search docs", "Read resources", "Run tools"];
export function McpConnectionCard() {
return (
<section className="w-full max-w-sm rounded-xl border border-white/12 bg-[#0b0f14]/92 p-4 shadow-2xl">
<header className="flex items-start justify-between gap-4">
<div><p className="text-xs font-semibold uppercase tracking-[0.18em] text-[#a78bfa]">MCP server</p><h3 className="mt-1 text-base font-bold text-white">Product knowledge</h3></div>
<span className="inline-flex items-center gap-1.5 rounded-full bg-[#40E0D0]/10 px-2.5 py-1 text-[0.65rem] font-bold text-[#d8fffb]"><span className="h-1.5 w-1.5 rounded-full bg-[#40E0D0]" aria-hidden="true" /> Connected</span>
</header>
<dl className="mt-4 grid grid-cols-2 gap-2 rounded-lg border border-white/9 bg-white/[0.025] p-3">
<div><dt className="text-[0.65rem] text-slate-500">Transport</dt><dd className="mt-1 text-xs font-semibold text-slate-200">Streamable HTTP</dd></div>
<div><dt className="text-[0.65rem] text-slate-500">Round trip</dt><dd className="mt-1 text-xs font-semibold text-slate-200">84ms</dd></div>
</dl>
<ul className="mt-3 flex flex-wrap gap-2" aria-label="Available capabilities">{capabilities.map((capability) => <li key={capability} className="rounded-md border border-white/9 bg-white/[0.04] px-2.5 py-1.5 text-[0.65rem] font-semibold text-slate-300">{capability}</li>)}</ul>
<button type="button" className="mt-4 w-full rounded-full border border-white/12 px-4 py-2.5 text-xs font-bold text-slate-200">Inspect connection</button>
</section>
);
}<McpConnectionCard />Related components
Agent activity
3 tool calls
- 1128ms
search_docs
design system tokens
- 242ms
read_file
components/card.tsx
- …running
write_patch
3 changes proposed
AI Interfaces
Tool Call Inspector
A live execution trace for agent tools, file operations, and long-running tasks.
Tool spend
Research run
$0.29
25 calls
- Web search
- $0.18
- Code runner
- $0.07
- File retrieval
- $0.04
8 calls
3 calls
14 calls
AI Interfaces
Tool Cost Breakdown
A per-tool spending summary showing call volume and relative cost for an agent run.
Execution graph
Research workflow
- 01
Search docs
Complete
- 02
Extract facts
Running
- 03
Draft answer
Waiting
AI Interfaces
Tool Dependency Graph
A compact execution DAG showing tool order, dependency gates, live state, and critical-path timing.