|
|
Before you begin, ensure you have the following installed:
- Node.js 18 or higher
- npm or yarn package manager
- Backend API running (default:
http://localhost:8000) - Google OAuth credentials for authentication
-
Clone the repository
git clone <repository-url> cd mcp-client
-
Install dependencies
npm install
-
Configure environment variables
Create a
.env.localfile in the root directory:# NextAuth Configuration NEXTAUTH_SECRET=your_nextauth_secret_here NEXTAUTH_URL=http://localhost:3000 # Google OAuth GOOGLE_CLIENT_ID=your_google_client_id GOOGLE_CLIENT_SECRET=your_google_client_secret # Backend API DJANGO_API_URL=http://localhost:8000 BACKEND_URL=http://localhost:8000
-
Start the development server
npm run dev
-
Open your browser
Navigate to http://localhost:3000
# Build for production
npm run build
# Start production server
npm start- Navigate to the MCP servers page
- Click "Add Server" button
- Fill in server details:
- Server name
- Transport type (SSE/Streamable HTTP)
- Server URL
- Optional: OAuth2 configuration
- Click "Save" to connect
- Select connected MCP servers from the sidebar
- Choose your preferred LLM provider
- Enter your API key
- Start chatting - the assistant can use tools from connected MCP servers