Confidential guide on numerology and astrology, based of GG33 Public information

MCP-Gateway2
MCP-Gateway es un servicio que proporciona capacidades de administración unificada de MCP Server, que ayuda a los agentes de IA a conectarse rápidamente a varias fuentes de datos. A través del servidor MCP, los agentes de IA pueden acceder fácilmente a las bases de datos, las API REST y otros servicios externos sin preocuparse por los detalles de conexión específicos.
3 years
Works with Finder
1
Github Watches
0
Github Forks
0
Github Stars
MCP-Gateway
MCP-Gateway is a service that provides MCP Server unified management capabilities, helping AI Agents quickly connect to various data sources. Through MCP Server, AI Agents can easily access databases, REST APIs, and other external services without worrying about specific connection details.
Features
- HTTP interface management: Support for exporting OpenAPI structures, converting HTTP to MCP Server YAML format, and versioning of interfaces.
- Convert curl commands to HTTP interfaces: Easily transform curl commands into properly formatted HTTP interfaces.
- Import/Export OpenAPI: Convert between HTTP interfaces and OpenAPI specifications for easy integration with existing API frameworks.
- MCP Server management: Support for managing MCP Server metadata, selecting multiple HTTP structures to update metadata, publishing MCP Servers (compiling to WebAssembly for dynamic loading), and version control.
- Routing management: Support for route configuration, such as matching
xxx/mcp-server/{name}
to MCP Server with name{name}
.
Architecture
MCP-Gateway consists of three core modules:
- HTTP Interface Management: Defines and manages API configurations.
- MCP Server Management: Manages MCP Server instances, compiles them to WebAssembly, and handles runtime execution.
- Routing Management: Manages routing rules for MCP Servers.
Getting Started
Prerequisites
- Go 1.19 or higher
- Git
Installation
-
Clone the repository:
git clone https://github.com/wangfeng/mcp-gateway2.git cd mcp-gateway2
-
Install dependencies:
go mod tidy
-
Run the server:
go run cmd/server/main.go
-
The server will start on port 8080 by default. You can customize the port by setting the
PORT
environment variable.
Testing
To test the API, run the test client:
go run test/client.go
This will:
- List available HTTP interfaces
- Create an MCP Server using one of the interfaces
- Compile the MCP Server to WebAssembly
- Activate the MCP Server
- Invoke a tool on the MCP Server
To test the curl conversion feature, run the curl test client:
go run test/curl/curl_client.go
This will:
- Convert several curl commands to HTTP interfaces
- Create an MCP Server using the converted interfaces
- Compile and activate the MCP Server
- Invoke a tool from the MCP Server
To test the OpenAPI conversion feature, run the OpenAPI test client:
go run test/openapi/openapi_client.go
This will:
- Export an existing HTTP interface to OpenAPI format
- Import a sample OpenAPI specification to create new HTTP interfaces
- Perform a round-trip conversion (export to OpenAPI and import back)
API Documentation
HTTP Interfaces
-
GET /api/http-interfaces
: List all HTTP interfaces -
GET /api/http-interfaces/:id
: Get a specific HTTP interface -
POST /api/http-interfaces
: Create a new HTTP interface -
PUT /api/http-interfaces/:id
: Update an HTTP interface -
DELETE /api/http-interfaces/:id
: Delete an HTTP interface -
GET /api/http-interfaces/:id/versions
: Get all versions of an HTTP interface -
GET /api/http-interfaces/:id/versions/:version
: Get a specific version of an HTTP interface -
GET /api/http-interfaces/:id/openapi
: Export an HTTP interface to OpenAPI format -
POST /api/http-interfaces/from-curl
: Create a new HTTP interface from a curl command -
POST /api/http-interfaces/from-openapi
: Create new HTTP interfaces from an OpenAPI specification
MCP Servers
-
GET /api/mcp-servers
: List all MCP Servers -
GET /api/mcp-servers/:id
: Get a specific MCP Server -
POST /api/mcp-servers
: Create a new MCP Server from HTTP interfaces -
PUT /api/mcp-servers/:id
: Update an MCP Server -
DELETE /api/mcp-servers/:id
: Delete an MCP Server -
GET /api/mcp-servers/:id/versions
: Get all versions of an MCP Server -
GET /api/mcp-servers/:id/versions/:version
: Get a specific version of an MCP Server -
POST /api/mcp-servers/:id/compile
: Compile an MCP Server to WebAssembly -
POST /api/mcp-servers/:id/activate
: Activate an MCP Server -
POST /api/mcp-servers/:id/tools/:tool
: Invoke a tool in an MCP Server
Curl to HTTP Interface Conversion
The system supports converting curl commands to HTTP interfaces. Simply send a POST request to /api/http-interfaces/from-curl
with the following JSON body:
{
"command": "curl -H \"Content-Type: application/json\" https://api.example.com/resource",
"name": "example-api",
"description": "Example API endpoint"
}
The system will parse the curl command and create a properly formatted HTTP interface that can be used to create MCP Servers.
OpenAPI Conversion
Export to OpenAPI
You can export any HTTP interface to OpenAPI format by sending a GET request to /api/http-interfaces/:id/openapi
. The response will be a properly formatted OpenAPI 3.0.0 specification that can be used with other OpenAPI tools.
Import from OpenAPI
You can create new HTTP interfaces from an OpenAPI specification by sending a POST request to /api/http-interfaces/from-openapi
with the following JSON body:
go run test/openapi/openapi_client.go
{
"name": "my-api",
"description": "My API description",
"spec": {
"openapi": "3.0.0",
"info": {
"title": "Sample API",
"description": "A sample API",
"version": "1.0.0"
},
"paths": {
"/users": {
"get": {
"summary": "Get all users",
"responses": {
"200": {
"description": "A list of users"
}
}
}
}
}
}
}
The system will parse the OpenAPI specification and create HTTP interfaces for each path/operation combination.
License
MIT
References
相关推荐
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Take an adjectivised noun, and create images making it progressively more adjective!
I find academic articles and books for research and literature reviews.
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.
Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx
Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.
Un bot de chat de IA para equipos pequeños y medianos, que apoyan modelos como Deepseek, Open AI, Claude y Gemini. 专为中小团队设计的 ai 聊天应用 , 支持 Deepseek 、 Open ai 、 Claude 、 Géminis 等模型。
Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)
Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo
🔍 Habilitar asistentes de IA para buscar y acceder a la información del paquete PYPI a través de una interfaz MCP simple.
Reviews

user_nTBP3e70
I've been using the mcp-gateway2 for a while now, and I must say it's an outstanding tool! Developed by adcwa, it offers seamless gateway solutions that are incredibly reliable and efficient. The integration process was straightforward, and it perfectly fits into our existing infrastructure. Highly recommended for anyone seeking a robust and easy-to-use gateway application! Check it out on GitHub: https://github.com/adcwa/mcp-gateway2.