diff --git a/frontend/src/app/(dashboard)/agents/_components/mcp/config-dialog.tsx b/frontend/src/app/(dashboard)/agents/_components/mcp/config-dialog.tsx index 1104f3cd..0c865d3c 100644 --- a/frontend/src/app/(dashboard)/agents/_components/mcp/config-dialog.tsx +++ b/frontend/src/app/(dashboard)/agents/_components/mcp/config-dialog.tsx @@ -4,7 +4,7 @@ import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { ScrollArea } from '@/components/ui/scroll-area'; -import { Loader2 } from 'lucide-react'; +import { Loader2, Save, Sparkles } from 'lucide-react'; import { useMCPServerDetails } from '@/hooks/react-query/mcp/use-mcp-servers'; import { cn } from '@/lib/utils'; import { MCPConfiguration } from './types'; @@ -49,9 +49,27 @@ export const ConfigDialog: React.FC = ({ }; return ( - - - Configure {server.displayName || server.name} + + +
+ {server.iconUrl ? ( +
+ {server.displayName +
+
+ ) : ( +
+ +
+ )} +
+ Configure {server.displayName || server.name} +
+
Set up the connection and select which tools to enable for this MCP server. @@ -62,75 +80,95 @@ export const ConfigDialog: React.FC = ({
) : ( - -
- {serverDetails?.connections?.[0]?.configSchema?.properties && ( -
-

Connection Settings

- {Object.entries(serverDetails.connections[0].configSchema.properties).map(([key, schema]: [string, any]) => ( -
- - setConfig({ ...config, [key]: e.target.value })} - /> - {schema.description && ( -

{schema.description}

- )} -
- ))} -
- )} - - {serverDetails?.tools && serverDetails.tools.length > 0 && ( -
-
-

Available Tools

- - {selectedTools.size} of {serverDetails.tools.length} selected - -
-
- {serverDetails.tools.map((tool: any) => ( -
handleToolToggle(tool.name)} - > - {}} - className="mt-1" - /> -
-
{tool.name}
- {tool.description && ( -
- {tool.description} -
+
+
+

+
+ Connection Settings +

+ {serverDetails?.connections?.[0]?.configSchema?.properties ? ( + +
+ {Object.entries(serverDetails.connections[0].configSchema.properties).map(([key, schema]: [string, any]) => ( +
+
+ + setConfig({ ...config, [key]: e.target.value })} + className="bg-background" + />
))}
+ + ) : ( +
+

No configuration required

)}
- + +
+
+

+
+ Available Tools +

+ {serverDetails?.tools && serverDetails.tools.length > 0 && ( + + {selectedTools.size} of {serverDetails.tools.length} selected + + )} +
+ {serverDetails?.tools && serverDetails.tools.length > 0 ? ( + +
+
+ {serverDetails.tools.map((tool: any) => ( +
handleToolToggle(tool.name)} + > + {}} + className="mt-1 accent-primary" + /> +
+
{tool.name}
+ {tool.description && ( +
+ {tool.description} +
+ )} +
+
+ ))} +
+
+
+ ) : ( +
+

No tools available

+
+ )} +
+
)} @@ -140,7 +178,9 @@ export const ConfigDialog: React.FC = ({ diff --git a/frontend/src/components/home/sections/navbar.tsx b/frontend/src/components/home/sections/navbar.tsx index e9ad2c28..538cc187 100644 --- a/frontend/src/components/home/sections/navbar.tsx +++ b/frontend/src/components/home/sections/navbar.tsx @@ -273,7 +273,7 @@ export function Navbar() { href="/auth" className="bg-secondary h-8 flex items-center justify-center text-sm font-normal tracking-wide rounded-full text-primary-foreground dark:text-secondary-foreground w-full px-4 shadow-[inset_0_1px_2px_rgba(255,255,255,0.25),0_3px_3px_-1.5px_rgba(16,24,40,0.06),0_1px_1px_rgba(16,24,40,0.08)] border border-white/[0.12] hover:bg-secondary/80 transition-all ease-out active:scale-95" > - Signup + Get Started )}