CG

ckanthony/gin-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

85 stars 22 forks 质量 69 趋势 22MIT

ckanthony/gin-mcp 是从 https://github.com/ckanthony/gin-mcp. 导入的 MCP 服务器候选服务器。

概览

ckanthony/gin-mcp 是从 https://github.com/ckanthony/gin-mcp. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

只需一行代码,即可为任何 Gin API 启用 MCP 功能。

Gin-MCP 是一个带有主观色彩的零配置库,自动将您现有的 Gin 端点作为模型上下文协议(MCP)工具暴露,使其可即时被兼容 MCP 的客户端如 Cursor、Claude Desktop、Continue、Zed 及其他支持 MCP 的工具使用。

我们的理念很简单:最少的设置,最大化生产力。只需将Gin-MCP插入您的Gin应用,它就能处理剩下的一切。

为什么是Gin-MCP?

  • 轻松集成: 将你的 Gin API 连接到 MCP 客户端,无需编写繁琐的模板代码。
  • 零配置(默认): 立即开始。Gin-MCP 自动发现路由并推断模式。
  • 开发者生产力: 减少配置工具的时间,多花时间构建功能。
  • 灵活性: 虽然默认为零配置,但可根据需要定制模式和端点暴露。
  • 现有API: 与你现有的Gin API兼容——无需更改任何代码。

演示

特色

  • 自动发现: 智能地查找所有注册的杜松子酒路线。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Gin-MCP: Zero-Config Gin to MCP Bridge

Why Gin-MCP?

  • Effortless Integration: Connect your Gin API to MCP clients without writing tedious boilerplate code.
  • Zero Configuration (by default): Get started instantly. Gin-MCP automatically discovers routes and infers schemas.
  • Developer Productivity: Spend less time configuring tools and more time building features.
  • Flexibility: While zero-config is the default, customize schemas and endpoint exposure when needed.
  • Existing API: Works with your existing Gin API - no need to change any code.

Demo

Features

  • Automatic Discovery: Intelligently finds all registered Gin routes.
  • Schema Inference: Automatically generates MCP tool schemas from route parameters and request/response types (where possible).
  • Direct Gin Integration: Mounts the MCP server directly onto your existing gin.Engine.
  • Parameter Preservation: Accurately reflects your Gin route parameters (path, query) in the generated MCP tools.
  • Dynamic BaseURL Resolution: Support for proxy environments (Quicknode, RAGFlow) with per-user/deployment endpoints.
  • Customizable Schemas: Manually register schemas for specific routes using RegisterSchema for fine-grained control.
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →