MCP ExplorerExplorer

Yc Mcp Gen

@daniel1limaon a month ago
1 MIT
FreeCommunity
AI Systems
FastAPI implementation for Gumloop API integration with async endpoints.

Overview

What is Yc Mcp Gen

yc-mcp-gen is a FastAPI implementation designed for integrating with the Gumloop API, providing asynchronous endpoints for managing Gumloop flows and OpenAPI specifications.

Use cases

Use cases for yc-mcp-gen include automating workflows in applications, fetching and processing data from GitHub, and managing OpenAPI specifications for API documentation.

How to use

To use yc-mcp-gen, install the required dependencies with ‘pip install -r requirements.txt’, set up your environment variables in a ‘.env’ file, and start the FastAPI server using ‘uvicorn src.server:app --reload’.

Key features

Key features include async/await support for enhanced performance, automatic API documentation generation with Swagger UI and ReDoc, type safety with Pydantic models, support for both YAML and JSON request bodies, CORS middleware, comprehensive error handling, and environment variable management.

Where to use

yc-mcp-gen can be used in web development projects that require integration with the Gumloop API, particularly in applications that need to manage workflows and API specifications asynchronously.

Content

Gumloop FastAPI Integration

This is a FastAPI implementation of the Gumloop API integration, providing async endpoints for managing Gumloop flows and OpenAPI specifications.

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables (create a .env file):
GUMLOOP_API_KEY=your_api_key
GUMLOOP_USER_ID=your_user_id
GUMLOOP_SAVED_ITEM_ID=your_saved_item_id

Running the Server

Start the FastAPI server:

uvicorn src.server:app --reload

The server will be available at http://localhost:8000

API Endpoints

Health Check

GET /health

Start Flow

POST /flow/start

Request body:

{
  "pipelineInputs": [
    {
      "input_name": "input",
      "value": "your input value"
    }
  ],
  "pollingIntervalMs": 2000,
  "timeoutMs": 300000
}

Fetch GitHub Raw Content

GET /api/fetch-github-raw?url={raw_github_url}

Process Full OpenAPI Specification

POST /api/full-spec

Request body: OpenAPI specification in JSON or YAML format

Features

  • Async/await support for better performance
  • Automatic API documentation with Swagger UI and ReDoc
  • Type safety with Pydantic models
  • YAML and JSON request body support
  • CORS middleware enabled
  • Comprehensive error handling
  • Environment variable management

API Documentation

Once the server is running, you can access:

  • Interactive API docs (Swagger UI): http://localhost:8000/docs
  • Alternative API docs (ReDoc): http://localhost:8000/redoc

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers