Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 43 min 30 sec ago

Show HN: Gin-MCP – Zero-config bridge to expose Gin APIs as MCP tools

Thu, 04/17/2025 - 2:26pm

I built gin-mcp to automatically expose existing Gin web APIs as Model Context Protocol (MCP) tools, making them usable by clients like Cursor with minimal effort.

It uses reflection on your *gin.Engine to discover endpoints and infers basic schemas for path and query parameters automatically. The idea is to be zero-configuration by default --- you add it to your existing Gin app, provide a BaseURL, mount the MCP handler (mcp.Mount("/mcp")), and your API becomes available as tools.

For more complex scenarios where inference isn't enough (e.g., specific struct validation, request body definitions), you can explicitly define schemas using mcp.RegisterSchema(method, path, querySchema, bodySchema). You can also filter which endpoints are exposed.

It aims to reduce the boilerplate needed to connect internal APIs to MCP-compatible AI tools, letting you leverage your existing backend services more easily.

Check out the repo for code, examples, and usage details: https://github.com/ckanthony/gin-mcp

Feedback is welcome!

Comments URL: https://news.ycombinator.com/item?id=43720476

Points: 1

# Comments: 0

Categories: Hacker News

N-Params vs. Single Param

Thu, 04/17/2025 - 2:23pm
Categories: Hacker News

Codex CLI fork

Thu, 04/17/2025 - 2:22pm

Article URL: https://github.com/ymichael/codex

Comments URL: https://news.ycombinator.com/item?id=43720451

Points: 1

# Comments: 0

Categories: Hacker News

What's Wrong with Standardized Tests

Thu, 04/17/2025 - 2:10pm
Categories: Hacker News

Pages