{% extends "base.html" %} {% block title %}Server Management - MCP Manager{% endblock %} {% block page_title %}Servers & MCPO Control{% endblock %} {% block page_subtitle %}Overview of MCP server definitions and mcpo process control{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
MCPO Process Management
{# Initial Loading State #}

Loading status...

{# --- Control Buttons --- #} {# --- Spinner --- #}
    {# Section 1: Current Settings #}
  • {# Start with settings open #}
    tuneCurrent MCPO Settings edit
    Port:
    {{ mcpo_settings.port }}
    Public URL:
    {{ mcpo_settings.public_base_url if mcpo_settings.public_base_url else 'Not set (uses http://127.0.0.1:port)' }}
    Use API Key:
    {{ 'Yes' if mcpo_settings.use_api_key else 'No' }}
    {% if mcpo_settings.use_api_key %}
    API Key:
    {{ mcpo_settings.api_key if mcpo_settings.api_key else 'Not set' }}
    {% endif %}
    Config Path:
    {{ mcpo_settings.config_file_path }}
    Logs Path:
    {{ mcpo_settings.log_file_path if mcpo_settings.log_file_path else 'Not set (logs to stdout/stderr)' }}
    Health Check:
    {{ 'Enabled' if mcpo_settings.health_check_enabled else 'Disabled' }} {% if mcpo_settings.health_check_enabled %} (Interval: {{mcpo_settings.health_check_interval_seconds}}s, Attempts: {{mcpo_settings.health_check_failure_attempts}}, Auto-Restart: {{'On' if mcpo_settings.auto_restart_on_failure else 'Off'}}) {% endif %}
  • {# Section 2: View Generated Config #}
  • visibilityView Generated Config

    Displays the current content of the configuration file {{ mcpo_settings.config_file_path }}. It is generated when "Apply and Restart" is clicked.

    {# Indicate loading #} {# Pre block with code inside, target for HTMX swap #}
    Loading configuration content...
    {# Loading indicator specific to this section #}
    {# Copy Button - JS handled below #} {# Refresh Button - uses HTMX #} {# Download Links - standard HTML5 download #} file_downloadDownload downloadingDownload (Win)
Server Definitions
{# --- UPDATED LINK --- Points to the new add page #} add_circle_outlineAdd Server(s)
{# Server rows loaded here, potentially via HTMX or server-side rendering #} {% for server in server_definitions %} {% include "_server_row.html" %} {# Include the partial for each server #} {% else %} {# Message shown if no servers exist #} {% endfor %}
On Name Type Details Actions
No server definitions found. {# --- UPDATED LINK --- Points to the new add page #} Add some?
{% endblock %}