{% extends "base.html" %} {% import "_page.html" as page_ui %} {% block title %}Spark - Settings{% endblock %} {% block head %}{% if page == 'personal' %}{% endif %}{% endblock %} {% block content %} {% if is_locked %}
Settings Locked

Enter the password to access settings.

{% endif %} {% set admin_groups = admin_menu(request) if page == 'instance' else [] %}
{% if admin_groups %}
{% include "_admin_nav.html" %}
{% endif %} {% if page == 'instance' %} {% call page_ui.header(admin_page.title, admin_page.description) %} {% endcall %} {% elif page == 'preferences' %} {% include "_account_tabs.html" %} {{ page_ui.header("My preferences", "Your own defaults. They do not change anyone else's.") }} {% else %} {% set personal_help %}Configure connections, tools, and application behaviour. Changes are saved to config.yaml; secrets go to the keychain and are never shown.{% endset %} {% call page_ui.header("Settings", personal_help) %} Export my data {% endcall %} {% endif %}
{% if page != 'instance' %}
{% endif %}
{% if page == 'personal' %}
Connections

The model services Spark uses, kept in config.yaml. Each offers the models you enable on it. Credentials go to the keychain and are never shown again. Connection changes save at once; the Save button below is for the other settings.

{% endif %} {% if tool_categories %}
Embedded Tools

Built-in tools available to the AI during conversations. Enable or disable each category and configure access modes.

{% for cat in tool_categories %}
{{ cat.title }}

{{ cat.description }}

{% if cat.mode_options %}
{% for mode in cat.mode_options %} {% endfor %}
{% if cat.mode and cat.mode_descriptions.get(cat.mode) %}
{{ cat.mode_descriptions[cat.mode] }}
{% endif %}
{% endif %} {% for field in cat.extra_fields %} {% endfor %}
Available tools:
{% for tool in cat.tools %} {{ tool }} {% endfor %}
{% if cat.id == 'email' %}
{% endif %}
{% endfor %}
{% endif %} {% if show_mcp %}
MCP Servers

{% if page == 'instance' %} Connect external tool servers via the Model Context Protocol, over HTTP or SSE. A server is offered only to the roles it is granted to. stdio servers run a command on the host and are not available on a server. {% else %} Connect external tool servers via the Model Context Protocol. Supports stdio, HTTP, and SSE transports. {% endif %}

No MCP servers configured.
{% endif %} {% for section in sections %}
{{ section.title }}

{{ section.description }}

{% for group in section.groups %} {% if section.groups|length > 1 %}
{{ group.title }}
{% if group.help_url %} Setup Guide {% endif %}
{% endif %} {% for field in group.fields %}
{% if field.type == 'toggle' %}
{% elif field.type == 'select' %} {% elif field.type == 'model_select' %} {% elif field.type == 'secret' %}
{% if field.has_value %}Set{% else %}Not set{% endif %}
{% elif field.type == 'number' %} {% elif field.type == 'textarea' %} {% if field.help %}
{{ field.help }}
{% endif %} {% else %} {% endif %} {% if field.help is defined and field.help and field.type != 'textarea' %}
{{ field.help }}
{% endif %}
{% endfor %} {% endfor %} {% if section.id == 'mail' %}
{% endif %}
{% endfor %}
{% if admin_groups %}
{% endif %}
{% endblock %} {% block scripts %} {% if admin_page and admin_page.path == '/admin/settings' %} {% endif %} {% if page == 'personal' %}{% endif %} {% endblock %}