Skip to content

Commit 1a482e8

Browse files
[v5] feat(web): Add MCP settings page (#1231)
1 parent 3ebd754 commit 1a482e8

16 files changed

Lines changed: 565 additions & 7 deletions

File tree

packages/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
"react-dom": "19.2.4",
176176
"react-hook-form": "^7.53.0",
177177
"react-hotkeys-hook": "^4.5.1",
178-
"react-icons": "^5.3.0",
178+
"react-icons": "^5.6.0",
179179
"react-markdown": "^10.1.0",
180180
"react-resizable-panels": "^2.1.1",
181181
"recharts": "^2.15.3",
Lines changed: 1 addition & 0 deletions
Loading

packages/web/public/codex.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 12 additions & 0 deletions
Loading
Lines changed: 12 additions & 0 deletions
Loading

packages/web/public/vscode.svg

Lines changed: 41 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

packages/web/src/app/(app)/@sidebar/components/settingsSidebar/nav.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ import {
2323
UserIcon,
2424
UsersIcon,
2525
} from "lucide-react";
26+
import { VscMcp } from "react-icons/vsc";
2627
import Link from "next/link";
2728
import { usePathname } from "next/navigation";
2829
import { UpgradeBadge } from "../upgradeBadge";
30+
import { IconType } from "react-icons/lib";
2931

3032
const iconMap = {
3133
"link": LinkIcon,
@@ -37,7 +39,8 @@ const iconMap = {
3739
"scroll-text": ScrollTextIcon,
3840
"settings": Settings2Icon,
3941
"user": UserIcon,
40-
} satisfies Record<string, LucideIcon>;
42+
"mcp": VscMcp,
43+
} satisfies Record<string, LucideIcon | IconType>;
4144

4245
export type NavIconName = keyof typeof iconMap;
4346

packages/web/src/app/(app)/settings/layout.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ export const getSidebarNavGroups = async () =>
8282
icon: "link" as const,
8383
}
8484
] : []),
85+
{
86+
title: "MCP Server",
87+
href: `/settings/mcp`,
88+
icon: 'mcp' as const,
89+
}
8590
],
8691
},
8792
];

0 commit comments

Comments
 (0)