tools

package
v0.1.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: 11 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.

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGetCommittee added in v0.1.1

func RegisterGetCommittee(server *mcp.Server)

RegisterGetCommittee registers the get_committee tool with the MCP server.

func RegisterGetCommitteeMember added in v0.1.1

func RegisterGetCommitteeMember(server *mcp.Server)

RegisterGetCommitteeMember registers the get_committee_member tool with the MCP server.

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 RegisterSearchCommitteeMembers added in v0.1.1

func RegisterSearchCommitteeMembers(server *mcp.Server)

RegisterSearchCommitteeMembers registers the search_committee_members tool with the MCP server.

func RegisterSearchCommittees added in v0.1.1

func RegisterSearchCommittees(server *mcp.Server)

RegisterSearchCommittees registers the search_committees 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 SetCommitteeConfig added in v0.1.1

func SetCommitteeConfig(cfg *CommitteeConfig)

SetCommitteeConfig sets the configuration for committee tools.

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 CommitteeConfig added in v0.1.1

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

CommitteeConfig holds configuration shared by committee tools.

type GetCommitteeArgs added in v0.1.1

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

GetCommitteeArgs defines the input parameters for the get_committee tool.

type GetCommitteeMemberArgs added in v0.1.1

type GetCommitteeMemberArgs struct {
	CommitteeUID string `json:"committee_uid" jsonschema:"The v2 UID of the committee"`
	MemberUID    string `json:"member_uid" jsonschema:"The v2 UID of the committee member"`
}

GetCommitteeMemberArgs defines the input parameters for the get_committee_member tool.

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 SearchCommitteeMembersArgs added in v0.1.1

type SearchCommitteeMembersArgs struct {
	CommitteeUID string `json:"committee_uid" jsonschema:"The v2 UID of the committee whose members to search"`
	Name         string `json:"name,omitempty" jsonschema:"Name or partial name of the member 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"`
}

SearchCommitteeMembersArgs defines the input parameters for the search_committee_members tool.

type SearchCommitteesArgs added in v0.1.1

type SearchCommitteesArgs struct {
	Name       string `json:"name,omitempty" jsonschema:"Name or partial name of the committee to search for"`
	ProjectUID string `` /* 141-byte string literal not displayed */
	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"`
}

SearchCommitteesArgs defines the input parameters for the search_committees tool.

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