FastMCP Todo Server

by DanEdens

Integrations

  • Stores todo items in MongoDB for persistence and retrieval by the Swarmonomicon todo worker

  • Receives todo requests via MQTT protocol, allowing clients to add todos through direct MQTT messages

FastMCP Todo-сервер

Todo-сервер на базе FastMCP для проекта Swarmonomicon . Этот сервер получает todo-запросы через FastMCP и сохраняет их в MongoDB для обработки todo-воркером Swarmonomicon.

Функции

  • Сервер FastMCP для приема todo-запросов
  • Интеграция MongoDB для хранения задач
  • Совместимо с Swarmonomicon todo worker
  • Реализация на основе Python

Установка

  1. Клонируйте репозиторий:
    git clone https://github.com/DanEdens/Omnispindle.git cd Omnispindle
  2. Установить uv (если еще не установлен):
    curl -LsSf https://astral.sh/uv/install.sh | sh
  3. Создайте и активируйте виртуальную среду с помощью uv:
    uv venv source .venv/bin/activate # On Unix/macOS # or .venv\Scripts\activate # On Windows
  4. Установите зависимости с помощью uv:
    uv pip install -r requirements.txt
  5. Для разработки установите дополнительные зависимости:
    uv pip install -r requirements-dev.txt
  6. Создайте файл .env с вашей конфигурацией:
    MONGODB_URI=mongodb://localhost:27017 MONGODB_DB=swarmonomicon MONGODB_COLLECTION=todos

Использование

Запуск сервера

  1. Запустите сервер FastMCP:
    python -m src.Omnispindle

Добавление задач

Добавлять задачи с помощью FastMCP можно несколькими способами:

  1. Использование клиента FastMCP Python:
    from fastmcp import FastMCPClient client = FastMCPClient() response = await client.call_tool("add_todo", { "description": "Example todo", "priority": "high", # optional, defaults to "medium" "target_agent": "user" # optional, defaults to "user" })
  2. Использование MQTT напрямую:
    mosquitto_pub -t "mcp/todo/new" -m '{ "description": "Example todo", "priority": "high", "target_agent": "user" }'

Разработка

  1. Проведите тесты:
    pytest tests/
  2. Запустите тесты с покрытием:
    pytest --cov=src tests/
  3. Запустите определенный тестовый файл:
    pytest tests/test_todo_handler.py -v

Интеграция с Swarmonomicon

Этот сервер является частью более крупного проекта Swarmonomicon , который предоставляет:

  • Управление задачами и распределение
  • Обработка задач на основе агентов
  • Обновления в реальном времени через MQTT
  • Интеграция с различными моделями ИИ

Более подробную информацию о проекте Swarmonomicon и его возможностях можно найти в основной документации проекта .

Лицензия

Лицензия Массачусетского технологического института

Внося вклад

  1. Форк репозитория
  2. Создать ветку функций
  3. Внесите изменения
  4. Добавить тесты для новых функций
  5. Отправить запрос на извлечение

Дополнительную информацию об участии в проекте Swarmonomicon см. в основных правилах участия в проекте .

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Сервер управления задачами, который получает запросы через FastMCP и сохраняет их в MongoDB для обработки обработчиком задач Swarmonomicon.

  1. Функции
    1. Установка
      1. Использование
        1. Запуск сервера
        2. Добавление задач
        3. Разработка
      2. Интеграция с Swarmonomicon
        1. Лицензия
          1. Внося вклад

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              A simple Model Context Protocol (MCP) server that integrates with Notion's API to manage my personal todo list through Claude.
              Last updated -
              117
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              Enables advanced todo list management and content organization using Notion's API, supporting features like creating databases, dynamic filtering, and collaborative task tracking.
              Last updated -
              11
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that integrates with Notion's API to manage personal todo lists, allowing users to view, add, and update tasks directly from Claude.
              Last updated -
              3
              Python
              MIT License
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol (MCP) server that provides tools for managing todo items, including creation, updating, completion, deletion, searching, and summarizing tasks.
              Last updated -
              10
              4
              TypeScript
              MIT License

            View all related MCP servers

            ID: sddp91oszb