mcp-context-forge
mcp-context-forge copied to clipboard
[Bug]: SettingsError raised when parsing environment variable observability_exclude_paths in Pydantic settings
🐞 Bug Summary
When starting the application with Gunicorn, initialization fails due to a pydantic_settings.exceptions.SettingsError triggered while parsing the environment variable observability_exclude_paths. The error originates from Pydantic’s environment settings source during the creation of the Settings instance in mcpgateway/config.py. This indicates that the value provided for observability_exclude_paths is not in the expected format or type (for example, a string instead of a list or JSON array). As a result, the configuration cannot be loaded and the application fails to start.
Pls note the above summary is generated by AI using the logs. I have provided logs in Logs section.
🧩 Affected Component
Select the area of the project impacted:
- [YES ]
mcpgateway- API - [ ]
mcpgateway- UI (admin panel) - [ ]
mcpgateway.wrapper- stdio wrapper - [ ] Federation or Transports
- [ ] CLI, Makefiles, or shell scripts
- [ ] Container setup (Docker/Podman/Compose)
- [ ] Other (explain below)
🔁 Steps to Reproduce
-
helm upgrade --install mcp-stack . --namespace mcpgw-rbac --create-namespace=false -f values.yaml --wait --timeout 5m --debug
-
PLUGINS_ENABLED: "true"
-
pgadmin: enabled: false
-
mcpFastTimeServer: enabled: false
-
probes: readiness: type: exec command: - sh - -c - pg_isready -U "$POSTGRES_USER"
-
liveness: type: exec command: - sh - -c - pg_isready -U "$POSTGRES_USER"
🤔 Expected Behavior
📓 Logs / Error Output
Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.
Traceback (most recent call last):
File "/app/.venv/lib64/python3.12/site-packages/gunicorn/app/base.py", line 110, in get_config_from_filename
spec.loader.exec_module(mod)
File "
🧠 Environment Info
You can retrieve most of this from the /version endpoint.
| Key | Value |
|---|---|
| version | v0.9.0 |
| Runtime | e.g. Python 3.11, Gunicorn |
| Platform / OS | e.g. Ubuntu 22.04 |
| Container | helm, k8 pods |
🧩 Additional Context (optional)
Add any configuration details, flags, or related issues.