{"id":25773061,"url":"https://github.com/danedens/fastmcp-balena-cli","last_synced_at":"2025-02-27T04:31:39.956Z","repository":{"id":279281701,"uuid":"937832307","full_name":"DanEdens/fastmcp-balena-cli","owner":"DanEdens","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-24T18:34:10.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T19:34:10.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanEdens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-24T01:15:15.000Z","updated_at":"2025-02-24T18:34:16.000Z","dependencies_parsed_at":"2025-02-24T19:44:11.250Z","dependency_job_id":null,"html_url":"https://github.com/DanEdens/fastmcp-balena-cli","commit_stats":null,"previous_names":["danedens/fastmcp-balena-cli"],"tags_count":0,"template":false,"template_full_name":"DanEdens/dans-fastmcp-server-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanEdens%2Ffastmcp-balena-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanEdens%2Ffastmcp-balena-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanEdens%2Ffastmcp-balena-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanEdens%2Ffastmcp-balena-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanEdens","download_url":"https://codeload.github.com/DanEdens/fastmcp-balena-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240978620,"owners_count":19887900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-27T04:30:22.786Z","updated_at":"2025-02-27T04:31:39.949Z","avatar_url":"https://github.com/DanEdens.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastMCP Todo Server\n\nA FastMCP-based Todo Server for the [Swarmonomicon](https://github.com/DanEdens/madness_interactive/tree/main/projects/common/Swarmonomicon) project. This server receives todo requests via FastMCP and stores them in MongoDB for processing by the Swarmonomicon todo worker.\n\n## Features\n\n- FastMCP server for receiving todo requests\n- MongoDB integration for todo storage\n- Compatible with Swarmonomicon todo worker\n- Python-based implementation\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/DanEdens/fastmcp-todo-server.git\n   cd fastmcp-todo-server\n   ```\n\n2. Install uv (if not already installed):\n   ```bash\n   curl -LsSf https://astral.sh/uv/install.sh | sh\n   ```\n\n3. Create and activate a virtual environment with uv:\n   ```bash\n   uv venv\n   source .venv/bin/activate  # On Unix/macOS\n   # or\n   .venv\\Scripts\\activate  # On Windows\n   ```\n\n4. Install dependencies with uv:\n   ```bash\n   uv pip install -r requirements.txt\n   ```\n\n5. For development, install additional dependencies:\n   ```bash\n   uv pip install -r requirements-dev.txt\n   ```\n\n6. Create a `.env` file with your configuration:\n   ```bash\n   MONGODB_URI=mongodb://localhost:27017\n   MONGODB_DB=swarmonomicon\n   MONGODB_COLLECTION=todos\n   ```\n\n## Usage\n\n### Starting the Server\n\n1. Start the FastMCP server:\n   ```bash\n   python -m src.fastmcp_todo_server\n   ```\n\n### Adding Todos\n\nYou can add todos using FastMCP in several ways:\n\n1. Using FastMCP Python client:\n   ```python\n   from fastmcp import FastMCPClient\n   \n   client = FastMCPClient()\n   response = await client.call_tool(\"add_todo\", {\n       \"description\": \"Example todo\",\n       \"priority\": \"high\",  # optional, defaults to \"medium\"\n       \"target_agent\": \"user\"  # optional, defaults to \"user\"\n   })\n   ```\n\n2. Using MQTT directly:\n   ```bash\n   mosquitto_pub -t \"mcp/todo/new\" -m '{\n       \"description\": \"Example todo\",\n       \"priority\": \"high\",\n       \"target_agent\": \"user\"\n   }'\n   ```\n\n### Development\n\n1. Run tests:\n   ```bash\n   pytest tests/\n   ```\n\n2. Run tests with coverage:\n   ```bash\n   pytest --cov=src tests/\n   ```\n\n3. Run specific test file:\n   ```bash\n   pytest tests/test_todo_handler.py -v\n   ```\n\n## Integration with Swarmonomicon\n\nThis server is part of the larger [Swarmonomicon](https://github.com/DanEdens/madness_interactive/tree/main/projects/common/Swarmonomicon) project, which provides:\n\n- Task management and distribution\n- Agent-based task processing\n- Real-time updates via MQTT\n- Integration with various AI models\n\nFor more information about the Swarmonomicon project and its features, check out the [main project documentation](https://github.com/DanEdens/madness_interactive/tree/main/projects/common/Swarmonomicon/README.md).\n\n## License\n\nMIT License\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Add tests for new functionality\n5. Submit a pull request\n\nFor more information about contributing to the Swarmonomicon project, see the [main project's contributing guidelines](https://github.com/DanEdens/madness_interactive/tree/main/projects/common/Swarmonomicon/CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanedens%2Ffastmcp-balena-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanedens%2Ffastmcp-balena-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanedens%2Ffastmcp-balena-cli/lists"}