avatar

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package avatar implements MCP tools for GitLab avatar retrieval.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatMarkdown

func FormatMarkdown(out GetOutput) string

FormatMarkdown formats the avatar output as markdown.

func RegisterMeta

func RegisterMeta(server *mcp.Server, client *gitlabclient.Client)

RegisterMeta registers the gitlab_avatar meta-tool.

func RegisterTools

func RegisterTools(server *mcp.Server, client *gitlabclient.Client)

RegisterTools registers all avatar tools with the MCP server.

Types

type GetInput

type GetInput struct {
	Email string `json:"email" jsonschema:"Email address to look up avatar for,required"`
	Size  int64  `json:"size" jsonschema:"Desired avatar size in pixels"`
}

GetInput contains parameters for getting an avatar URL.

type GetOutput

type GetOutput struct {
	toolutil.HintableOutput
	AvatarURL string `json:"avatar_url"`
}

GetOutput contains the avatar URL.

func Get

func Get(ctx context.Context, client *gitlabclient.Client, input GetInput) (GetOutput, error)

Get retrieves the avatar URL for an email address.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL