Skip to main content
Glama

mcp-1panel

Official
by 1Panel-dev
info.go771 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 ( GetSystemInfo = "get_system_info" ) var GetSystemInfoTool = mcp.NewServerTool[GetSystemInfoInput, any]( GetSystemInfo, "show host system information, The unit of diskSize is bytes", func(ctx context.Context, _ *mcp.ServerSession, params *mcp.CallToolParamsFor[GetSystemInfoInput]) (*mcp.CallToolResultFor[any], error) { client := utils.NewPanelClient("GET", "/dashboard/base/os") osInfo := &types.OsInfoRes{} result, err := client.Request(osInfo) if result != nil { result.StructuredContent = osInfo } return result, err }, ) type GetSystemInfoInput 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