Skip to content

Commit f7b8345

Browse files
authored
Link to marketplace from modes and MCP tab (#5580)
1 parent 406b366 commit f7b8345

File tree

20 files changed

+59
-5
lines changed

20 files changed

+59
-5
lines changed

webview-ui/src/components/mcp/McpView.tsx

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import {
2323
DialogDescription,
2424
DialogFooter,
2525
ToggleSwitch,
26+
StandardTooltip,
2627
} from "@src/components/ui"
2728
import { buildDocLink } from "@src/utils/docLinks"
2829

@@ -124,13 +125,13 @@ const McpView = ({ onDone }: McpViewProps) => {
124125
style={{
125126
marginTop: "10px",
126127
width: "100%",
127-
display: "flex",
128-
flexWrap: "wrap",
128+
display: "grid",
129+
gridTemplateColumns: "repeat(auto-fit, minmax(200px, 1fr))",
129130
gap: "10px",
130131
}}>
131132
<Button
132133
variant="secondary"
133-
style={{ flex: "1 1 auto", minWidth: "120px" }}
134+
style={{ width: "100%" }}
134135
onClick={() => {
135136
vscode.postMessage({ type: "openMcpSettings" })
136137
}}>
@@ -139,7 +140,7 @@ const McpView = ({ onDone }: McpViewProps) => {
139140
</Button>
140141
<Button
141142
variant="secondary"
142-
style={{ flex: "1 1 auto", minWidth: "120px" }}
143+
style={{ width: "100%" }}
143144
onClick={() => {
144145
vscode.postMessage({ type: "openProjectMcpSettings" })
145146
}}>
@@ -148,13 +149,31 @@ const McpView = ({ onDone }: McpViewProps) => {
148149
</Button>
149150
<Button
150151
variant="secondary"
151-
style={{ flex: "1 1 auto", minWidth: "120px" }}
152+
style={{ width: "100%" }}
152153
onClick={() => {
153154
vscode.postMessage({ type: "refreshAllMcpServers" })
154155
}}>
155156
<span className="codicon codicon-refresh" style={{ marginRight: "6px" }}></span>
156157
{t("mcp:refreshMCP")}
157158
</Button>
159+
<StandardTooltip content={t("mcp:marketplace")}>
160+
<Button
161+
variant="secondary"
162+
style={{ width: "100%" }}
163+
onClick={() => {
164+
window.postMessage(
165+
{
166+
type: "action",
167+
action: "marketplaceButtonClicked",
168+
values: { marketplaceTab: "mcp" },
169+
},
170+
"*",
171+
)
172+
}}>
173+
<span className="codicon codicon-extensions" style={{ marginRight: "6px" }}></span>
174+
{t("mcp:marketplace")}
175+
</Button>
176+
</StandardTooltip>
158177
</div>
159178
<div
160179
style={{

webview-ui/src/components/modes/ModesView.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,23 @@ const ModesView = ({ onDone }: ModesViewProps) => {
561561
</div>
562562
)}
563563
</div>
564+
<StandardTooltip content={t("chat:modeSelector.marketplace")}>
565+
<Button
566+
variant="ghost"
567+
size="icon"
568+
onClick={() => {
569+
window.postMessage(
570+
{
571+
type: "action",
572+
action: "marketplaceButtonClicked",
573+
values: { marketplaceTab: "mode" },
574+
},
575+
"*",
576+
)
577+
}}>
578+
<span className="codicon codicon-extensions"></span>
579+
</Button>
580+
</StandardTooltip>
564581
</div>
565582
</div>
566583

webview-ui/src/i18n/locales/ca/mcp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "Servidors MCP",
33
"done": "Fet",
4+
"marketplace": "Mercat de MCP",
45
"description": "El <0>Model Context Protocol</0> permet la comunicació amb servidors MCP que s'executen localment i proporcionen eines i recursos addicionals per ampliar les capacitats de Roo. Pots utilitzar <1>servidors creats per la comunitat</1> o demanar a Roo que creï noves eines específiques per al teu flux de treball (per exemple, \"afegir una eina que obtingui la documentació més recent de npm\").",
56
"instructions": "Instruccions",
67
"enableToggle": {

webview-ui/src/i18n/locales/de/mcp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "MCP-Server",
33
"done": "Fertig",
4+
"marketplace": "MCP-Marktplatz",
45
"description": "Das <0>Model Context Protocol</0> ermöglicht die Kommunikation mit lokal laufenden MCP-Servern, die zusätzliche Tools und Ressourcen zur Erweiterung der Fähigkeiten von Roo bereitstellen. Du kannst <1>von der Community erstellte Server</1> verwenden oder Roo bitten, neue Tools speziell für deinen Workflow zu erstellen (z.B. \"ein Tool hinzufügen, das die neueste npm-Dokumentation abruft\").",
56
"instructions": "Anweisungen",
67
"enableToggle": {

webview-ui/src/i18n/locales/en/mcp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "MCP Servers",
33
"done": "Done",
4+
"marketplace": "MCP Marketplace",
45
"description": "The <0>Model Context Protocol</0> enables communication with locally running MCP servers that provide additional tools and resources to extend Roo's capabilities. You can use <1>community-made servers</1> or ask Roo to create new tools specific to your workflow (e.g., \"add a tool that gets the latest npm docs\").",
56
"instructions": "Instructions",
67
"enableToggle": {

webview-ui/src/i18n/locales/es/mcp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "Servidores MCP",
33
"done": "Listo",
4+
"marketplace": "Mercado MCP",
45
"description": "El <0>Model Context Protocol</0> permite la comunicación con servidores MCP que se ejecutan localmente y proporcionan herramientas y recursos adicionales para extender las capacidades de Roo. Puedes usar <1>servidores creados por la comunidad</1> o pedir a Roo que cree nuevas herramientas específicas para tu flujo de trabajo (por ejemplo, \"añadir una herramienta que obtenga la documentación más reciente de npm\").",
56
"instructions": "Instrucciones",
67
"enableToggle": {

webview-ui/src/i18n/locales/fr/mcp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "Serveurs MCP",
33
"done": "Terminé",
4+
"marketplace": "Marché MCP",
45
"description": "Le <0>Model Context Protocol</0> permet la communication avec des serveurs MCP exécutés localement qui fournissent des outils et des ressources supplémentaires pour étendre les capacités de Roo. Vous pouvez utiliser <1>des serveurs créés par la communauté</1> ou demander à Roo de créer de nouveaux outils spécifiques à votre flux de travail (par exemple, \"ajouter un outil qui récupère la dernière documentation npm\").",
56
"instructions": "Instructions",
67
"enableToggle": {

webview-ui/src/i18n/locales/hi/mcp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "MCP सर्वर",
33
"done": "हो गया",
4+
"marketplace": "MCP मार्केटप्लेस",
45
"description": "<0>मॉडल कॉन्टेक्स्ट प्रोटोकॉल</0> स्थानीय रूप से चल रहे MCP सर्वरों के साथ संचार को सक्षम बनाता है जो Roo की क्षमताओं का विस्तार करने के लिए अतिरिक्त उपकरण और संसाधन प्रदान करते हैं। आप <1>समुदाय द्वारा बनाए गए सर्वरों</1> का उपयोग कर सकते हैं या Roo से अपने कार्यप्रवाह के लिए विशिष्ट नए उपकरण बनाने के लिए कह सकते हैं (जैसे, \"नवीनतम npm दस्तावेज़ प्राप्त करने वाला उपकरण जोड़ें\")।",
56
"instructions": "निर्देश",
67
"enableToggle": {

webview-ui/src/i18n/locales/id/mcp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "Server MCP",
33
"done": "Selesai",
4+
"marketplace": "Marketplace MCP",
45
"description": "<0>Model Context Protocol</0> memungkinkan komunikasi dengan server MCP yang berjalan secara lokal yang menyediakan tools dan resources tambahan untuk memperluas kemampuan Roo Code. Anda dapat menggunakan <1>server buatan komunitas</1> atau meminta Roo membuat tools baru yang spesifik untuk workflow Anda (misalnya, \"tambahkan tool yang mendapatkan dokumentasi npm terbaru\").",
56
"instructions": "Instruksi",
67
"enableToggle": {

webview-ui/src/i18n/locales/it/mcp.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "Server MCP",
33
"done": "Fatto",
4+
"marketplace": "Marketplace MCP",
45
"description": "Il <0>Model Context Protocol</0> permette la comunicazione con server MCP in esecuzione locale che forniscono strumenti e risorse aggiuntive per estendere le capacità di Roo. Puoi utilizzare <1>server creati dalla comunità</1> o chiedere a Roo di creare nuovi strumenti specifici per il tuo flusso di lavoro (ad esempio, \"aggiungi uno strumento che ottiene la documentazione npm più recente\").",
56
"instructions": "Istruzioni",
67
"enableToggle": {

0 commit comments

Comments
 (0)