feat/mcp server change mcp name and fix mcp server can not set bearer token bug

This commit is contained in:
riverLethe committed 2025-07-25 22:03:37 +08:00
1 parent 224a209fea
commit fdfe2c63bc
8 files changed
+54 -18

No files matched your search

@@ -21,7 +21,7 @@ interface DetailProps {
name: string;
}[];
url?: string;
mcpName?: string;
// navigation items
navItems?: NavigationItem[];
}
@@ -30,6 +30,7 @@ export const Detail: React.FC<DetailProps> = ({
product,
breadcrumbs,
url,
mcpName,
navItems = [],
}) => {
const { t } = useTranslation();
@@ -220,7 +221,7 @@ export const Detail: React.FC<DetailProps> = ({
<code className="text-gray-300 whitespace-pre-wrap">
{`{
"mcpServers": {
"xpack-mcp-market": {
"${mcpName || "xpack-mcp-market"}": {
"type": "sse",
"autoApprove":"all",
"url": "${url}?apikey=`}