Skip to content

Commit 8793e8a

Browse files
author
Bogdan-Marius-Catanus
committed
merge: sync with main branch
2 parents ff2c838 + 7d9ebe3 commit 8793e8a

4 files changed

Lines changed: 11 additions & 19 deletions

File tree

Containerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ EXPOSE 4444
117117
# Set the runtime user
118118
USER 1001
119119

120-
# Ensure virtual environment binaries are in PATH
121-
ENV PATH="/app/.venv/bin:$PATH"
120+
# Ensure virtual environment binaries are in PATH and project modules resolve
121+
# even when containers run an alternate Python entrypoint.
122+
ENV PATH="/app/.venv/bin:$PATH" \
123+
PYTHONPATH="/app"
122124

123125
# HTTP server selection via HTTP_SERVER environment variable:
124126
# - gunicorn : Python-based with Uvicorn workers (default)

Containerfile.lite

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ COPY --from=builder --chown=1001:0 /app /app
318318
# - Disable pip version check to reduce startup time
319319
# ----------------------------------------------------------------------------
320320
ENV PATH="/app/.venv/bin:${PATH}" \
321+
PYTHONPATH="/app" \
321322
CONTEXTFORGE_ENABLE_RUST_BUILD=${ENABLE_RUST} \
322323
CONTEXTFORGE_ENABLE_RUST_MCP_RMCP_BUILD=${ENABLE_RUST_MCP_RMCP} \
323324
PYTHONDONTWRITEBYTECODE=1 \

Containerfile.scratch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ COPY --from=builder ${ROOTFS_PATH}/ /
321321
# - Disable pip version check to reduce startup time
322322
# ----------------------------------------------------------------------------
323323
ENV PATH="/app/.venv/bin:${PATH}" \
324+
PYTHONPATH="/app" \
324325
PYTHONDONTWRITEBYTECODE=1 \
325326
PYTHONUNBUFFERED=1 \
326327
PYTHONHASHSEED=random \

mcpgateway/templates/plugins_partial.html

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,6 @@ <h3 class="text-lg font-semibold text-gray-900 dark:text-gray-100">
319319
>
320320
Permissive
321321
</span>
322-
{% else %}
323-
<span
324-
class="px-2 py-1 bg-gray-100 text-gray-800 text-xs font-medium rounded dark:bg-gray-700 dark:text-gray-300"
325-
>
326-
Disabled
327-
</span>
328322
{% endif %}
329323

330324
<!-- Implementation Badge -->
@@ -348,17 +342,13 @@ <h3 class="text-lg font-semibold text-gray-900 dark:text-gray-100">
348342
<!-- Tags -->
349343
{% if plugin.tags %}
350344
<div class="flex flex-wrap gap-1 mb-4">
351-
{% for tag in plugin.tags[:3] %}
345+
{% for tag in plugin.tags %}
352346
<span
353347
class="px-2 py-1 bg-gray-100 text-gray-700 text-xs rounded dark:bg-gray-700 dark:text-gray-300"
354348
>
355349
{% if tag is mapping %}{{ tag.id }}{% else %}{{ tag }}{% endif %}
356350
</span>
357-
{% endfor %} {% if plugin.tags|length > 3 %}
358-
<span class="px-2 py-1 text-gray-500 text-xs">
359-
+{{ plugin.tags|length - 3 }} more
360-
</span>
361-
{% endif %}
351+
{% endfor %}
362352
</div>
363353
{% endif %}
364354

@@ -367,12 +357,10 @@ <h3 class="text-lg font-semibold text-gray-900 dark:text-gray-100">
367357
<div class="text-xs text-gray-500 dark:text-gray-400 mb-4">
368358
<div class="font-medium mb-1">Hooks:</div>
369359
<div class="flex flex-wrap gap-1">
370-
{% for hook in plugin.hooks[:2] %}
360+
{% for hook in plugin.hooks %}
371361
<span class="text-xs">{{ hook.replace('_', ' ') }}</span>
372-
{% if not loop.last %}<span>,</span>{% endif %} {% endfor %} {% if
373-
plugin.hooks|length > 2 %}
374-
<span>... ({{ plugin.hooks|length }} total)</span>
375-
{% endif %}
362+
{% if not loop.last %}<span>,</span>{% endif %}
363+
{% endfor %}
376364
</div>
377365
</div>
378366
{% endif %}

0 commit comments

Comments
 (0)