Skip to content

Commit 906932b

Browse files
committed
refactor: improve buttons
1 parent baf4510 commit 906932b

6 files changed

Lines changed: 191 additions & 238 deletions

File tree

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This web app lets you find available MCP servers, and easily install them into c
88

99
- 🌍 Access all MCP servers published to the official MCP registry
1010
- 🔎 Search by server name, and filter by last published date
11-
- 🏷️ Browse published versions of a server
11+
- 🏷️ Browse the published versions of a server
1212
- 📥 Install MCP servers into compatible clients in 1 click (VSCode and Cursor)
1313
- 🧩 Build a stack from selected MCP servers, and export to VSCode `mcp.json`, or Cursor config formats
1414
- 🦊 Runs entirely in the browser, and fetches data directly from [registry.modelcontextprotocol.io](https://registry.modelcontextprotocol.io/docs)
@@ -93,12 +93,4 @@ npm run build
9393
9494
## ✅ To do
9595
96-
- [ ] Improve the page system: per search store the pointer to access each page (apart for 1)
97-
98-
Cursor is the last of the previous page
99-
100-
```
101-
cursor=ai.smithery%2Faicastle-school-openai-api-agent-project
102-
```
103-
10496
- [ ] Improve filtering: filter by status and server type (stdio, http, sse). Would require new features on the registry API, or handling filters on the client.

src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ export default function App() {
398398
: `Remote: ${item.data.url}`}
399399
</div>
400400
</div>
401-
<button
401+
<Button
402+
variant="link"
402403
onClick={(e) => {
403404
e.stopPropagation();
404405
e.preventDefault();
@@ -407,7 +408,7 @@ export default function App() {
407408
className="p-1 hover:bg-destructive/10 rounded transition-colors"
408409
>
409410
<Trash2 className="h-4 w-4 text-destructive" />
410-
</button>
411+
</Button>
411412
</DropdownMenuItem>
412413
))}
413414
</div>

src/components/about.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const AboutPopup = () => {
77
return (
88
<Popover>
99
<PopoverTrigger asChild>
10-
<Button variant="ghost" className="text-muted-foreground hover:text-foreground">
10+
<Button variant="ghost" className="text-muted-foreground hover:text-foreground hover:cursor-default">
1111
<Info className="h-5 w-5" />
1212
</Button>
1313
</PopoverTrigger>

src/components/server-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export const ServerCard = ({
173173
<DropdownMenuTrigger asChild>
174174
<button
175175
type="button"
176-
className="flex items-center gap-1"
176+
className="flex items-center"
177177
onClick={(e) => {
178178
// Prevent card-level click handlers from firing
179179
e.stopPropagation();

0 commit comments

Comments
 (0)