mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-11-06 16:05:21 +00:00
* feat: add MCP error metadata handling and improve source policy resolution * fix: adjust height-diff for improved table layout
11 lines
218 B
Go
11 lines
218 B
Go
package middleware
|
|
|
|
import (
|
|
"github.com/1Panel-dev/1Panel/core/utils/mcpapi"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func MCPLogPolicy(c *gin.Context) bool {
|
|
return mcpapi.IsRequest(c.Request) && c.GetBool("MCP_API_AUTH")
|
|
}
|