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
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.
21 lines
563 B
Go
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
|
|
}
|