Commit
·
64b7053
1
Parent(s):
78faeae
Improve client
Browse filesSigned-off-by: Aivin V. Solatorio <avsolatorio@gmail.com>
- mcp_client.py +5 -5
- pyproject.toml +2 -0
- uv.lock +0 -0
mcp_client.py
CHANGED
@@ -231,15 +231,15 @@ client = MCPClientWrapper()
|
|
231 |
|
232 |
|
233 |
def gradio_interface():
|
234 |
-
with gr.Blocks(title="MCP
|
235 |
-
gr.Markdown("# MCP
|
236 |
-
gr.Markdown("Connect to
|
237 |
|
238 |
with gr.Row(equal_height=True):
|
239 |
with gr.Column(scale=4):
|
240 |
server_path = gr.Textbox(
|
241 |
label="Server Script Path",
|
242 |
-
placeholder="Enter path to server script (e.g.,
|
243 |
value="wdi_mcp_server.py",
|
244 |
)
|
245 |
with gr.Column(scale=1):
|
@@ -258,7 +258,7 @@ def gradio_interface():
|
|
258 |
with gr.Row(equal_height=True):
|
259 |
msg = gr.Textbox(
|
260 |
label="Your Question",
|
261 |
-
placeholder="Ask about
|
262 |
scale=4,
|
263 |
)
|
264 |
clear_btn = gr.Button("Clear Chat", scale=1)
|
|
|
231 |
|
232 |
|
233 |
def gradio_interface():
|
234 |
+
with gr.Blocks(title="MCP WDI Client") as demo:
|
235 |
+
gr.Markdown("# WDI MCP Client")
|
236 |
+
gr.Markdown("Connect to the WDI MCP server and chat with the assistant")
|
237 |
|
238 |
with gr.Row(equal_height=True):
|
239 |
with gr.Column(scale=4):
|
240 |
server_path = gr.Textbox(
|
241 |
label="Server Script Path",
|
242 |
+
placeholder="Enter path to server script (e.g., wdi_mcp_server.py)",
|
243 |
value="wdi_mcp_server.py",
|
244 |
)
|
245 |
with gr.Column(scale=1):
|
|
|
258 |
with gr.Row(equal_height=True):
|
259 |
msg = gr.Textbox(
|
260 |
label="Your Question",
|
261 |
+
placeholder="Ask about what indicators are available for a specific topic (e.g., What's the definition of GDP?)",
|
262 |
scale=4,
|
263 |
)
|
264 |
clear_btn = gr.Button("Clear Chat", scale=1)
|
pyproject.toml
CHANGED
@@ -5,8 +5,10 @@ description = "Add your description here"
|
|
5 |
readme = "README.md"
|
6 |
requires-python = ">=3.10"
|
7 |
dependencies = [
|
|
|
8 |
"anthropic>=0.51.0",
|
9 |
"gradio[mcp]>=5.29.1",
|
|
|
10 |
"numpy>=2.2.6",
|
11 |
"scikit-learn>=1.6.1",
|
12 |
"sentence-transformers>=4.1.0",
|
|
|
5 |
readme = "README.md"
|
6 |
requires-python = ">=3.10"
|
7 |
dependencies = [
|
8 |
+
"aiohttp>=3.11.18",
|
9 |
"anthropic>=0.51.0",
|
10 |
"gradio[mcp]>=5.29.1",
|
11 |
+
"httpx>=0.28.1",
|
12 |
"numpy>=2.2.6",
|
13 |
"scikit-learn>=1.6.1",
|
14 |
"sentence-transformers>=4.1.0",
|
uv.lock
CHANGED
The diff for this file is too large to render.
See raw diff
|
|