yijun-lee commited on
Commit
4e984de
Β·
verified Β·
1 Parent(s): 190b5c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +46 -23
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
- mix-blend-mode: multiply;
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: #666;
586
- mix-blend-mode: multiply;
587
  }
588
  .traffic-light {
589
  position: absolute;
590
  top: 50%;
591
  left: 50%;
592
  transform: translate(-50%, -50%);
593
- width: 300px;
594
  height: 40px;
595
  background: linear-gradient(90deg,
596
- rgba(255, 0, 0, 0.3) 0%,
597
- rgba(255, 165, 0, 0.3) 50%,
598
- rgba(0, 255, 0, 0.3) 100%
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
- Router MCP is a powerful tool that helps you discover and connect to MCP servers.
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
- ### Understanding Search Results
 
 
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
- ### Features
665
-
666
- - **Multi-Source Search**: Search across Hugging Face Spaces and Smithery
667
- - **Smart Search**: Choose between keyword and semantic search
668
- - **OS-Specific Configs**: Get configurations tailored to your operating system
669
- - **Ready-to-Use**: Direct integration with MCP-compatible clients
 
 
 
 
 
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
- ### Integration Guide
716
 
717
  To integrate Router MCP with your preferred client, follow these instructions:
718
 
719
- #### For SSE-Supported Clients
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
- #### For stdio-Only Clients
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: