package controllers

import (
	"github.com/engigu/taskpool/internal/mcp"
	"github.com/gin-gonic/gin"
)

type MCPController struct{}

func NewMCPController() *MCPController {
	return &MCPController{}
}

// HandleMCP 处理 MCP 请求（StreamableHTTP）
func (c *MCPController) HandleMCP(ctx *gin.Context) {
	// 获取 MCP HTTP Handler 并处理请求
	handler := mcp.GetHTTPHandler()
	handler.ServeHTTP(ctx.Writer, ctx.Request)
}
