A modern, dark-mode React application for chatting with the MCP Client API.
- Modern UI: Built with React, Tailwind CSS 4, and Lucide icons.
- Entra ID Authentication: Secure login via MSAL.js.
- Tool Invocations: Visual feedback and detailed logs for MCP tool executions.
- Dark Mode: High-contrast, easy-on-the-eyes design by default.
- Responsive: Works great on various screen sizes.
- Node.js (v20 or later recommended)
- MCP Client API running on
https://localhost:5001
-
Install Dependencies:
cd frontend npm install -
Configuration: Before running, update
src/config/msalConfig.tswith your Entra ID values:- Replace
<FRONTEND_CLIENT_ID>with your MCP Client API app registration's Application (client) ID. - Replace
<AZURE_TENANT_ID>with your Microsoft Entra tenant ID.
- Replace
-
Run Development Server:
npm run dev
The app will be available at http://localhost:5173.
The application uses Microsoft Entra ID (formerly Azure AD) for authentication.
- You must sign in to send messages.
- The application will request a token with the
access_as_userscope for the MCP Client API. - If your session expires, you will be prompted to sign in again.
src/components: UI components (Chat, Auth, Layout)src/services: API and Auth servicessrc/hooks: React hooks for shared logicsrc/types: TypeScript definitionssrc/config: MSAL and app configuration