Skip to content

Commit 8281265

Browse files
committed
fix(McpView): keeping marketplace view
1 parent f6e9b5e commit 8281265

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
DialogDescription,
1818
DialogFooter,
1919
ToggleSwitch,
20+
StandardTooltip,
2021
} from "@src/components/ui"
2122
import { buildDocLink } from "@src/utils/docLinks"
2223
import { Section } from "@src/components/settings/Section"
@@ -132,6 +133,24 @@ const McpView = () => {
132133
<span className="codicon codicon-refresh" style={{ marginRight: "6px" }}></span>
133134
{t("mcp:refreshMCP")}
134135
</Button>
136+
<StandardTooltip content={t("mcp:marketplace")}>
137+
<Button
138+
variant="secondary"
139+
style={{ width: "100%" }}
140+
onClick={() => {
141+
window.postMessage(
142+
{
143+
type: "action",
144+
action: "marketplaceButtonClicked",
145+
values: { marketplaceTab: "mcp" },
146+
},
147+
"*",
148+
)
149+
}}>
150+
<span className="codicon codicon-extensions" style={{ marginRight: "6px" }}></span>
151+
{t("mcp:marketplace")}
152+
</Button>
153+
</StandardTooltip>
135154
</div>
136155
<div
137156
style={{

0 commit comments

Comments
 (0)