-
+
= ({
onChange={(e) => setStdioName(e.target.value)}
/>
- {t('uniqueNameToIdentify')}
+ {t('mcp.uniqueNameToIdentify')}
-
+
= ({
className="font-mono"
/>
- {t('commandToExecuteServer')}
+ {t('mcp.commandToExecuteServer')}
-
+
= ({
className="font-mono"
/>
- {t('spaceSeparatedArgs')}
+ {t('mcp.spaceSeparatedArgs')}
-
+
setStdioScope(value)}
options={[
- { value: "local", label: t('localProjectOnly') },
- { value: "project", label: t('projectSharedViaMcp') },
- { value: "user", label: t('userAllProjects') },
+ { value: "local", label: t('mcp.localProjectOnly') },
+ { value: "project", label: t('mcp.projectSharedViaMcp') },
+ { value: "user", label: t('mcp.userAllProjects') },
]}
/>
@@ -363,12 +363,12 @@ export const MCPAddServer: React.FC
= ({
{saving ? (
<>
- {t('addingServer')}
+ {t('mcp.addingServer')}
>
) : (
<>
- {t('addStdioServer')}
+ {t('mcp.addStdioServer')}
>
)}
@@ -381,7 +381,7 @@ export const MCPAddServer: React.FC = ({
-
+
= ({
onChange={(e) => setSseName(e.target.value)}
/>
- {t('uniqueNameToIdentify')}
+ {t('mcp.uniqueNameToIdentify')}
-
+
= ({
className="font-mono"
/>
- {t('sseEndpointUrl')}
+ {t('mcp.sseEndpointUrl')}
-
+
setSseScope(value)}
options={[
- { value: "local", label: t('localProjectOnly') },
- { value: "project", label: t('projectSharedViaMcp') },
- { value: "user", label: t('userAllProjects') },
+ { value: "local", label: t('mcp.localProjectOnly') },
+ { value: "project", label: t('mcp.projectSharedViaMcp') },
+ { value: "user", label: t('mcp.userAllProjects') },
]}
/>
@@ -432,12 +432,12 @@ export const MCPAddServer: React.FC
= ({
{saving ? (
<>
- {t('addingServer')}
+ {t('mcp.addingServer')}
>
) : (
<>
- {t('addSseServer')}
+ {t('mcp.addSseServer')}
>
)}
@@ -451,7 +451,7 @@ export const MCPAddServer: React.FC = ({
- {t('exampleCommands')}
+ {t('mcp.exampleCommands')}
diff --git a/src/components/MCPImportExport.tsx b/src/components/MCPImportExport.tsx
index b63ee1c..c60aeb9 100644
--- a/src/components/MCPImportExport.tsx
+++ b/src/components/MCPImportExport.tsx
@@ -5,6 +5,7 @@ import { Card } from "@/components/ui/card";
import { Label } from "@/components/ui/label";
import { SelectComponent } from "@/components/ui/select";
import { api } from "@/lib/api";
+import { useTranslation } from "@/hooks/useTranslation";
interface MCPImportExportProps {
/**
@@ -24,6 +25,7 @@ export const MCPImportExport: React.FC
= ({
onImportCompleted,
onError,
}) => {
+ const { t } = useTranslation();
const [importingDesktop, setImportingDesktop] = useState(false);
const [importingJson, setImportingJson] = useState(false);
const [importScope, setImportScope] = useState("local");
@@ -163,9 +165,9 @@ export const MCPImportExport: React.FC = ({
return (
-
Import & Export
+
{t('mcp.importExport')}
- Import MCP servers from other sources or export your configuration
+ {t('mcp.importExportDescription')}
@@ -175,19 +177,19 @@ export const MCPImportExport: React.FC
= ({
-
+
setImportScope(value)}
options={[
- { value: "local", label: "Local (this project only)" },
- { value: "project", label: "Project (shared via .mcp.json)" },
- { value: "user", label: "User (all projects)" },
+ { value: "local", label: t('mcp.localProjectOnly') },
+ { value: "project", label: t('mcp.projectShared') },
+ { value: "user", label: t('mcp.userAllProjects') },
]}
/>
- Choose where to save imported servers from JSON files
+ {t('mcp.chooseImportLocation')}
@@ -200,9 +202,9 @@ export const MCPImportExport: React.FC = ({
-
Import from Claude Desktop
+
{t('mcp.importFromClaudeDesktop')}
- Automatically imports all MCP servers from Claude Desktop. Installs to user scope (available across all projects).
+ {t('mcp.importFromClaudeDesktopDescription')}
@@ -214,12 +216,12 @@ export const MCPImportExport: React.FC
= ({
{importingDesktop ? (
<>
- Importing...
+ {t('mcp.importing')}
>
) : (
<>
- Import from Claude Desktop
+ {t('mcp.importFromClaudeDesktop')}
>
)}
@@ -234,9 +236,9 @@ export const MCPImportExport: React.FC = ({
-
Import from JSON
+
{t('mcp.importFromJSON')}
- Import server configuration from a JSON file
+ {t('mcp.importFromJSONDescription')}
@@ -258,12 +260,12 @@ export const MCPImportExport: React.FC = ({
{importingJson ? (
<>
- Importing...
+ {t('mcp.importing')}
>
) : (
<>
- Choose JSON File
+ {t('mcp.chooseJSONFile')}
>
)}
@@ -279,9 +281,9 @@ export const MCPImportExport: React.FC = ({
-
Export Configuration
+
{t('mcp.exportConfiguration')}
- Export your MCP server configuration
+ {t('mcp.exportConfigurationDescription')}
@@ -292,7 +294,7 @@ export const MCPImportExport: React.FC