θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions frontend/src/pages/Admin/Agents/MCPServers/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState, useEffect } from "react";
import { titleCase } from "text-case";
import { Link } from "react-router-dom";
import { BookOpenText, ArrowClockwise } from "@phosphor-icons/react";
import MCPLogo from "@/media/agents/mcp-logo.svg";
import MCPServers from "@/models/mcpServers";
Expand Down Expand Up @@ -44,17 +43,18 @@ export function MCPServerHeader({ setMcpServers, children }) {
<>
<div className="text-theme-text-primary flex items-center justify-between gap-x-2 mt-4">
<div className="flex items-center gap-x-2">
<img src={MCPLogo} className="w-6 h-6 light:invert" />
<img src={MCPLogo} className="w-6 h-6 light:invert" alt="MCP Logo" />
<p className="text-lg font-medium">MCP Servers</p>
</div>
<div className="flex items-center gap-x-3">
<Link
to="#goes-to-docs"
<a
href="https://docs.anythingllm.com/mcp-compatibility/overview"
target="_blank"
rel="noopener noreferrer"
className="border-none text-theme-text-secondary hover:text-cta-button"
>
<BookOpenText size={16} />
</Link>
</a>
<button
type="button"
onClick={refreshMCPServers}
Expand Down Expand Up @@ -87,8 +87,9 @@ export function MCPServersList({
<div className="text-theme-text-secondary text-center text-xs flex flex-col gap-y-2">
<p>Loading MCP Servers from configuration file...</p>
<a
href="https://docs.anythingllm.com/mcp-servers/getting-started"
href="https://docs.anythingllm.com/mcp-compatibility/overview"
target="_blank"
rel="noopener noreferrer"
className="text-theme-text-secondary underline hover:text-cta-button"
>
Learn more about MCP Servers.
Expand All @@ -102,8 +103,9 @@ export function MCPServersList({
<div className="text-theme-text-secondary text-center text-xs flex flex-col gap-y-2">
<p>No MCP servers found</p>
<a
href="https://docs.anythingllm.com/mcp-servers/getting-started"
href="https://docs.anythingllm.com/mcp-compatibility/overview"
target="_blank"
rel="noopener noreferrer"
className="text-theme-text-secondary underline hover:text-cta-button"
>
Learn more about MCP Servers.
Expand Down