<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>McpServerSettingsWidget</class>
 <widget class="QWidget" name="McpServerSettingsWidget">
  <layout class="QGridLayout" name="gridLayout">
   <property name="leftMargin">
    <number>0</number>
   </property>
   <property name="topMargin">
    <number>0</number>
   </property>
   <property name="rightMargin">
    <number>0</number>
   </property>
   <property name="bottomMargin">
    <number>0</number>
   </property>
   <item row="0" column="0">
    <widget class="QScrollArea" name="mcpServerScrollArea">
     <property name="widgetResizable">
      <bool>true</bool>
     </property>
     <widget class="QWidget" name="mcpServerScrollAreaContents">
      <property name="geometry">
       <rect>
        <x>0</x>
        <y>0</y>
        <width>580</width>
        <height>400</height>
       </rect>
      </property>
      <layout class="QVBoxLayout" name="verticalLayout_mcpServer">
       <item>
        <widget class="QGroupBox" name="mcpServerGroupBox">
         <property name="title">
          <string>MCP server</string>
         </property>
         <layout class="QGridLayout" name="gridLayout_mcpServer">
          <item row="0" column="0" colspan="6">
           <widget class="QCheckBox" name="mcpServerEnabledCheckBox">
            <property name="text">
             <string>Enable MCP server for AI agent access to notes</string>
            </property>
           </widget>
          </item>
          <item row="1" column="0">
           <widget class="QLabel" name="mcpServerPortLabel">
            <property name="text">
             <string>Server port:</string>
            </property>
           </widget>
          </item>
          <item row="1" column="1">
           <widget class="QSpinBox" name="mcpServerPortSpinBox">
            <property name="minimum">
             <number>1</number>
            </property>
            <property name="maximum">
             <number>65535</number>
            </property>
            <property name="value">
             <number>22226</number>
            </property>
           </widget>
          </item>
          <item row="1" column="2">
           <widget class="QToolButton" name="mcpServerPortResetButton">
            <property name="toolTip">
             <string>Reset the MCP server port</string>
            </property>
            <property name="text">
             <string notr="true">…</string>
            </property>
            <property name="icon">
             <iconset theme="edit-clear" resource="../../breeze-qownnotes.qrc">
              <normaloff>:/icons/breeze-qownnotes/16x16/edit-clear.svg</normaloff>:/icons/breeze-qownnotes/16x16/edit-clear.svg</iconset>
            </property>
           </widget>
          </item>
          <item row="2" column="0">
           <widget class="QLabel" name="mcpServerTokenLabel">
            <property name="text">
             <string>Security token:</string>
            </property>
           </widget>
          </item>
          <item row="2" column="1" colspan="2">
           <widget class="QLineEdit" name="mcpServerTokenLineEdit">
            <property name="toolTip">
             <string>If this is empty when saved, a new security token will be generated automatically.</string>
            </property>
            <property name="maxLength">
             <number>32</number>
            </property>
            <property name="readOnly">
             <bool>false</bool>
            </property>
            <property name="echoMode">
             <enum>QLineEdit::EchoMode::Password</enum>
            </property>
           </widget>
          </item>
          <item row="2" column="3">
           <widget class="QToolButton" name="mcpServerShowTokenButton">
            <property name="toolTip">
             <string>Show security token</string>
            </property>
            <property name="text">
             <string notr="true">…</string>
            </property>
            <property name="icon">
             <iconset theme="document-decrypt" resource="../../breeze-qownnotes.qrc">
              <normaloff>:/icons/breeze-qownnotes/16x16/document-decrypt.svg</normaloff>:/icons/breeze-qownnotes/16x16/document-decrypt.svg</iconset>
            </property>
           </widget>
          </item>
          <item row="2" column="4">
           <widget class="QToolButton" name="mcpServerCopyTokenButton">
            <property name="toolTip">
             <string>Copy security token to clipboard</string>
            </property>
            <property name="text">
             <string notr="true">…</string>
            </property>
            <property name="icon">
             <iconset theme="edit-copy" resource="../../breeze-qownnotes.qrc">
              <normaloff>:/icons/breeze-qownnotes/16x16/edit-copy.svg</normaloff>:/icons/breeze-qownnotes/16x16/edit-copy.svg</iconset>
            </property>
           </widget>
          </item>
          <item row="2" column="5">
           <widget class="QToolButton" name="mcpServerGenerateTokenButton">
            <property name="toolTip">
             <string>Generate new security token</string>
            </property>
            <property name="text">
             <string notr="true">…</string>
            </property>
            <property name="icon">
             <iconset theme="view-refresh" resource="../../breeze-qownnotes.qrc">
              <normaloff>:/icons/breeze-qownnotes/16x16/view-refresh.svg</normaloff>:/icons/breeze-qownnotes/16x16/view-refresh.svg</iconset>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item>
        <spacer name="mcpServerVerticalSpacer">
         <property name="orientation">
          <enum>Qt::Vertical</enum>
         </property>
         <property name="sizeHint" stdset="0">
          <size>
           <width>20</width>
           <height>40</height>
          </size>
         </property>
        </spacer>
       </item>
      </layout>
     </widget>
    </widget>
   </item>
  </layout>
 </widget>
 <resources>
  <include location="../../breeze-qownnotes.qrc"/>
 </resources>
</ui>
