export default function Home() {
return (
<main
style={{
maxWidth: "800px",
margin: "0 auto",
padding: "2rem",
fontFamily: "system-ui, sans-serif",
}}
>
<h1>MBTA Worcester Line MCP Server</h1>
<p>
This is an MCP (Model Context Protocol) server that provides real-time
train schedule information for the MBTA Worcester Line.
</p>
<h2>MCP Endpoint</h2>
<p>
<code
style={{
background: "#f0f0f0",
padding: "0.25rem 0.5rem",
borderRadius: "4px",
}}
>
POST /api/mcp
</code>
</p>
<h2>Available Tools</h2>
<ul>
<li>
<strong>get_worcester_departures</strong> - Get upcoming train
departures from any Worcester Line station
</li>
</ul>
<h2>Gemini CLI Configuration</h2>
<p>
Add to your <code>~/.gemini/settings.json</code>:
</p>
<pre
style={{
background: "#f0f0f0",
padding: "1rem",
borderRadius: "4px",
overflow: "auto",
}}
>
{`{
"mcpServers": {
"mbta": {
"httpUrl": "${process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "http://localhost:3000"}/api",
"headers": {
"Authorization": "Bearer YOUR_MCP_API_KEY"
},
"timeout": 30000
}
}
}`}
</pre>
<h2>Worcester Line Stops</h2>
<p style={{ color: "#666", fontSize: "0.9rem" }}>
South Station, Back Bay, Lansdowne, Boston Landing, Newtonville, West
Newton, Auburndale, Wellesley Farms, Wellesley Hills, Wellesley Square,
Natick Center, West Natick, Framingham, Ashland, Southborough,
Westborough, Grafton, Worcester
</p>
</main>
);
}