Update app.py
Browse files
app.py
CHANGED
@@ -575,27 +575,27 @@ with gr.Blocks(title="π¦ Router MCP", css="""
|
|
575 |
font-size: 1.8rem;
|
576 |
margin: 0;
|
577 |
line-height: 1.2;
|
578 |
-
|
579 |
}
|
580 |
.title-container p {
|
581 |
position: relative;
|
582 |
z-index: 1;
|
583 |
font-size: 1rem;
|
584 |
margin: 0.5rem 0 0 0;
|
585 |
-
color:
|
586 |
-
|
587 |
}
|
588 |
.traffic-light {
|
589 |
position: absolute;
|
590 |
top: 50%;
|
591 |
left: 50%;
|
592 |
transform: translate(-50%, -50%);
|
593 |
-
width:
|
594 |
height: 40px;
|
595 |
background: linear-gradient(90deg,
|
596 |
-
rgba(255, 0, 0, 0.
|
597 |
-
rgba(255, 165, 0, 0.
|
598 |
-
rgba(0, 255, 0, 0.
|
599 |
);
|
600 |
border-radius: 20px;
|
601 |
z-index: 0;
|
@@ -611,14 +611,20 @@ with gr.Blocks(title="π¦ Router MCP", css="""
|
|
611 |
|
612 |
with gr.Tabs() as tabs:
|
613 |
with gr.Tab("Overview"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
614 |
with gr.Row():
|
615 |
with gr.Column():
|
616 |
gr.Markdown("""
|
617 |
-
|
618 |
-
Whether you're looking for specific functionality or exploring new possibilities,
|
619 |
-
Router MCP makes it easy to find the perfect server for your needs.
|
620 |
-
|
621 |
-
### How to Use Router MCP
|
622 |
|
623 |
1. **Enter Your Query**
|
624 |
- Type a natural language description of the MCP Server you're looking for
|
@@ -637,8 +643,10 @@ with gr.Blocks(title="π¦ Router MCP", css="""
|
|
637 |
- **Keyword Search**: Use when you have specific terms or names in mind
|
638 |
- **Semantic Search**: Use when you want to find servers based on meaning and intent
|
639 |
- Both methods will return ready-to-use MCP configurations
|
640 |
-
|
641 |
-
|
|
|
|
|
642 |
|
643 |
The search results will show MCP Servers from different sources, each with their own format:
|
644 |
|
@@ -658,15 +666,30 @@ with gr.Blocks(title="π¦ Router MCP", css="""
|
|
658 |
- **configuration**: OS-specific MCP configuration (requires your Smithery key)
|
659 |
|
660 |
> Note: For Smithery servers, you'll need to replace "YOUR_SMITHERY_KEY" in the configuration with your actual Smithery API key.
|
|
|
|
|
661 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
662 |
with gr.Column():
|
663 |
gr.Markdown("""
|
664 |
-
|
665 |
-
|
666 |
-
-
|
667 |
-
-
|
668 |
-
|
669 |
-
|
|
|
|
|
|
|
|
|
|
|
670 |
""")
|
671 |
|
672 |
with gr.Tab("Try Router MCP"):
|
@@ -712,11 +735,11 @@ with gr.Blocks(title="π¦ Router MCP", css="""
|
|
712 |
|
713 |
with gr.Tab("How to Integrate"):
|
714 |
gr.Markdown("""
|
715 |
-
|
716 |
|
717 |
To integrate Router MCP with your preferred client, follow these instructions:
|
718 |
|
719 |
-
|
720 |
For clients that support SSE (e.g., Cursor, Windsurf, Cline), add this configuration to your MCP config:
|
721 |
|
722 |
```json
|
@@ -729,7 +752,7 @@ with gr.Blocks(title="π¦ Router MCP", css="""
|
|
729 |
}
|
730 |
```
|
731 |
|
732 |
-
|
733 |
For clients that only support stdio (e.g., Claude Desktop):
|
734 |
1. First, install Node.js
|
735 |
2. Add this configuration to your MCP config:
|
|
|
575 |
font-size: 1.8rem;
|
576 |
margin: 0;
|
577 |
line-height: 1.2;
|
578 |
+
color: var(--body-text-color);
|
579 |
}
|
580 |
.title-container p {
|
581 |
position: relative;
|
582 |
z-index: 1;
|
583 |
font-size: 1rem;
|
584 |
margin: 0.5rem 0 0 0;
|
585 |
+
color: var(--body-text-color);
|
586 |
+
opacity: 0.8;
|
587 |
}
|
588 |
.traffic-light {
|
589 |
position: absolute;
|
590 |
top: 50%;
|
591 |
left: 50%;
|
592 |
transform: translate(-50%, -50%);
|
593 |
+
width: 500px;
|
594 |
height: 40px;
|
595 |
background: linear-gradient(90deg,
|
596 |
+
rgba(255, 0, 0, 0.2) 0%,
|
597 |
+
rgba(255, 165, 0, 0.2) 50%,
|
598 |
+
rgba(0, 255, 0, 0.2) 100%
|
599 |
);
|
600 |
border-radius: 20px;
|
601 |
z-index: 0;
|
|
|
611 |
|
612 |
with gr.Tabs() as tabs:
|
613 |
with gr.Tab("Overview"):
|
614 |
+
gr.Markdown("""
|
615 |
+
<span style="font-size: 1.1em">Router MCP is a powerful tool that helps you discover and connect to MCP servers.
|
616 |
+
Whether you're looking for specific functionality or exploring new possibilities,
|
617 |
+
Router MCP makes it easy to find the perfect MCP server for your needs.</span>
|
618 |
+
""")
|
619 |
+
|
620 |
+
gr.Markdown("""
|
621 |
+
## π₯ Video Demo
|
622 |
+
""")
|
623 |
+
|
624 |
with gr.Row():
|
625 |
with gr.Column():
|
626 |
gr.Markdown("""
|
627 |
+
## π― How to Use Router MCP
|
|
|
|
|
|
|
|
|
628 |
|
629 |
1. **Enter Your Query**
|
630 |
- Type a natural language description of the MCP Server you're looking for
|
|
|
643 |
- **Keyword Search**: Use when you have specific terms or names in mind
|
644 |
- **Semantic Search**: Use when you want to find servers based on meaning and intent
|
645 |
- Both methods will return ready-to-use MCP configurations
|
646 |
+
""")
|
647 |
+
with gr.Column():
|
648 |
+
gr.Markdown("""
|
649 |
+
## π Understanding Search Results
|
650 |
|
651 |
The search results will show MCP Servers from different sources, each with their own format:
|
652 |
|
|
|
666 |
- **configuration**: OS-specific MCP configuration (requires your Smithery key)
|
667 |
|
668 |
> Note: For Smithery servers, you'll need to replace "YOUR_SMITHERY_KEY" in the configuration with your actual Smithery API key.
|
669 |
+
|
670 |
+
> Note: When using Semantic Search, each result includes a similarity score (0-1) that indicates how well the server matches your query's meaning. Higher scores (closer to 1) indicate better semantic matches.
|
671 |
""")
|
672 |
+
|
673 |
+
gr.Markdown("""
|
674 |
+
## π Upcoming Features
|
675 |
+
|
676 |
+
We're constantly working to improve Router MCP. Here's what's coming soon:
|
677 |
+
""")
|
678 |
+
|
679 |
+
with gr.Row():
|
680 |
with gr.Column():
|
681 |
gr.Markdown("""
|
682 |
+
#### π Enhanced Integration
|
683 |
+
- Integration with Anthropic's Registry for comprehensive MCP server discovery
|
684 |
+
- Complete support for Smithery search capabilities
|
685 |
+
- Enhanced server discovery with improved filtering and sorting options
|
686 |
+
""")
|
687 |
+
with gr.Column():
|
688 |
+
gr.Markdown("""
|
689 |
+
#### β‘οΈ Automated Setup
|
690 |
+
- One-click MCP server addition to your client
|
691 |
+
- Automatic configuration generation and validation
|
692 |
+
- Seamless integration with popular MCP clients
|
693 |
""")
|
694 |
|
695 |
with gr.Tab("Try Router MCP"):
|
|
|
735 |
|
736 |
with gr.Tab("How to Integrate"):
|
737 |
gr.Markdown("""
|
738 |
+
## Integration Guide
|
739 |
|
740 |
To integrate Router MCP with your preferred client, follow these instructions:
|
741 |
|
742 |
+
### For SSE-Supported Clients
|
743 |
For clients that support SSE (e.g., Cursor, Windsurf, Cline), add this configuration to your MCP config:
|
744 |
|
745 |
```json
|
|
|
752 |
}
|
753 |
```
|
754 |
|
755 |
+
### For stdio-Only Clients
|
756 |
For clients that only support stdio (e.g., Claude Desktop):
|
757 |
1. First, install Node.js
|
758 |
2. Add this configuration to your MCP config:
|