Skip to main content
Glama

mcp-1panel

Official
by 1Panel-dev
dashboard.go754 B
package system import ( "context" "github.com/modelcontextprotocol/go-sdk/mcp" "github.com/1Panel-dev/mcp-1panel/operations/types" "github.com/1Panel-dev/mcp-1panel/utils" ) const ( GetDashboardInfo = "get_dashboard_info" ) var GetDashboardInfoTool = mcp.NewServerTool[GetDashboardInfoInput, any]( GetDashboardInfo, "show dashboard info", func(ctx context.Context, _ *mcp.ServerSession, params *mcp.CallToolParamsFor[GetDashboardInfoInput]) (*mcp.CallToolResultFor[any], error) { client := utils.NewPanelClient("GET", "/dashboard/base/all/all") info := &types.DashboardRes{} result, err := client.Request(info) if result != nil { result.StructuredContent = info } return result, err }, ) type GetDashboardInfoInput struct{}

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/1Panel-dev/mcp-1panel'

If you have feedback or need assistance with the MCP directory API, please join our Discord server