GitHub Actions Integration

Automate MCP server generation in your CI/CD pipeline with CodeGlide's GitHub Action

Overview

CodeGlide provides a powerful GitHub Action that integrates seamlessly into your existing workflows. This action automatically generates MCP servers from your API source code during the build process, providing both downloadable artifacts and integrated pull requests back to your repository.

- name: CodeGlide MCP Generator
  uses: CodeGlide/codeglide-mcpgen@v1.0.5
  with:
    input_directory: ${{ inputs.input_directory }}
    create_pr: ${{ inputs.create_pr }}
    create_branch_and_commit: ${{ inputs.create_branch_and_commit }}

Available on GitHub Marketplace

The CodeGlide MCP Generator Action is officially released and available for immediate use in your workflows.

View on GitHub Marketplace

Workflow Configuration Steps

Follow these steps to integrate CodeGlide MCP Generator into your GitHub Actions workflow. We have successfully generated MCP servers for 20+ public APIs including Google, Slack, Stripe, Twilio, and more, all available in our MCP Artifactory repository. You can use these as references to create your own MCP servers.

1

Add CodeGlide MCP Generator to Your Workflow

Start from your repository's Actions tab and create a new workflow file:

  • Navigate to ActionsNew workflow
  • Search for "CodeGlide MCP Generator" in the Marketplace
  • Click Use it to auto-insert the step into your workflow
Step 1: Navigate to Actions tab Step 2: Search for CodeGlide MCP Generator

Alternative: Copy step from the Marketplace release page and paste into your workflow

2

Configure Workflow Inputs

Set the required inputs for the CodeGlide action:

  • input_directory: Specify the directory containing your API source code (defaults to './')
  • create_pr: Set to true to automatically create a pull request
  • create_branch_and_commit: Set to true to create a new branch and commit changes
Step 3: Configure workflow inputs
Best Practice: Define inputs as workflow variables so they can be set during runtime from the Actions console, making your workflow more flexible and reusable.

Alternatively: You can define the inputs directly in the workflow file as shown below:

- name: CodeGlide MCP Generator
  uses: CodeGlide/codeglide-mcpgen@v1.0.5
  with:
    input_directory: 'src/api'
    create_pr: true
    create_branch_and_commit: true
3

Run the Workflow

After saving your workflow file, execute it:

  • Go to the Actions tab and select your workflow
  • Choose the input directory at runtime (defaults to current directory '.')
  • Optionally choose to create PR or separate branch
  • If no branch/PR is chosen, the MCP server will be downloadable artifact by default
  • Click Run workflow button
Step 3: Configure workflow inputs
4

View and Use the Results

Wait for the workflow to complete, Workflow shows logs and statuses for each step below:

Step 4: Run workflow execution
  • Repository Analysis: Analyze your repository and process the specified input directory
  • Swagger Generation: Use existing Swagger configuration or generate new OpenAPI specifications
  • API Detection: Detect API endpoints and generate MCP server
  • Language Conversion: Convert generated MCP server to API source code language
  • Output Generation: Create downloadable artifact or integrated pull request
Step 4: Run workflow execution

This process supports continuous MCP generation.

MCP Artifactory - Reference Implementations

Explore our collection of pre-generated MCP servers for popular public APIs to understand the quality and structure of CodeGlide's output:

20+ Pre-built MCP Servers

We've successfully generated MCP servers for major APIs including Google, Slack, Stripe, Twilio, and many more. All implementations are available in our open-source MCP Artifactory repository.

Browse MCP Artifactory

Popular API Integrations

  • Google APIs - Gmail, Calendar, Drive, Sheets
  • Communication - Slack, Discord, WhatsApp
  • Payment & Finance - Stripe, PayPal, Coinbase
  • Cloud Services - AWS, Azure, Google Cloud

Key Features

CodeGlide's GitHub Action provides powerful capabilities for automated MCP server generation:

Fast Generation

Creates MCP servers in seconds from your existing API source code

Swagger Integration

Automatically generates Swagger/OpenAPI specifications from your source code

Input Configuration

  • input_directory - Directory containing API source code (defaults to root './')
  • Custom paths - Specify subdirectories like './api/', './src/'

Configurable input directory with intelligent API pattern detection

Artifact Output

  • create_pr - Automatically create a pull request with generated code
  • create_branch_and_commit - Create new branch and commit changes

Provides downloadable generated-mcp artifact containing your MCP server

Languange Conversion

Converts your MCP server code to API source code language

Display API/tools and Git leak analytics

Displays API/tools and Git leak analytics

Advanced Workflow Examples

Multi-Directory MCP Generation

Generate MCP servers from different API directories in your monorepo:

name: Multi-Directory MCP Generation

on:
  push:
    branches: [ main ]

jobs:
  generate-api-mcp:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: CodeGlide/codeglide-mcpgen@v1.0.5
      with:
        input_directory: './api/'
        create_pr: true
        create_branch_and_commit: true
        
  generate-services-mcp:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: CodeGlide/codeglide-mcpgen@v1.0.5
      with:
        input_directory: './services/'
        create_pr: true
        create_branch_and_commit: true

Conditional MCP Generation

Generate MCP servers only when specific files change:

name: Conditional MCP Generation



jobs:
  generate-mcp:
    runs-on: ubuntu-latest
    if: contains(github.event.head_commit.message, 'api') || contains(github.event.head_commit.message, 'mcp')
    steps:
    - uses: actions/checkout@v4
    - uses: CodeGlide/codeglide-mcpgen@v1.0.5
      with:
        input_directory: './'
        create_pr: true
        create_branch_and_commit: true

Need Help?

Have questions about integrating CodeGlide with GitHub Actions? Our team is here to help you get up and running quickly.