Documentation
¶
Overview ¶
Package ginadapter exposes a live *gin.Engine as an api2mcp Source, for embedded mode: mount an MCP endpoint inside an existing Gin app without a separate process or an OpenAPI spec.
r := gin.Default()
// ... your routes ...
src := ginadapter.New(r)
srv := api2mcp.New(src, api2mcp.WithBaseURL("http://localhost:8080"), api2mcp.ReadOnly())
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.