[Bug]: `mcp` and `cryptography` are imported but not declared: the `fw` MCP server never starts and Watchtower `/settings/` answers 500
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 68/100
Línea de trabajo
Empieza por revisar web/requirements.txt y los pasos de instalación del servidor MCP para ver qué entorno debería declarar cada dependencia. Después, revisa las importaciones en agents/mcp/framework_mcp_server.py y web/secrets_store.py, además del uso de /settings/ en web/blueprints/settings.py. Se considerará terminado cuando un entorno limpio creado siguiendo los pasos de instalación documentados pueda iniciar el servidor MCP y cargar /settings/ sin estos errores de paquetes faltantes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
Two Python packages are imported by shipped code but appear in no requirements file and in no install step:
mcp:agents/mcp/framework_mcp_server.py:37-39(from mcp.server.lowlevel import Server, ...). Without it the server exits at once withModuleNotFoundError: No module named 'mcp', and Claude Code reports thefwMCP server as "connection closed" at every session start.cryptography:web/secrets_store.py:19(from cryptography.fernet import Fernet, InvalidToken), imported byweb/blueprints/settings.py(lines 324, 410, 447). Without it/settings/answers 500 (ModuleNotFoundError: No module named 'cryptography'in the Watchtower log). It is also the one remaining failure in thefw doctorWatchtower smoke test after the #97 fix ("1/54").
web/requirements.txt lists flask, flask-socketio, pyyaml, ... but neither package, and bin/watchtower.sh checks only for flask_socketio (line 219) before starting. An environment built from web/requirements.txt therefore has both failures.
Steps to Reproduce
- Create a virtualenv and
pip install -r web/requirements.txtonly. python3 .agentic-framework/agents/mcp/framework_mcp_server.py:ModuleNotFoundError: No module named 'mcp'.- Start Watchtower with that Python and open
/settings/: HTTP 500,No module named 'cryptography'in the log. grep -rniE '^(mcp|cryptography)' web/requirements.txt: nothing.
Expected Behavior
Both packages are declared (in web/requirements.txt, or in a requirements file the installer uses for the MCP server), or the code degrades cleanly: the MCP server prints an install hint, and /settings/ shows "secrets store unavailable: install cryptography" instead of a 500. Optionally, fw doctor reports a missing import as it does for flask_socketio.
Actual Behavior
The fw MCP server is "connection closed" in every session, and /settings/ answers 500, with nothing in the install or in fw doctor pointing at the missing packages.
fw doctor output
AI Agent
Claude Code
Operating System
Linux
Additional Context
Seen on 1.8.14 and 1.8.15 in a real project (Linux, Claude Code, a dedicated Python 3.12 for Watchtower), and in a throwaway container on 1.8.15. web/requirements.txt is unchanged on bleeding-edge (0c3b8b6c3). Filed as one issue because both are the same gap (an import with no declared dependency); happy to split it.
- Lenguaje dominante
- Shell
- Estrellas
- 16
- Forks
- 6
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DimitriGeelen/agentic-engineering-framework
-
area:context bug severity:medium status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
DimitriGeelen/agentic-engineering-framework#113 · 2 comentarios ·
-
area:fabric bug severity:medium status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
DimitriGeelen/agentic-engineering-framework#109 · 2 comentarios ·
-
area:fabric bug severity:medium status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DimitriGeelen/agentic-engineering-framework#108 · 2 comentarios ·
-
area:tasks bug severity:high status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
DimitriGeelen/agentic-engineering-framework#107 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Todos los issues de DimitriGeelen/agentic-engineering-framework
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Frogging-Family/linux-tkg#1265 ·
-
False AMD GPU DetectionAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
community-scripts/core#217 ·
Los mantenedores suelen responder en 1 día
-
known-red S3: friction & debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MedakaLang/medaka#4969 ·
Los mantenedores suelen responder en 1 día
-
enhancement needs:sonnet ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area/tooling contribfest No AI type/cleanup type/feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día