Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

feat(ui): migrate mcp-servers, search-tools, tag-management, vector-stores, and memory to path routes (#30261)

ryan-crabbe-berri2d576b569559
diff --git a/ui/litellm-dashboard/e2e_tests/fixtures/migratedPages.ts b/ui/litellm-dashboard/e2e_tests/fixtures/migratedPages.ts
index f2a8fc45f12..a56ce79d8f1 100644
--- a/ui/litellm-dashboard/e2e_tests/fixtures/migratedPages.ts
+++ b/ui/litellm-dashboard/e2e_tests/fixtures/migratedPages.ts
@@ -10,9 +10,8 @@
*
* Keep this in lockstep with MIGRATED_PAGES in src/utils/migratedPages.ts.
* Pending (add as each PR lands): the leaf-pages batch
- * (caching, cost-tracking, guardrails, logs, mcp-servers, memory,
- * policies, prompts, search-tools, skills, tag-management, tool-policies,
- * transform-request, ui-theme, vector-stores).
+ * (caching, cost-tracking, guardrails, logs, policies, prompts, skills,
+ * tool-policies, transform-request, ui-theme).
*/
export const MIGRATED_E2E_PAGES: Record<string, string> = {
api_ref: "api-reference",
@@ -22,6 +21,11 @@ export const MIGRATED_E2E_PAGES: Record<string, string> = {
budgets: "budgets",
workflows: "workflows",
"guardrails-monitor": "guardrails-monitor",
+ "mcp-servers": "mcp-servers",
+ "search-tools": "search-tools",
+ "tag-management": "tag-management",
+ "vector-stores": "vector-stores",
+ memory: "memory",
};
export const MIGRATED_E2E_SEGMENTS: string[] = [...new Set(Object.values(MIGRATED_E2E_PAGES))];
diff --git a/ui/litellm-dashboard/eslint-suppressions.json b/ui/litellm-dashboard/eslint-suppressions.json
index 9f7c2e5c389..b838736ba26 100644
--- a/ui/litellm-dashboard/eslint-suppressions.json
+++ b/ui/litellm-dashboard/eslint-suppressions.json
@@ -444,7 +444,7 @@
"count": 1
}
},
- "src/components/MemoryView/MemoryView.tsx": {
+ "src/app/(dashboard)/memory/components/MemoryView.tsx": {
"react-hooks/set-state-in-effect": {
"count": 1
}
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/page.tsx
new file mode 100644
index 00000000000..dfc7ca15896
--- /dev/null
+++ b/ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/page.tsx
@@ -0,0 +1,9 @@
+"use client";
+
+import { MCPServers } from "@/components/mcp_tools";
+import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
+
+export default function McpServers() {
+ const { accessToken, userRole, userId } = useAuthorized();
+ return <MCPServers accessToken={accessToken} userRole={userRole} userID={userId} />;
+}
diff --git a/ui/litellm-dashboard/src/components/MemoryView/MemoryEditModal.tsx b/ui/litellm-dashboard/src/app/(dashboard)/memory/components/MemoryEditModal.tsx
similarity index 98%
rename from ui/litellm-dashboard/src/components/MemoryView/MemoryEditModal.tsx
rename to ui/litellm-dashboard/src/app/(dashboard)/memory/components/MemoryEditModal.tsx
index 9e8c18a7f9d..594b35ddade 100644
--- a/ui/litellm-dashboard/src/components/MemoryView/MemoryEditModal.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/memory/components/MemoryEditModal.tsx
@@ -2,7 +2,7 @@
import React, { useEffect, useState } from "react";
import { Form, Input, Modal, Typography } from "antd";
-import type { MemoryRow } from "../networking";
+import type { MemoryRow } from "@/components/networking";
const { Text } = Typography;
diff --git a/ui/litellm-dashboard/src/components/MemoryView/MemoryView.tsx b/ui/litellm-dashboard/src/app/(dashboard)/memory/components/MemoryView.tsx
similarity index 99%
rename from ui/litellm-dashboard/src/components/MemoryView/MemoryView.tsx
rename to ui/litellm-dashboard/src/app/(dashboard)/memory/components/MemoryView.tsx
index b859072d359..402de29e0c5 100644
--- a/ui/litellm-dashboard/src/components/MemoryView/MemoryView.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/memory/components/MemoryView.tsx
@@ -12,9 +12,9 @@ import {
ReloadOutlined,
SearchOutlined,
} from "@ant-design/icons";
-import { MemoryRow, createMemory, deleteMemory, fetchMemoryList, updateMemory } from "../networking";
+import { MemoryRow, createMemory, deleteMemory, fetchMemoryList, updateMemory } from "@/components/networking";
import { MemoryEditModal } from "./MemoryEditModal";
-import DeleteResourceModal from "../common_components/DeleteResourceModal";
+import DeleteResourceModal from "@/components/common_components/DeleteResourceModal";
const { Text, Paragraph, Title } = Typography;
diff --git a/ui/litellm-dashboard/src/components/MemoryView/index.tsx b/ui/litellm-dashboard/src/app/(dashboard)/memory/components/index.tsx
similarity index 100%
rename from ui/litellm-dashboard/src/components/MemoryView/index.tsx
rename to ui/litellm-dashboard/src/app/(dashboard)/memory/components/index.tsx
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/memory/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/memory/page.tsx
new file mode 100644
index 00000000000..6eb0fb57143
--- /dev/null
+++ b/ui/litellm-dashboard/src/app/(dashboard)/memory/page.tsx
@@ -0,0 +1,9 @@
+"use client";
+
+import { MemoryView } from "./components/MemoryView";
+import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
+
+export default function Memory() {
+ const { accessToken, userRole, userId } = useAuthorized();
+ return <MemoryView accessToken={accessToken} userID={userId} userRole={userRole} />;
+}
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/page.tsx
index 0bf79f492f1..9758786331f 100644
--- a/ui/litellm-dashboard/src/app/(dashboard)/page.tsx
+++ b/ui/litellm-dashboard/src/app/(dashboard)/page.tsx
@@ -14,7 +14,6 @@ import GeneralSettings from "@/components/general_settings";
import GuardrailsPanel from "@/components/guardrails";
import PoliciesPanel from "@/components/policies";
import { Team } from "@/components/key_team_helpers/key_list";
-import { MCPServers } from "@/components/mcp_tools";
import ModelHubTable from "@/components/AIHub/ModelHubTable";
import { Organization, proxyBaseUrl, getInProductNudgesCall } from "@/components/networking";
import NewUsagePage from "@/components/UsagePage/components/UsagePageView";
@@ -24,17 +23,13 @@ import Organizations, { fetchOrganizations } from "@/components/organizations";
import PassThroughSettings from "@/components/pass_through_settings";
import PromptsPanel from "@/components/prompts";
import PublicModelHub from "@/components/public_model_hub";
-import { SearchTools } from "@/components/SearchTools";
import Settings from "@/components/settings";
import { SurveyPrompt, SurveyModal, ClaudeCodePrompt, ClaudeCodeModal } from "@/components/survey";
-import TagManagement from "@/components/tag_management";
import TransformRequestPanel from "@/components/transform_request";
import UIThemeSettings from "@/components/ui_theme_settings";
import Usage from "@/components/usage";
import UserDashboard from "@/components/user_dashboard";
-import VectorStoreManagement from "@/components/vector_store_management";
import ToolPoliciesView from "@/components/ToolPoliciesView";
-import { MemoryView } from "@/components/MemoryView";
import SpendLogsTable from "@/components/view_logs";
import ViewUserDashboard from "@/components/view_users";
import { useAuth } from "@/contexts/AuthContext";
@@ -433,20 +428,10 @@ function CreateKeyPageContent() {
accessToken={accessToken}
premiumUser={premiumUser}
/>
- ) : page == "mcp-servers" ? (
- <MCPServers accessToken={accessToken} userRole={userRole} userID={userID} />
- ) : page == "search-tools" ? (
- <SearchTools accessToken={accessToken} userRole={userRole} userID={userID} />
- ) : page == "tag-management" ? (
- <TagManagement accessToken={accessToken} userRole={userRole} userID={userID} />
) : page == "skills" || page == "claude-code-plugins" ? (
<ClaudeCodePluginsPanel accessToken={accessToken} userRole={userRole} />
- ) : page == "vector-stores" ? (
- <VectorStoreManagement accessToken={accessToken} userRole={userRole} userID={userID} />
) : page == "tool-policies" ? (
<ToolPoliciesView accessToken={accessToken} userRole={userRole} />
- ) : page == "memory" ? (
- <MemoryView accessToken={accessToken} userID={userID} userRole={userRole} />
) : page == "new_usage" ? (
<NewUsagePage teams={(teams as Team[]) ?? []} organizations={(organizations as Organization[]) ?? []} />
) : (
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/search-tools/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/search-tools/page.tsx
new file mode 100644
index 00000000000..6616ee0efe0
--- /dev/null
+++ b/ui/litellm-dashboard/src/app/(dashboard)/search-tools/page.tsx
@@ -0,0 +1,9 @@
+"use client";
+
+import { SearchTools } from "@/components/SearchTools";
+import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
+
+export default function SearchToolsPage() {
+ const { accessToken, userRole, userId } = useAuthorized();
+ return <SearchTools accessToken={accessToken} userRole={userRole} userID={userId} />;
+}
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/tag-management/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/tag-management/page.tsx
new file mode 100644
index 00000000000..8a6ffd67388
--- /dev/null
+++ b/ui/litellm-dashboard/src/app/(dashboard)/tag-management/page.tsx
@@ -0,0 +1,9 @@
+"use client";
+
+import TagManagement from "@/components/tag_management";
+import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
+
+export default function TagManagementPage() {
+ const { accessToken, userRole, userId } = useAuthorized();
+ return <TagManagement accessToken={accessToken} userRole={userRole} userID={userId} />;
+}
diff --git a/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/page.tsx b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/page.tsx
new file mode 100644
index 00000000000..ba280c1c313
--- /dev/null
+++ b/ui/litellm-dashboard/src/app/(dashboard)/vector-stores/page.tsx
@@ -0,0 +1,9 @@
+"use client";
+
+import VectorStoreManagement from "@/components/vector_store_management";
+import useAuthorized from "@/app/(dashboard)/hooks/useAuthorized";
+
+export default function VectorStores() {
+ const { accessToken, userRole, userId } = useAuthorized();
+ return <VectorStoreManagement accessToken={accessToken} userRole={userRole} userID={userId} />;
+}
diff --git a/ui/litellm-dashboard/src/utils/migratedPages.test.ts b/ui/litellm-dashboard/src/utils/migratedPages.test.ts
index e837cd33b3d..656b91a6c32 100644
--- a/ui/litellm-dashboard/src/utils/migratedPages.test.ts
+++ b/ui/litellm-dashboard/src/utils/migratedPages.test.ts
@@ -64,6 +64,17 @@ describe("migratedHref / legacyPageHref", () => {
expect(MIGRATED_PAGES.workflows).toBe("workflows");
expect(MIGRATED_PAGES["guardrails-monitor"]).toBe("guardrails-monitor");
});
+
+ it("maps the mcp-servers, search-tools, tag-management, vector-stores, and memory ids to their routes", async () => {
+ vi.doMock("@/components/networking", () => ({ serverRootPath: "/" }));
+ const { MIGRATED_PAGES } = await import("./migratedPages");
+
+ expect(MIGRATED_PAGES["mcp-servers"]).toBe("mcp-servers");
+ expect(MIGRATED_PAGES["search-tools"]).toBe("search-tools");
+ expect(MIGRATED_PAGES["tag-management"]).toBe("tag-management");
+ expect(MIGRATED_PAGES["vector-stores"]).toBe("vector-stores");
+ expect(MIGRATED_PAGES.memory).toBe("memory");
+ });
});
describe("dev server (NODE_ENV=development)", () => {
diff --git a/ui/litellm-dashboard/src/utils/migratedPages.ts b/ui/litellm-dashboard/src/utils/migratedPages.ts
index 1ab854f582d..8f8a21d97c6 100644
--- a/ui/litellm-dashboard/src/utils/migratedPages.ts
+++ b/ui/litellm-dashboard/src/utils/migratedPages.ts
@@ -18,6 +18,11 @@ export const MIGRATED_PAGES: Record<string, string> = {
budgets: "budgets",
workflows: "workflows",
"guardrails-monitor": "guardrails-monitor",
+ "mcp-servers": "mcp-servers",
+ "search-tools": "search-tools",
+ "tag-management": "tag-management",
+ "vector-stores": "vector-stores",
+ memory: "memory",
};
function uiBase(): string {