Nazia3135devloper/phase3-mcp
0
MCP Server for AI-Powered Todo Application
This is the MCP (Multi-Agent Collaboration Protocol) server that powers the AI functionality for the todo application. It processes natural language commands and interacts with the backend API to manage tasks.
Dependencies
- Python 3.11+
- OpenAI API key
- Access to the backend database
Environment Variables
Create a .env file with the following variables:
OPENAI_API_KEY=your_openai_api_key_here
DATABASE_URL=your_database_connection_string
SECRET_KEY=your_secret_keyInstallation
- Clone the repository
- Navigate to the mcp-server directory
- Install dependencies:
pip install -r requirements.txt- Set up environment variables
- Run the server:
python main.pyDeployment Options
Deploy to Hugging Face Spaces
This project is configured for deployment on Hugging Face Spaces. The Space uses Docker to run the MCP server.
Deploy with Docker
- Build the Docker image:
docker build -t mcp-server .- Run the container:
docker run -e OPENAI_API_KEY=your_key -e DATABASE_URL=your_db_url mcp-serverArchitecture
The MCP server connects to the same database as the main backend API and provides AI-powered task management functionality through natural language processing.
Available Tools
create_task: Create a new todo taskget_tasks: Retrieve todo tasks based on filtersupdate_task: Update an existing todo taskdelete_task: Delete a todo tasktoggle_task_completion: Toggle the completion status of a todo task
