Skip to main content
Glama

Portainer MCP

Official
by portainer
zlib License
67
  • Linux
  • Apple
stack.go728 B
package models import ( "time" apimodels "github.com/portainer/client-api-go/v2/pkg/models" "github.com/portainer/portainer-mcp/pkg/portainer/utils" ) type Stack struct { ID int `json:"id"` Name string `json:"name"` CreatedAt string `json:"created_at"` EnvironmentGroupIds []int `json:"group_ids"` } func ConvertEdgeStackToStack(rawEdgeStack *apimodels.PortainereeEdgeStack) Stack { createdAt := time.Unix(rawEdgeStack.CreationDate, 0).Format(time.RFC3339) return Stack{ ID: int(rawEdgeStack.ID), Name: rawEdgeStack.Name, CreatedAt: createdAt, EnvironmentGroupIds: utils.Int64ToIntSlice(rawEdgeStack.EdgeGroups), } }

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/portainer/portainer-mcp'

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