Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,23 @@
|
|
| 1 |
from __future__ import annotations
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
import json
|
| 6 |
import os
|
|
@@ -152,10 +169,10 @@ _tab_names = [
|
|
| 152 |
"MySQL Database",
|
| 153 |
]
|
| 154 |
|
| 155 |
-
with gr.Blocks(title="
|
| 156 |
|
| 157 |
with gr.Sidebar(width=300, elem_classes="app-sidebar"):
|
| 158 |
-
gr.Markdown("##
|
| 159 |
|
| 160 |
with gr.Accordion("Information", open=False):
|
| 161 |
gr.HTML(
|
|
@@ -166,20 +183,20 @@ with gr.Blocks(title="Nymbo clone/Tools MCP") as demo:
|
|
| 166 |
<div class="info-card__body">
|
| 167 |
<h3>Connecting from an MCP Client</h3>
|
| 168 |
<p>
|
| 169 |
-
This Space
|
| 170 |
<br/>
|
| 171 |
-
<code>https://
|
| 172 |
</p>
|
| 173 |
<p>Example client configuration:</p>
|
| 174 |
<pre><code class="language-json">{
|
| 175 |
"mcpServers": {
|
| 176 |
-
"
|
| 177 |
-
"url": "https://
|
| 178 |
}
|
| 179 |
}
|
| 180 |
}</code></pre>
|
| 181 |
<p>Run the following commands in sequence to run the server locally:</p>
|
| 182 |
-
<pre><code>git clone https://huggingface.co/spaces/
|
| 183 |
cd Tools
|
| 184 |
python -m venv env
|
| 185 |
source env/bin/activate
|
|
@@ -188,6 +205,24 @@ python app.py</code></pre>
|
|
| 188 |
</div>
|
| 189 |
</section>
|
| 190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
<section class="info-card">
|
| 192 |
<div class="info-card__body">
|
| 193 |
<h3>Enable Image Gen, Video Gen, and Deep Research</h3>
|
|
@@ -230,6 +265,7 @@ python app.py</code></pre>
|
|
| 230 |
<li><code>Generate_Speech</code></li>
|
| 231 |
<li><code>File_System</code></li>
|
| 232 |
<li><code>Shell_Command</code></li>
|
|
|
|
| 233 |
</ul>
|
| 234 |
<p><strong>Kokoro voice prefixes</strong></p>
|
| 235 |
<table style="width:100%; border-collapse:collapse; font-size:0.9em; margin-top:8px;">
|
|
|
|
| 1 |
from __future__ import annotations
|
| 2 |
|
| 3 |
+
"""
|
| 4 |
+
Beyoru Clone Tools MCP Server
|
| 5 |
+
MCP URL: https://beyoru-clone-tools.hf.space/gradio_api/mcp/
|
| 6 |
+
Space provided by beyoru
|
| 7 |
+
> This code is clone version of Nymbol tool.
|
| 8 |
+
|
| 9 |
+
Features:
|
| 10 |
+
- Web Search & Fetch
|
| 11 |
+
- Code Interpreter
|
| 12 |
+
- Agent Terminal
|
| 13 |
+
- File System Management
|
| 14 |
+
- Memory Manager
|
| 15 |
+
- Speech, Image & Video Generation
|
| 16 |
+
- Deep Research
|
| 17 |
+
- MySQL Database Connection (Cloud Database Support)
|
| 18 |
+
- Obsidian Vault
|
| 19 |
+
- Shell Command Execution
|
| 20 |
+
"""
|
| 21 |
|
| 22 |
import json
|
| 23 |
import os
|
|
|
|
| 169 |
"MySQL Database",
|
| 170 |
]
|
| 171 |
|
| 172 |
+
with gr.Blocks(title="Beyoru Clone Tools MCP") as demo:
|
| 173 |
|
| 174 |
with gr.Sidebar(width=300, elem_classes="app-sidebar"):
|
| 175 |
+
gr.Markdown("## Beyoru Clone Tools MCP\n<p style='font-size: 0.7rem; opacity: 0.85; margin-top: 2px;'>General purpose tools useful for any agent. Space provided by beyoru.</p>\n<code style='font-size: 0.7rem; word-break: break-all;'>https://beyoru-clone-tools.hf.space/gradio_api/mcp/</code>")
|
| 176 |
|
| 177 |
with gr.Accordion("Information", open=False):
|
| 178 |
gr.HTML(
|
|
|
|
| 183 |
<div class="info-card__body">
|
| 184 |
<h3>Connecting from an MCP Client</h3>
|
| 185 |
<p>
|
| 186 |
+
This Space runs as a Model Context Protocol (MCP) server. Point your client to:
|
| 187 |
<br/>
|
| 188 |
+
<code>https://beyoru-clone-tools.hf.space/gradio_api/mcp/</code>
|
| 189 |
</p>
|
| 190 |
<p>Example client configuration:</p>
|
| 191 |
<pre><code class="language-json">{
|
| 192 |
"mcpServers": {
|
| 193 |
+
"beyoru-tools": {
|
| 194 |
+
"url": "https://beyoru-clone-tools.hf.space/gradio_api/mcp/"
|
| 195 |
}
|
| 196 |
}
|
| 197 |
}</code></pre>
|
| 198 |
<p>Run the following commands in sequence to run the server locally:</p>
|
| 199 |
+
<pre><code>git clone https://huggingface.co/spaces/beyoru/Tools
|
| 200 |
cd Tools
|
| 201 |
python -m venv env
|
| 202 |
source env/bin/activate
|
|
|
|
| 205 |
</div>
|
| 206 |
</section>
|
| 207 |
|
| 208 |
+
<section class="info-card">
|
| 209 |
+
<div class="info-card__body">
|
| 210 |
+
<h3>MySQL Cloud Database Connection</h3>
|
| 211 |
+
<p>
|
| 212 |
+
<strong>New Feature:</strong> The <code>MySQL Database</code> tool allows you to connect to cloud databases and execute SQL queries remotely.
|
| 213 |
+
</p>
|
| 214 |
+
<ul class="info-list">
|
| 215 |
+
<li>Connect to MySQL databases hosted on cloud platforms</li>
|
| 216 |
+
<li>Execute SELECT, INSERT, UPDATE, DELETE queries</li>
|
| 217 |
+
<li>Manage database connections securely</li>
|
| 218 |
+
<li>Support for multiple concurrent database connections</li>
|
| 219 |
+
</ul>
|
| 220 |
+
<div class="info-hint">
|
| 221 |
+
Configure your database credentials in the MySQL Database tab to get started.
|
| 222 |
+
</div>
|
| 223 |
+
</div>
|
| 224 |
+
</section>
|
| 225 |
+
|
| 226 |
<section class="info-card">
|
| 227 |
<div class="info-card__body">
|
| 228 |
<h3>Enable Image Gen, Video Gen, and Deep Research</h3>
|
|
|
|
| 265 |
<li><code>Generate_Speech</code></li>
|
| 266 |
<li><code>File_System</code></li>
|
| 267 |
<li><code>Shell_Command</code></li>
|
| 268 |
+
<li><code>MySQL Database</code> ⭐ (Cloud Connection)</li>
|
| 269 |
</ul>
|
| 270 |
<p><strong>Kokoro voice prefixes</strong></p>
|
| 271 |
<table style="width:100%; border-collapse:collapse; font-size:0.9em; margin-top:8px;">
|