Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
224a209fea |
No files matched your search
@@ -222,7 +222,7 @@ export const Detail: React.FC<DetailProps> = ({
|
||||
"mcpServers": {
|
||||
"xpack-mcp-market": {
|
||||
"type": "sse",
|
||||
"autoApprove"":"all",
|
||||
"autoApprove":"all",
|
||||
"url": "${url}?apikey=`}
|
||||
<span className="text-success">{`{Your-${platformConfig?.name}-API-Key}`}</span>
|
||||
{`"
|
||||
|
||||
@@ -156,7 +156,7 @@ export const Detail: React.FC<DetailProps> = ({
|
||||
"mcpServers": {
|
||||
"xpack-mcp-market": {
|
||||
"type": "sse",
|
||||
"autoApprove"":"all",
|
||||
"autoApprove":"all",
|
||||
"url": "${url}?apikey=`}
|
||||
<span className="text-success">{`{Your-${platformConfig?.name}-API-Key}`}</span>
|
||||
{`"
|
||||
|
||||
@@ -150,7 +150,7 @@ export const Detail: React.FC<DetailProps> = ({
|
||||
"mcpServers": {
|
||||
"xpack-mcp-market": {
|
||||
"type": "sse",
|
||||
"autoApprove"":"all",
|
||||
"autoApprove":"all",
|
||||
"url": "${url}?apikey=`}
|
||||
<span className="text-success">{`{Your-${platformConfig?.name}-API-Key}`}</span>
|
||||
{`"
|
||||
|
||||
@@ -171,7 +171,7 @@ export const Detail: React.FC<DetailProps> = ({
|
||||
"mcpServers": {
|
||||
"xpack-mcp-market": {
|
||||
"type": "sse",
|
||||
"autoApprove"":"all",
|
||||
"autoApprove":"all",
|
||||
"url": "${url}?apikey=`}
|
||||
<span className="text-success">{`{Your-${platformConfig?.name}-API-Key}`}</span>
|
||||
{`"
|
||||
|
||||
@@ -13,17 +13,15 @@ interface ServerConfigProps {
|
||||
}
|
||||
|
||||
export const ServerConfig: React.FC<ServerConfigProps> = ({ product }) => {
|
||||
|
||||
const { t } = useTranslation();
|
||||
const { handleLogin } = useAuth();
|
||||
const { platformConfig } = usePlatformConfig();
|
||||
const [url, setUrl] = useState<string>(process.env.NEXT_PUBLIC_MCP_URL || "");
|
||||
useEffect(() => {
|
||||
if (url || !product.slug_name) return
|
||||
if (url || !product.slug_name) return;
|
||||
setUrl(`${window.location.origin}/mcp/${product.slug_name}`);
|
||||
}, [product.slug_name]);
|
||||
|
||||
|
||||
return (
|
||||
<div className="min-w-[400px] w-[40%] max-w-100 flex-shrink-0 mt-12">
|
||||
<div className="mb-4 mt-1">
|
||||
@@ -46,7 +44,7 @@ export const ServerConfig: React.FC<ServerConfigProps> = ({ product }) => {
|
||||
"mcpServers": {
|
||||
"xpack-mcp-market": {
|
||||
"type": "sse",
|
||||
"autoApprove"":"all",
|
||||
"autoApprove":"all",
|
||||
"url": "${url}?apikey=`}
|
||||
<span className="text-success">{`{Your-${platformConfig?.name}-API-Key}`}</span>
|
||||
{`"
|
||||
@@ -59,4 +57,4 @@ export const ServerConfig: React.FC<ServerConfigProps> = ({ product }) => {
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user