Feat: List MCP servers #3221 (#8730)

### What problem does this PR solve?

Feat: List MCP servers #3221
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-07-09 09:32:38 +08:00
committed by GitHub
parent 00c954755e
commit f7af0fc71e
13 changed files with 669 additions and 44 deletions

View File

@ -1,8 +1,5 @@
import {
ProfileSettingBaseKey,
ProfileSettingRouteKey,
} from '@/constants/setting';
import { useLogout } from '@/hooks/login-hooks';
import { Routes } from '@/routes';
import { useCallback } from 'react';
import { useNavigate } from 'umi';
@ -11,11 +8,11 @@ export const useHandleMenuClick = () => {
const { logout } = useLogout();
const handleMenuClick = useCallback(
(key: ProfileSettingRouteKey) => () => {
if (key === ProfileSettingRouteKey.Logout) {
(key: Routes) => () => {
if (key === Routes.Logout) {
logout();
} else {
navigate(`/${ProfileSettingBaseKey}/${key}`);
navigate(`${Routes.ProfileSetting}${key}`);
}
},
[logout, navigate],