api-to-curl-mcp-server

S-Umasankar/api-to-curl-mcp-server

3.2

If you are the rightful owner of api-to-curl-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

MCP-AI is an autonomous AI system designed to convert API documentation into cURL commands.

šŸš€ 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! šŸŽÆ