Skip to main content
Glama

Portainer MCP

Official
by portainer
zlib License
67
  • Linux
  • Apple
group.go646 B
package models import ( apimodels "github.com/portainer/client-api-go/v2/pkg/models" "github.com/portainer/portainer-mcp/pkg/portainer/utils" ) type Group struct { ID int `json:"id"` Name string `json:"name"` EnvironmentIds []int `json:"environment_ids"` TagIds []int `json:"tag_ids"` } func ConvertEdgeGroupToGroup(rawEdgeGroup *apimodels.EdgegroupsDecoratedEdgeGroup) Group { return Group{ ID: int(rawEdgeGroup.ID), Name: rawEdgeGroup.Name, EnvironmentIds: utils.Int64ToIntSlice(rawEdgeGroup.Endpoints), TagIds: utils.Int64ToIntSlice(rawEdgeGroup.TagIds), } }

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