tools

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 9 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 RegisterHelloWorld

func RegisterHelloWorld(server *mcp.Server)

RegisterHelloWorld registers the hello_world tool with the MCP server.

func RegisterTempTLFFetch

func RegisterTempTLFFetch(server *mcp.Server)

RegisterTempTLFFetch registers the temp_tlf_fetch tool with the MCP server.

func RegisterUserInfo

func RegisterUserInfo(server *mcp.Server)

RegisterUserInfo registers the user_info tool with the MCP server.

func SetTempTLFFetchConfig

func SetTempTLFFetchConfig(cfg *TempTLFFetchConfig)

SetTempTLFFetchConfig sets the configuration for the temp_tlf_fetch tool.

func SetUserInfoConfig

func SetUserInfoConfig(cfg *UserInfoConfig)

SetUserInfoConfig sets the configuration for the user_info tool.

Types

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 TempTLFFetchArgs

type TempTLFFetchArgs struct{}

TempTLFFetchArgs defines the input parameters for the temp_tlf_fetch tool.

type TempTLFFetchConfig

type TempTLFFetchConfig struct {
	LFXAPIURL           string
	TokenExchangeClient *lfxv2.TokenExchangeClient
}

TempTLFFetchConfig holds configuration for the temp_tlf_fetch 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