Spaces:
Sleeping
Sleeping
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,12 +1,60 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
-
app_file:
|
| 9 |
pinned: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: UniversalAPIAgentTool
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
+
app_file: app_hf.py
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
short_description: Universal MCP tool for AI agents to access any REST API
|
| 12 |
+
tags:
|
| 13 |
+
- mcp
|
| 14 |
+
- hackathon
|
| 15 |
+
- api
|
| 16 |
+
- agent
|
| 17 |
+
- universal-tool
|
| 18 |
+
- rest-api
|
| 19 |
+
- gradio
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# UniversalAPIAgentTool π
|
| 23 |
+
|
| 24 |
+
**Universal MCP Tool for Agents & MCP Hackathon**
|
| 25 |
+
|
| 26 |
+
A powerful Gradio-based MCP server that acts as a universal gateway for AI agents to interact with any REST API on the web.
|
| 27 |
+
|
| 28 |
+
## π― Live Demo
|
| 29 |
+
|
| 30 |
+
Use this interface to test the UniversalAPIAgentTool:
|
| 31 |
+
|
| 32 |
+
1. **Try Real APIs**: Test with CoinGecko, GitHub, or JSONPlaceholder
|
| 33 |
+
2. **Explore Features**: Test different HTTP methods and authentication
|
| 34 |
+
3. **See Error Handling**: Try invalid URLs to see robust error responses
|
| 35 |
+
4. **MCP Integration**: This same functionality is available as an MCP tool for AI agents
|
| 36 |
+
|
| 37 |
+
## π€ For AI Agents
|
| 38 |
+
|
| 39 |
+
This tool exposes the `execute_api_call` function via MCP, enabling AI agents to access any REST API:
|
| 40 |
+
|
| 41 |
+
```json
|
| 42 |
+
{
|
| 43 |
+
"tool_name": "UniversalAPIAgentTool",
|
| 44 |
+
"function_name": "execute_api_call",
|
| 45 |
+
"parameters": {
|
| 46 |
+
"base_url": "https://api.coingecko.com",
|
| 47 |
+
"endpoint": "/api/v3/simple/price",
|
| 48 |
+
"method": "GET",
|
| 49 |
+
"params": {"ids": "bitcoin", "vs_currencies": "usd"}
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## π Hackathon Impact
|
| 55 |
+
|
| 56 |
+
**Problem Solved**: AI agents were limited to pre-built API integrations
|
| 57 |
+
**Solution**: Universal access to any REST API in real-time
|
| 58 |
+
**Result**: Dramatically expanded AI agent capabilities
|
| 59 |
+
|
| 60 |
+
Built for the **Agents & MCP Hackathon** π
|