This project consists of three main components:
- Frontend: Built with Svelte.
- Backend: Flask API.
- MCP Server: FastMCP server.
Follow the steps below to set up and run the project.
- Node.js installed on your system.
- Navigate to the Svelte project directory:
cd svelte-chat-ui - Install dependencies:
npm install
- Start the development server:
npm run dev
- Open the application in your browser at the URL provided by the Svelte server (typically
http://localhost:5173).
- Python installed on your system.
- Create a virtual environment (works for both MCP server and Flask API):
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install dependencies:
pip install -r requirements.txt
- Start both the Flask API and MCP server:
python run_servers.py
- The Flask API will be available at
http://127.0.0.1:5000.
- Python installed on your system.
- Run the MCP server:
python mcp_server.py
- Ensure the server is running and accessible.
- Ensure both the Flask API and MCP server are running.
- Use the Svelte frontend to interact with the backend and MCP server.
Let me know if you encounter any issues during setup!
Query vector Db: { "type": "tool", "name": "query_vector_db", "arguments": { "prompt": "Where is the head office of Phoenix Homes located?", "db_path": "combined_vector_db" }}
Build website vector db: { "type": "tool", "name": "build_website_vector_db", "arguments": { "urls": [ "https://www.phoenixhomes.ca/contact-us/", "https://www.phoenixhomes.ca/about-us/", "https://www.phoenixhomes.ca/faq/" ] } }