Hacker News

Subscribe to Hacker News feed
Hacker News RSS
Updated: 16 min 58 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

Show HN: I Built a Site to Track U.S. Tariff Updates in Real Time

Thu, 04/17/2025 - 1:27pm

Hi I'm Ryan, the creator of Tariffstatus.com.

I woke up wondering what tariffs were active and what was scheduled. However, when I started searching the web, it was a quagmire of news sites and long articles that didn't give me a simple and clear answer - the government sites were even worse. Also, I imagine they will be constantly changing. I wanted this for myself, but I'm also hopeful it helps others. I plan to keep it up to date. Many of these tariffs are having and will have a significant impact on both consumers and business owners.

Trying to bring a bit of order to the chaos!

I’d love to hear your feedback, whether positive or negative and any other feature requests or improvements you'd like to see. Thanks so much!

p.s. I know that you could probably use AI/Perplexity to search for this information, but not everyone may know how to do that or has access to those tools.

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

Points: 1

# Comments: 0

Categories: Hacker News

Pages