tools

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package tools provides MCP tool implementations for the LFX MCP server.

Package tools provides MCP tool implementations for the LFX MCP server.

Package tools provides MCP tool implementations for the LFX MCP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGetProject added in v0.1.0

func RegisterGetProject(server *mcp.Server)

RegisterGetProject registers the get_project tool with the MCP server.

func RegisterHelloWorld

func RegisterHelloWorld(server *mcp.Server)

RegisterHelloWorld registers the hello_world tool with the MCP server.

func RegisterSearchProjects added in v0.1.0

func RegisterSearchProjects(server *mcp.Server)

RegisterSearchProjects registers the search_projects tool with the MCP server.

func RegisterUserInfo

func RegisterUserInfo(server *mcp.Server)

RegisterUserInfo registers the user_info tool with the MCP server.

func SetProjectConfig added in v0.1.0

func SetProjectConfig(cfg *ProjectConfig)

SetProjectConfig sets the configuration for project tools.

func SetUserInfoConfig

func SetUserInfoConfig(cfg *UserInfoConfig)

SetUserInfoConfig sets the configuration for the user_info tool.

Types

type GetProjectArgs added in v0.1.0

type GetProjectArgs struct {
	UID string `json:"uid" jsonschema:"The v2 UID of the project to retrieve"`
}

GetProjectArgs defines the input parameters for the get_project tool.

type HelloWorldArgs

type HelloWorldArgs struct {
	Name    string `json:"name,omitempty" jsonschema:"Name to greet (optional, defaults to 'World')"`
	Message string `json:"message,omitempty" jsonschema:"Custom greeting message (optional)"`
}

HelloWorldArgs defines the input parameters for the hello_world tool.

type ProjectConfig added in v0.1.0

type ProjectConfig struct {
	LFXAPIURL           string
	TokenExchangeClient *lfxv2.TokenExchangeClient
	DebugLogger         *slog.Logger
}

ProjectConfig holds configuration shared by project tools.

type SearchProjectsArgs added in v0.1.0

type SearchProjectsArgs struct {
	Name      string `json:"name" jsonschema:"Name or partial name of the project to search for"`
	PageSize  int    `json:"page_size,omitempty" jsonschema:"Number of results per page (default 10, max 100)"`
	PageToken string `json:"page_token,omitempty" jsonschema:"Opaque pagination token from a previous search response"`
}

SearchProjectsArgs defines the input parameters for the search_projects tool.

type UserInfoArgs

type UserInfoArgs struct {
}

UserInfoArgs defines the input parameters for the user_info tool.

type UserInfoConfig

type UserInfoConfig struct {
	UserInfoEndpoint string // Full userinfo endpoint URL (e.g., https://example.auth0.com/userinfo).
	HTTPClient       *http.Client
}

UserInfoConfig holds configuration for the user_info tool.

Jump to

Keyboard shortcuts

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