feat: support stop/start MCP servers

This commit is contained in:
Kadxy
2025-01-16 08:52:54 +08:00
parent e440ff56c8
commit 07c63497dc
7 changed files with 298 additions and 132 deletions

View File

@@ -98,6 +98,10 @@
background-color: #ef4444;
}
&.stopped {
background-color: #6b7280;
}
.error-message {
margin-left: 4px;
font-size: 12px;
@@ -151,21 +155,11 @@
.mcp-market-actions {
display: flex;
gap: 8px;
gap: 12px;
align-items: flex-start;
flex-shrink: 0;
min-width: 180px;
justify-content: flex-end;
:global(.icon-button) {
transition: all 0.3s ease;
border: 1px solid transparent;
&:hover {
transform: translateY(-1px);
filter: brightness(1.1);
}
}
}
}
}
@@ -213,30 +207,6 @@
color: var(--gray-300);
}
}
:global(.icon-button) {
width: 32px;
height: 32px;
padding: 0;
border-radius: 6px;
background-color: transparent;
border: 1px solid var(--gray-200);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
&:hover {
background-color: var(--gray-100);
border-color: var(--gray-300);
}
svg {
width: 16px;
height: 16px;
opacity: 0.7;
}
}
}
:global(.icon-button.add-path-button) {