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 ¶
- func RegisterGetCommittee(server *mcp.Server)
- func RegisterGetCommitteeMember(server *mcp.Server)
- func RegisterGetMailingList(server *mcp.Server)
- func RegisterGetMailingListMember(server *mcp.Server)
- func RegisterGetMailingListService(server *mcp.Server)
- func RegisterGetMembership(server *mcp.Server)
- func RegisterGetMembershipContacts(server *mcp.Server)
- func RegisterGetProject(server *mcp.Server)
- func RegisterHelloWorld(server *mcp.Server)
- func RegisterSearchCommitteeMembers(server *mcp.Server)
- func RegisterSearchCommittees(server *mcp.Server)
- func RegisterSearchMailingListMembers(server *mcp.Server)
- func RegisterSearchMailingLists(server *mcp.Server)
- func RegisterSearchMemberships(server *mcp.Server)
- func RegisterSearchProjects(server *mcp.Server)
- func RegisterUserInfo(server *mcp.Server)
- func SetCommitteeConfig(cfg *CommitteeConfig)
- func SetMailingListConfig(cfg *MailingListConfig)
- func SetMembershipConfig(cfg *MembershipConfig)
- func SetProjectConfig(cfg *ProjectConfig)
- func SetUserInfoConfig(cfg *UserInfoConfig)
- type CommitteeConfig
- type GetCommitteeArgs
- type GetCommitteeMemberArgs
- type GetMailingListArgs
- type GetMailingListMemberArgs
- type GetMailingListServiceArgs
- type GetMembershipArgs
- type GetMembershipContactsArgs
- type GetProjectArgs
- type HelloWorldArgs
- type MailingListConfig
- type MembershipConfig
- type ProjectConfig
- type SearchCommitteeMembersArgs
- type SearchCommitteesArgs
- type SearchMailingListMembersArgs
- type SearchMailingListsArgs
- type SearchMembershipsArgs
- type SearchProjectsArgs
- type UserInfoArgs
- type UserInfoConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGetCommittee ¶ added in v0.1.1
RegisterGetCommittee registers the get_committee tool with the MCP server.
func RegisterGetCommitteeMember ¶ added in v0.1.1
RegisterGetCommitteeMember registers the get_committee_member tool with the MCP server.
func RegisterGetMailingList ¶ added in v0.2.0
RegisterGetMailingList registers the get_mailing_list tool with the MCP server.
func RegisterGetMailingListMember ¶ added in v0.2.0
RegisterGetMailingListMember registers the get_mailing_list_member tool with the MCP server.
func RegisterGetMailingListService ¶ added in v0.2.0
RegisterGetMailingListService registers the get_mailing_list_service tool with the MCP server.
func RegisterGetMembership ¶ added in v0.2.1
RegisterGetMembership registers the get_membership tool with the MCP server.
func RegisterGetMembershipContacts ¶ added in v0.2.1
RegisterGetMembershipContacts registers the get_membership_contacts tool with the MCP server.
func RegisterGetProject ¶ added in v0.1.0
RegisterGetProject registers the get_project tool with the MCP server.
func RegisterHelloWorld ¶
RegisterHelloWorld registers the hello_world tool with the MCP server.
func RegisterSearchCommitteeMembers ¶ added in v0.1.1
RegisterSearchCommitteeMembers registers the search_committee_members tool with the MCP server.
func RegisterSearchCommittees ¶ added in v0.1.1
RegisterSearchCommittees registers the search_committees tool with the MCP server.
func RegisterSearchMailingListMembers ¶ added in v0.2.0
RegisterSearchMailingListMembers registers the search_mailing_list_members tool with the MCP server.
func RegisterSearchMailingLists ¶ added in v0.2.0
RegisterSearchMailingLists registers the search_mailing_lists tool with the MCP server.
func RegisterSearchMemberships ¶ added in v0.2.1
RegisterSearchMemberships registers the search_memberships tool with the MCP server.
func RegisterSearchProjects ¶ added in v0.1.0
RegisterSearchProjects registers the search_projects tool with the MCP server.
func RegisterUserInfo ¶
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 SetMailingListConfig ¶ added in v0.2.0
func SetMailingListConfig(cfg *MailingListConfig)
SetMailingListConfig sets the configuration for mailing list tools.
func SetMembershipConfig ¶ added in v0.2.1
func SetMembershipConfig(cfg *MembershipConfig)
SetMembershipConfig sets the configuration for membership 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 GetMailingListArgs ¶ added in v0.2.0
type GetMailingListArgs struct {
UID string `json:"uid" jsonschema:"The v2 UID of the mailing list to retrieve"`
}
GetMailingListArgs defines the input parameters for the get_mailing_list tool.
type GetMailingListMemberArgs ¶ added in v0.2.0
type GetMailingListMemberArgs struct {
MailingListUID string `json:"mailing_list_uid" jsonschema:"The v2 UID of the mailing list"`
MemberUID string `json:"member_uid" jsonschema:"The v2 UID of the mailing list member"`
}
GetMailingListMemberArgs defines the input parameters for the get_mailing_list_member tool.
type GetMailingListServiceArgs ¶ added in v0.2.0
type GetMailingListServiceArgs struct {
UID string `json:"uid" jsonschema:"The v2 UID of the mailing list service to retrieve"`
}
GetMailingListServiceArgs defines the input parameters for the get_mailing_list_service tool.
type GetMembershipArgs ¶ added in v0.2.1
type GetMembershipArgs struct {
UID string `json:"uid" jsonschema:"The UID of the membership to retrieve"`
}
GetMembershipArgs defines the input parameters for the get_membership tool.
type GetMembershipContactsArgs ¶ added in v0.2.1
type GetMembershipContactsArgs struct {
UID string `json:"uid" jsonschema:"The UID of the membership to get contacts for"`
}
GetMembershipContactsArgs defines the input parameters for the get_membership_contacts 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 MailingListConfig ¶ added in v0.2.0
type MailingListConfig struct {
LFXAPIURL string
TokenExchangeClient *lfxv2.TokenExchangeClient
DebugLogger *slog.Logger
}
MailingListConfig holds configuration shared by mailing list tools.
type MembershipConfig ¶ added in v0.2.1
type MembershipConfig struct {
LFXAPIURL string
TokenExchangeClient *lfxv2.TokenExchangeClient
DebugLogger *slog.Logger
}
MembershipConfig holds configuration shared by membership tools.
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,omitempty" jsonschema:"Optional v2 UID of the committee to filter members by"`
ProjectUID string `` /* 148-byte string literal not displayed */
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 SearchMailingListMembersArgs ¶ added in v0.2.0
type SearchMailingListMembersArgs struct {
MailingListUID string `json:"mailing_list_uid,omitempty" jsonschema:"Optional v2 UID of the mailing list to filter members by"`
ProjectUID string `json:"project_uid,omitempty" jsonschema:"Optional v2 project UID to filter mailing list members by project"`
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)"`
PageToken string `json:"page_token,omitempty" jsonschema:"Opaque pagination token from a previous search response"`
}
SearchMailingListMembersArgs defines the input parameters for the search_mailing_list_members tool.
type SearchMailingListsArgs ¶ added in v0.2.0
type SearchMailingListsArgs struct {
Name string `json:"name,omitempty" jsonschema:"Name or partial name of the mailing list to search for"`
ProjectUID string `` /* 144-byte string literal not displayed */
PageSize int `json:"page_size,omitempty" jsonschema:"Number of results per page (default 10)"`
PageToken string `json:"page_token,omitempty" jsonschema:"Opaque pagination token from a previous search response"`
}
SearchMailingListsArgs defines the input parameters for the search_mailing_lists tool.
type SearchMembershipsArgs ¶ added in v0.2.1
type SearchMembershipsArgs struct {
Status string `json:"status,omitempty" jsonschema:"Filter by membership status (e.g. active, expired)"`
MembershipType string `json:"membership_type,omitempty" jsonschema:"Filter by membership type"`
AccountID string `json:"account_id,omitempty" jsonschema:"Filter by account ID"`
ProjectID string `json:"project_id,omitempty" jsonschema:"Filter by project ID"`
ProductID string `json:"product_id,omitempty" jsonschema:"Filter by product ID"`
Year string `json:"year,omitempty" jsonschema:"Filter by membership year"`
Tier string `json:"tier,omitempty" jsonschema:"Filter by membership tier"`
ContactID string `json:"contact_id,omitempty" jsonschema:"Filter by contact ID"`
AutoRenew string `json:"auto_renew,omitempty" jsonschema:"Filter by auto-renew status (true or false)"`
PageSize int `json:"page_size,omitempty" jsonschema:"Number of results per page (default 10)"`
Offset int `json:"offset,omitempty" jsonschema:"Offset into the total result list (default 0)"`
}
SearchMembershipsArgs defines the input parameters for the search_memberships 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.