A simple web application that demonstrates a React frontend communicating with a Python backend server. The application allows users to reverse strings using a Model Context Protocol (MCP) server.
- Python 3.10 or higher
- Node.js and npm
- pip (Python package manager)
- Install the required Python package:
pip install "mcp[cli]"- Install Node.js dependencies:
npm installRun the Python MCP server:
python mcp_server.pyThe server will start and be available at http://localhost:8080
In a new terminal window, run:
npm run devThe frontend will be available at http://localhost:5173
- Open your web browser
- Navigate to
http://localhost:5173 - The application should now be running with the frontend communicating with the backend server
- Backend Server:
http://localhost:8080 - Frontend Server:
http://localhost:5173
- String reversal functionality
- Real-time communication between frontend and backend
- CORS-enabled API endpoints
- Modern React frontend with Vite
- Python MCP server implementation