{% extends "base.html" %} {# Import the macro #} {% 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 content %}
info_outlineFirst select "Server type" to see the corresponding fields (Command/Arguments or URL).
{{ 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') ) }}Format 1: Object with "mcpServers" key
{
"mcpServers": {
"my-tool-name": {
"command": "npx",
"args": ["some-package", "--port", "8081"],
"env": {"API_KEY": "secret"}
},
"another-tool": {
"type": "sse",
"url": "http://localhost:8001/sse"
}
}
}
Format 2: Direct mapping "name": {config}
{
"tool-alpha": {
"command": "uvx",
"args": ["alpha-server"]
},
"tool-beta": {
"type": "streamable_http",
"url": "http://service-beta/stream"
}
}
Format 3: List of objects with "name" field
[
{
"name": "gamma-processor",
"command": "/usr/local/bin/gamma",
"args": ["--config", "/etc/gamma.conf"]
},
{
"name": "delta-feed",
"type": "sse",
"url": "https://delta.example.com/feed"
}
]
Note:
disabled
, alwaysAllow
, etc.) will be ignored.cmd /c npx ...
or cmd /c uvx ...
will be automatically converted to npx ...
and uvx ...
when added.