Provides examples for testing API endpoints and backend connectivity using curl commands
Built on Node.js runtime for executing the MCP server and managing API integrations
Distributed and installed through npm package manager for easy deployment
Integrates with PHP backend APIs for endpoint documentation and testing
Enables AI-powered generation of React components based on documented API endpoints
Provides TypeScript examples for endpoint creation and API integration workflows
GASSAPI MCP v2
Model Context Protocol (MCP) server untuk integrasi GASSAPI dengan AI assistants.
🚀 Quick Start
Prerequisites
Node.js >= 16.0.0
npm atau yarn
Akses ke GASSAPI backend
📦 Installation
Step 1: Install Package
Step 2: Installation Method
Method 1: Global Install (Recommended)
Method 2: Local Install
📋 Simple Setup (3 Steps)
Step 1: Login ke GASSAPI Backend
Login ke backend GASSAPI untuk mendapatkan access token:
Step 2: Dapatkan Project ID
List projects untuk mendapatkan project ID:
Step 3: Buat gassapi.json File
Buat file gassapi.json di working directory Anda dengan template:
Ganti dengan:
YOUR_PROJECT_ID_HERE→ Project ID dari Step 2YOUR_TOKEN_HERE→ Token dari Step 1
Note: Base URL sudah hardcoded ke http://mapi.gass.web.id - tidak perlu konfigurasi API URL.
✅ Verification
Test MCP Server
Claude Code Integration
🛠️ Development
Local Development
🔧 Configuration Format
gassapi.json Structure
Note: Base URL sudah hardcoded ke http://mapi.gass.web.id - tidak perlu api_base_url configuration.
Auto-Detection
MCP server akan otomatis mencari gassapi.json di:
Current working directory
Parent directories (hingga 5 levels up)
🛠️ Available MCP Tools
Authentication & Project Context
get_project_context- Get project info with environments and foldershealth_check- Check MCP server status
Environment Management
list_environments- List all environmentsget_environment_details- Get detailed environment infocreate_environment- Create new environmentupdate_environment_variables- Update environment variablesset_default_environment- Set default environmentdelete_environment- Delete environment
Folder Management
list_folders- List project folderscreate_folder- Create new folderupdate_folder- Update folder detailsmove_folder- Move folder to different parentdelete_folder- Delete folderget_folder_details- Get folder details
Endpoint Management
list_endpoints- List all endpointsget_endpoint_details- Get detailed endpoint configurationcreate_endpoint- Create endpoint with semantic contextupdate_endpoint- Update endpoint configuration
Flow Management
create_flow- Create automation flowexecute_flow- Execute flowget_flow_details- Get flow detailslist_flows- List all flowsdelete_flow- Delete flow
Testing Tools
test_endpoint- Test single endpointtest_multiple_endpoints- Test multiple endpointscreate_test_suite- Create test suitelist_test_suites- List test suites
📝 Endpoint Documentation & Cataloging
Mencatat Endpoint yang Sudah Ada
Workflow: Backend → MCP Documentation → AI Frontend
1. Backend Developer:
2. Documentation Team:
3. AI Frontend Team:
Contoh Endpoint User Registration dengan Semantic Context
Semantic Fields untuk AI Understanding
Field | Type | Purpose | Example | AI Benefit |
| string | Business purpose (max 250 chars) | "User registration with email verification" | AI understands use case and generates appropriate UI flow |
| object | Parameter documentation |
| AI generates correct form fields with validation |
| object | Response field documentation |
| AI handles response data correctly in frontend code |
| object | Header documentation |
| AI includes proper headers in API calls |
🔧 Development
Build & Run
Testing
🔍 Configuration Format
gassapi.json Structure
Note: Base URL sudah hardcoded ke http://mapi.gass.web.id - tidak perlu api_base_url configuration.
Auto-Detection
MCP server akan otomatis mencari gassapi.json di:
Current working directory
Parent directories (hingga 5 levels up)
🚨 Troubleshooting
Common Issues
1. "No configuration found"
Pastikan
gassapi.jsonada di working directory atau parent directoryCek format JSON valid
2. "Invalid token"
Login kembali ke backend untuk dapat token baru
Pastikan token belum expired
3. "Backend unavailable"
Pastikan backend server sudah berjalan di
http://mapi.gass.web.idCheck koneksi internet dan firewall settings
4. MCP server not found
Install globally:
npm install -g gassapi-mcp2Atau gunakan npx:
npx gassapi-mcp2
Debug Commands
📞 Usage Examples
Basic Usage in Claude Code
Advanced Usage
🤝 Contributing
Fork repository
Create feature branch
Run tests:
npm testSubmit pull request
📄 License
MIT License
🎯 Key Benefits:
✅ Semantic context untuk AI understanding
✅ Real-time endpoint management
✅ Automated flow creation
✅ Comprehensive testing tools
✅ Easy integration dengan Claude Code/Cursor
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
Enables AI assistants to manage API endpoints, environments, and testing workflows through the GASSAPI backend. Provides semantic documentation tools for endpoint cataloging and automated flow creation for backend-to-frontend development workflows.