api-to-curl-mcp-server
Self-Learning API-to-cURL Model
Added on 3/28/2025
๐ MCP-AI: Self-Learning API-to-cURL Model
This project builds an autonomous AI system to convert API documentation into cURL commands.
๐ Features:
โ
Automated Dataset Generation
โ
Self-Improving Model with Reinforcement Learning
โ
MCP Server for API-based Execution
โ
Continuous Deployment with GitHub Actions
๐ Quick Start:
1๏ธโฃ Install dependencies:
pip install -r requirements.txt
2๏ธโฃ Start MCP Server:
bash scripts/start_mcp.sh
3๏ธโฃ Start AI Automation:
python src/ai_autonomous_dev.py
4๏ธโฃ Test System:
pytest tests/
๐ setup.py (For Packaging SDK)
from setuptools import setup, find_packages
setup(
name="mcp_sdk",
version="1.0",
packages=find_packages(),
install_requires=[
"fastapi",
"uvicorn",
"torch",
"transformers",
"sacrebleu",
"requests",
"pytest",
"gitpython",
],
author="Your Name",
description="MCP SDK for API-to-cURL Model Automation",
license="MIT"
)
โ Final Steps
1๏ธโฃ Install dependencies
pip install -r requirements.txt
2๏ธโฃ Start MCP Server
bash scripts/start_mcp.sh
3๏ธโฃ Run AI Automation
python src/ai_autonomous_dev.py
4๏ธโฃ Test System
pytest tests/
Fix uvicorn: command not found
The error indicates that uvicorn is not installed or not in the system path.
โ Solution 1: Install Uvicorn
pip install uvicorn
โ Solution 2: Ensure Virtual Environment is Activated
source /Users/umasankars/PycharmProjects/CapstoneMCPserver/venv/bin/activate
pip install -r requirements.txt
โ Solution 3: Explicitly Call Python for Uvicorn
Modify scripts/start_mcp.sh to:
#!/bin/bash
echo "๐ Starting MCP Server..."
/Users/umasankars/PycharmProjects/CapstoneMCPserver/venv/bin/python -m uvicorn src.mcp_server:app --reload
Final Steps
After applying the fixes, restart everything:
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
bash scripts/start_mcp.sh
๐ Now the system is fully organized and self-learning! ๐ฏ
Similar Resources
Developer Tools