Files
gronod d40646211f
Build and publish / Test and build (darwin) (push) Failing after 1m42s
Build and publish / Test and build (linux) (push) Failing after 1m53s
Build and publish / Test and build (windows) (push) Failing after 2m50s
Build and publish / Build and publish Docker image (push) Skipped
Initial Go implementation of Emby.MCP
Go rewrite of the Python Emby.MCP server with tool parity (20 tools),
plus a streamable-HTTP transport with per-request Emby authentication
(Basic / Bearer token passthrough), a multi-arch Docker build, and a
Gitea CI workflow.
2026-09-20 22:52:46 +01:00

21 lines
563 B
Go

package emby
import "context"
// PublicInfo is the subset of GET /System/Info/Public we use.
type PublicInfo struct {
ID string `json:"Id"`
ServerName string `json:"ServerName"`
Version string `json:"Version"`
}
// GetPublicInfo fetches the server's public info; it works unauthenticated and
// is used as the connectivity check in HTTP mode.
func (c *Client) GetPublicInfo(ctx context.Context) (*PublicInfo, error) {
var pi PublicInfo
if err := c.Get(ctx, "/System/Info/Public", nil, &pi); err != nil {
return nil, err
}
return &pi, nil
}