mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 02:49:12 -04:00
feat: Add qodeassist mcp server
This commit is contained in:
32
settings/McpSettings.hpp
Normal file
32
settings/McpSettings.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
// Copyright (C) 2024-2026 Petr Mironychev
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <utils/aspects.h>
|
||||
|
||||
#include "ButtonAspect.hpp"
|
||||
|
||||
namespace QodeAssist::Settings {
|
||||
|
||||
class McpSettings : public Utils::AspectContainer
|
||||
{
|
||||
public:
|
||||
McpSettings();
|
||||
|
||||
ButtonAspect resetToDefaults{this};
|
||||
|
||||
Utils::BoolAspect enableMcpServer{this};
|
||||
Utils::IntegerAspect mcpServerPort{this};
|
||||
|
||||
ButtonAspect showConnectionInstructions{this};
|
||||
|
||||
private:
|
||||
void setupConnections();
|
||||
void resetSettingsToDefaults();
|
||||
void showConnectionInstructionsDialog();
|
||||
};
|
||||
|
||||
McpSettings &mcpSettings();
|
||||
|
||||
} // namespace QodeAssist::Settings
|
||||
Reference in New Issue
Block a user