From 56ddf219734b072a3d7a01d27cf035e1ea735c96 Mon Sep 17 00:00:00 2001 From: Algis Dumbris Date: Sun, 18 Jan 2026 18:16:49 +0200 Subject: [PATCH 1/2] feat: add quick import hints for canonical config paths - Add hint panel in Import tab showing well-known config file locations - Support detection for Claude Desktop, Claude Code, Cursor IDE, Codex CLI, Gemini CLI - Show file existence status with Found/Not found badges - Add Import button for existing config files to quickly load them - Fix HTTP 400 errors to show meaningful error messages from backend - Add GET /api/v1/servers/import/paths endpoint for canonical paths - Add POST /api/v1/servers/import/path endpoint for importing from file path Co-Authored-By: Claude Opus 4.5 --- frontend/src/components/AddServerModal.vue | 193 ++++++++++++++++++++- frontend/src/services/api.ts | 46 ++++- internal/httpapi/import.go | 188 ++++++++++++++++++++ internal/httpapi/server.go | 4 +- oas/docs.go | 4 +- oas/swagger.yaml | 113 ++++++++++++ 6 files changed, 534 insertions(+), 14 deletions(-) diff --git a/frontend/src/components/AddServerModal.vue b/frontend/src/components/AddServerModal.vue index 1ead9f18..099f127a 100644 --- a/frontend/src/components/AddServerModal.vue +++ b/frontend/src/components/AddServerModal.vue @@ -290,6 +290,50 @@ + + +
+
+ + + + Quick Import - Found Configs +
+
+
+
+
+ {{ config.name }} + Found + Not found +
+
+ {{ config.path }} +
+
+ +
+
+
@@ -297,9 +341,23 @@ - + class="flex-1 bg-base-100 font-mono text-sm resize-none border-0 focus:outline-none py-2 px-3 leading-[1.5rem]" + @input="debouncePreview" + @scroll="syncScroll" + > +
@@ -457,6 +517,22 @@ Example (Claude Desktop): {{ importError }}
+ +
+ + + +
+
Cannot import servers with critical errors
+
    +
  • + {{ server.name }}: {{ server.warnings?.filter(w => /missing (command|url) field/i.test(w)).join(', ') }} +
  • +
+
Deselect these servers or fix the configuration before importing.
+
+
+