{% extends "base.html" %} {# Import the macro for the single server form #} {% from "_server_form_macro.html" import render_server_form %} {% block title %}Add Servers - MCP Manager{% endblock %} {% block page_title %}Add Server Definitions{% endblock %} {% block page_subtitle %}Add a single server via form or multiple servers from JSON{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
{% if single_server_error %}
error_outlineError adding server: {{ single_server_error }}
{% endif %}

info_outlineFirst select "Server type" to see the corresponding fields (Command/Arguments or URL).

{# Render the form using the macro #} {{ render_server_form( action_url=single_add_action_url, submit_button_text='Add This Server', server=single_server_form_data, error=None, is_add_form=True, request=request, cancel_url=url_for('ui_root') ) }}
{# Spinner displayed during analysis #}
data_object Paste JSON content to analyze and preview before adding.
{# Row for Analyze button, Spinner, and Enable Switch #}
{# Analyze Button and Spinner #}
{# Initially hidden #}
{# Enable Switch #}
{# End of bulk analysis form #}
{# Initial placeholder text #}

Analysis results will appear here after you click "Analyze JSON".

{# The content from _bulk_add_preview.html will be loaded here #}
{# End of .row containing tabs and content #} {% endblock %}