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 ¶
- func RegisterHelloWorld(server *mcp.Server)
- func RegisterTempTLFFetch(server *mcp.Server)
- func RegisterUserInfo(server *mcp.Server)
- func SetTempTLFFetchConfig(cfg *TempTLFFetchConfig)
- func SetUserInfoConfig(cfg *UserInfoConfig)
- type HelloWorldArgs
- type TempTLFFetchArgs
- type TempTLFFetchConfig
- type UserInfoArgs
- type UserInfoConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHelloWorld ¶
RegisterHelloWorld registers the hello_world tool with the MCP server.
func RegisterTempTLFFetch ¶
RegisterTempTLFFetch registers the temp_tlf_fetch tool with the MCP server.
func RegisterUserInfo ¶
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.