tools

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 31 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

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.

This file defines "full view": which callers receive people records exactly as the upstream services return them, and how that decision reaches tool handlers. Every other caller gets what LFX Self Serve renders on screen to that same person (see people_visibility.go).

Package tools implements the MCP tool handlers 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.

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.

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.

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.

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

This file holds the rules that make people data match what LFX Self Serve shows on screen to a caller without full view (see full_view.go): the predicates, evaluated with the caller's own exchanged token, and the projections that reduce or drop records. Handlers decide the view before the upstream query and narrow the query to it, then select and project the records after it; a caller with full view never reaches them. The rules only ever remove records or fields, never add any.

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

This file holds the people rule for mailing-list members (see people_visibility.go for the shared principles): a caller without full view is shown the members of a mailing list only when it manages the list (writer) or audits it (auditor) on groupsio_mailing_list:<uid>, and its own subscriptions on any list, matched by username or e-mail as meeting registrants and participants are. That is the platform's intended rule; LFX Self Serve's screen currently shows a public list's members to any signed-in user, so on this point the MCP server follows the intended rule ahead of the platform fix.

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

This file holds the meeting half of the LFX Self Serve parity rules (see people_visibility.go): registrants of upcoming meetings, participants of past meetings, and the people fields of meeting, past-meeting, artifact and summary records.

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.

Package tools implements the MCP tool handlers for the LFX MCP server.

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

Index

Constants

View Source
const (
	// ScopeRead is required for tools that only read data (ReadOnlyHint == true).
	ScopeRead = "read:all"

	// ScopeManage is required for tools that mutate data (ReadOnlyHint defaults to false).
	ScopeManage = "manage:all"
)

Scope constants used to gate tool access based on the caller's JWT scopes. These MUST match the scopes defined on the Auth0 resource server for the LFX MCP API (see auth0-terraform resource_servers.tf, lfx_mcp_api).

View Source
const AnonymousUserID = "_anonymous"

AnonymousUserID is the sentinel user ID used when no authenticated user is present (e.g., stdio mode). Matches the convention used across LFX services such as Heimdall.

View Source
const ClaimClientID = "client_id"

ClaimClientID is the JWT claim holding the OAuth client identifier. For clients registered via a client ID metadata document (CIMD), the value is the metadata document URL rather than an opaque identifier.

View Source
const ClaimEmail = "http://lfx.dev/claims/email"

ClaimEmail is the namespaced JWT claim carrying the user's e-mail address. The CustomClaims Auth0 Action sets it for the MCP audience alongside ClaimLFStaff; it is the same address LFX Self Serve matches registrant and participant records on.

View Source
const ClaimLFStaff = "http://lfx.dev/claims/lf_staff"

ClaimLFStaff is the namespaced JWT claim that indicates the user is LF staff. This claim is set by the CustomClaims Auth0 Action based on LDAP group membership (lf-staff group). Uses the lfxPrefix namespace per convention.

View Source
const (
	// RelationWriter is required for tools that mutate project resources
	// (e.g., member onboarding).
	RelationWriter = "writer"
)

Relation constants for V2 access-check. These define what project-level relationship is required, enforced inside tool handlers via the V2 access-check endpoint (not at dispatch like MCP scopes).

Variables

View Source
var ManageScopeTools = map[string]bool{
	"create_committee":              true,
	"update_committee":              true,
	"update_committee_settings":     true,
	"delete_committee":              true,
	"create_committee_member":       true,
	"update_committee_member":       true,
	"delete_committee_member":       true,
	"create_membership_key_contact": true,
	"update_membership_key_contact": true,
	"delete_membership_key_contact": true,
	"create_meeting":                true,
	"update_meeting":                true,
	"delete_meeting":                true,
	"add_meeting_registrant":        true,
	"list_discord_roles":            true,
	"find_discord_role":             true,
	"find_discord_user":             true,
	"check_discord_user_role":       true,
	"assign_discord_role":           true,
	"list_email_templates":          true,
	"send_email":                    true,
}

ManageScopeTools is the set of tool names whose handlers mutate data and therefore require manage:all at call time. These tools are registered for every caller holding at least read:all (see newServer in main.go) rather than hidden from tools/list — clients can discover the tool and its schema up front, and only need to complete an OAuth step-up for manage:all when they actually attempt to call one. Enforcement happens in requireManageScopeHTTP (cmd/lfx-mcp-server/main.go), which returns an HTTP 403 with an insufficient_scope challenge for a caller lacking manage:all, instead of invoking the handler.

View Source
var PeopleToolNames = []string{
	"search_committee_members", "search_group_members",
	"get_committee_member", "get_group_member",
	"get_committee", "get_group",
	"search_meeting_registrants", "get_meeting_registrant",
	"search_meetings", "get_meeting",
	"search_past_meeting_participants", "get_past_meeting_participant",
	"search_past_meetings", "get_past_meeting",
	"search_past_meeting_summaries", "get_past_meeting_summary",
	"search_meeting_attachments",
	"search_mailing_list_members", "get_mailing_list_member",
}

PeopleToolNames are the tools whose results follow the people rule above, under both terminology modes. The tests in internal/tools walk every name (people_tools_registry_test.go) and cmd/lfx-mcp-server checks that every tool newServer registers is either here or declared in its nonPeopleTools with a reason (no people data, or out of this rule's scope), so a new tool cannot ship without that decision.

Functions

func ClientID added in v0.18.1

func ClientID(tokenInfo *auth.TokenInfo) string

ClientID returns the OAuth client identifier from the caller's token, or an empty string when unavailable (for example in stdio mode).

func DefaultScopes added in v0.3.1

func DefaultScopes() []string

DefaultScopes returns the set of scopes the server advertises via the OAuth Protected Resource Metadata endpoint, plus the standard OIDC scopes clients need for the authorization flow. Both read:all and manage:all are advertised: write tools are registered for every authenticated caller holding at least read:all, but their handlers require manage:all at call time and respond with a step-up error when it is missing. Advertising manage:all here lets a client request both scopes up front if it chooses to, or discover that manage:all exists at all — the per-call step-up error (not the PRM) is what tells a caller which scope it is missing for a specific tool.

This is also the fallback assumed for a scope-blind client (see IsScopeBlindClient) that presents a token carrying no MCP scope at all: such a client offers no consent UI to choose scopes from, so it is treated like any other client requesting the full advertised set, matching the default behavior every compliant client gets by requesting both scopes up front. Users rely on per-call "ask" policies for write tools regardless of how the scope was granted, not on withholding manage:all here.

func HasAnyScope added in v0.7.0

func HasAnyScope(tokenScopes, required []string) bool

HasAnyScope returns true if tokenScopes contains at least one of the required scopes.

func HasFullView added in v0.19.2

func HasFullView(ctx context.Context) bool

HasFullView reports the full-view flag stored by WithFullView. A context without the flag reports false: a handler reached without the middleware narrows what it returns rather than widening it.

func IsAPIKeyCaller added in v0.19.2

func IsAPIKeyCaller(tokenInfo *auth.TokenInfo) bool

IsAPIKeyCaller reports whether the request was authenticated with a static API key (lfxauth.APIKeyAuthExtraKey). Such callers are LF-configured service integrations that act upstream with the M2M token.

func IsFullViewCaller added in v0.19.2

func IsFullViewCaller(tokenInfo *auth.TokenInfo) bool

IsFullViewCaller reports whether tokenInfo receives people records as the upstream services return them. Staff callers do; so do static API-key callers, whose M2M principal holds no relations of its own and would otherwise match nothing. Everyone else gets the LFX Self Serve on-screen view. API-key callers are deliberately not staff for registration: the staff-only Lens tools stay absent for them.

func IsLFStaff added in v0.6.0

func IsLFStaff(tokenInfo *auth.TokenInfo) bool

IsLFStaff returns true if the authenticated user has the lf_staff custom claim set to true in their JWT. This claim is injected by an Auth0 Action based on LDAP group membership (lf-staff group).

func IsMachineAccount added in v0.18.4

func IsMachineAccount(tokenInfo *auth.TokenInfo) bool

IsMachineAccount returns true if the caller's token belongs to a machine (client-credentials/M2M) account rather than a human user, per the auth.MachineAccountExtraKey flag set at verification time. Auth0 never runs post-login Actions for client-credentials grants, so these tokens never carry the lf_staff claim regardless of which client they were issued to.

func IsScopeBlindClient added in v0.18.1

func IsScopeBlindClient(clientID string) bool

IsScopeBlindClient reports whether clientID belongs to a client known to ignore advertised scopes. Callers use this to decide whether a token carrying no MCP scope should be treated as having requested the advertised set.

func IsStaffCaller added in v0.19.2

func IsStaffCaller(tokenInfo *auth.TokenInfo) bool

IsStaffCaller reports whether tokenInfo is treated as LF staff for tool registration: no token at all (stdio, or HTTP with no auth servers), the lf_staff claim, or a machine (client-credentials) account. It is the single expression newServer's isStaff is written in terms of.

func RegisterAddMeetingRegistrant added in v0.21.0

func RegisterAddMeetingRegistrant(server *mcp.Server)

RegisterAddMeetingRegistrant registers the add_meeting_registrant tool with the MCP server.

func RegisterAssignDiscordRole added in v0.7.0

func RegisterAssignDiscordRole(server *mcp.Server)

RegisterAssignDiscordRole registers the assign_discord_role tool.

func RegisterAuditCommitteeCoverage added in v0.18.3

func RegisterAuditCommitteeCoverage(server *mcp.Server)

RegisterAuditCommitteeCoverage registers the audit_committee_coverage tool with the MCP server.

func RegisterCheckDiscordUserRole added in v0.7.0

func RegisterCheckDiscordUserRole(server *mcp.Server)

RegisterCheckDiscordUserRole registers the check_discord_user_role tool.

func RegisterCountLFXResources added in v0.17.0

func RegisterCountLFXResources(server *mcp.Server)

RegisterCountLFXResources registers the count_lfx_resources tool with the MCP server.

func RegisterCreateCommittee added in v0.3.0

func RegisterCreateCommittee(server *mcp.Server, asGroups bool)

RegisterCreateCommittee registers the create_committee (or create_group) tool with the MCP server. When asGroups is true, the tool is registered under the "create_group" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterCreateCommitteeMember added in v0.3.0

func RegisterCreateCommitteeMember(server *mcp.Server, asGroups bool)

RegisterCreateCommitteeMember registers the create_committee_member (or create_group_member) tool with the MCP server. When asGroups is true, the tool is registered under the "create_group_member" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterCreateMeeting added in v0.21.0

func RegisterCreateMeeting(server *mcp.Server, asGroups bool)

RegisterCreateMeeting registers the create_meeting tool with the MCP server.

func RegisterCreateMembershipKeyContact added in v0.4.0

func RegisterCreateMembershipKeyContact(server *mcp.Server)

RegisterCreateMembershipKeyContact registers the create_membership_key_contact tool with the MCP server.

func RegisterDeleteCommittee added in v0.3.0

func RegisterDeleteCommittee(server *mcp.Server, asGroups bool)

RegisterDeleteCommittee registers the delete_committee (or delete_group) tool with the MCP server. When asGroups is true, the tool is registered under the "delete_group" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterDeleteCommitteeMember added in v0.3.0

func RegisterDeleteCommitteeMember(server *mcp.Server, asGroups bool)

RegisterDeleteCommitteeMember registers the delete_committee_member (or delete_group_member) tool with the MCP server. When asGroups is true, the tool is registered under the "delete_group_member" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterDeleteMeeting added in v0.21.0

func RegisterDeleteMeeting(server *mcp.Server)

RegisterDeleteMeeting registers the delete_meeting tool with the MCP server.

func RegisterDeleteMembershipKeyContact added in v0.4.0

func RegisterDeleteMembershipKeyContact(server *mcp.Server)

RegisterDeleteMembershipKeyContact registers the delete_membership_key_contact tool with the MCP server.

func RegisterExploreSemanticLayer added in v0.12.0

func RegisterExploreSemanticLayer(server *mcp.Server)

RegisterExploreSemanticLayer registers the explore_lfx_semantic_layer tool.

func RegisterFindDiscordRole added in v0.7.0

func RegisterFindDiscordRole(server *mcp.Server)

RegisterFindDiscordRole registers the find_discord_role tool.

func RegisterFindDiscordUser added in v0.7.0

func RegisterFindDiscordUser(server *mcp.Server)

RegisterFindDiscordUser registers the find_discord_user tool.

func RegisterGetCommittee added in v0.1.1

func RegisterGetCommittee(server *mcp.Server, asGroups bool)

RegisterGetCommittee registers the get_committee (or get_group) tool with the MCP server. When asGroups is true, the tool is registered under the "get_group" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterGetCommitteeMember added in v0.1.1

func RegisterGetCommitteeMember(server *mcp.Server, asGroups bool)

RegisterGetCommitteeMember registers the get_committee_member (or get_group_member) tool with the MCP server. When asGroups is true, the tool is registered under the "get_group_member" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterGetMailingList added in v0.2.0

func RegisterGetMailingList(server *mcp.Server)

RegisterGetMailingList registers the get_mailing_list tool with the MCP server.

func RegisterGetMailingListMember added in v0.2.0

func RegisterGetMailingListMember(server *mcp.Server)

RegisterGetMailingListMember registers the get_mailing_list_member tool with the MCP server.

func RegisterGetMailingListService added in v0.2.0

func RegisterGetMailingListService(server *mcp.Server)

RegisterGetMailingListService registers the get_mailing_list_service tool with the MCP server.

func RegisterGetMeeting added in v0.2.4

func RegisterGetMeeting(server *mcp.Server)

RegisterGetMeeting registers the get_meeting tool with the MCP server.

func RegisterGetMeetingRegistrant added in v0.2.4

func RegisterGetMeetingRegistrant(server *mcp.Server)

RegisterGetMeetingRegistrant registers the get_meeting_registrant tool with the MCP server.

func RegisterGetMemberMembership added in v0.2.2

func RegisterGetMemberMembership(server *mcp.Server)

RegisterGetMemberMembership registers the get_member_membership tool with the MCP server.

func RegisterGetMembershipKeyContact added in v0.4.3

func RegisterGetMembershipKeyContact(server *mcp.Server)

RegisterGetMembershipKeyContact registers the get_membership_key_contact tool with the MCP server.

func RegisterGetMembershipKeyContacts added in v0.2.2

func RegisterGetMembershipKeyContacts(server *mcp.Server)

RegisterGetMembershipKeyContacts registers the get_membership_key_contacts tool with the MCP server.

func RegisterGetOrgCommitteeSeats added in v0.17.0

func RegisterGetOrgCommitteeSeats(server *mcp.Server)

RegisterGetOrgCommitteeSeats registers the get_org_committee_seats tool with the MCP server.

func RegisterGetPastMeeting added in v0.7.7

func RegisterGetPastMeeting(server *mcp.Server)

RegisterGetPastMeeting registers the get_past_meeting tool with the MCP server.

func RegisterGetPastMeetingParticipant added in v0.2.6

func RegisterGetPastMeetingParticipant(server *mcp.Server)

RegisterGetPastMeetingParticipant registers the get_past_meeting_participant tool with the MCP server.

func RegisterGetPastMeetingSummary added in v0.2.6

func RegisterGetPastMeetingSummary(server *mcp.Server)

RegisterGetPastMeetingSummary registers the get_past_meeting_summary 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 RegisterListDiscordRoles added in v0.7.0

func RegisterListDiscordRoles(server *mcp.Server)

RegisterListDiscordRoles registers the list_discord_roles tool.

func RegisterListEmailTemplates added in v0.7.0

func RegisterListEmailTemplates(server *mcp.Server)

RegisterListEmailTemplates registers the list_email_templates tool.

func RegisterQueryLFXLens added in v0.7.0

func RegisterQueryLFXLens(server *mcp.Server)

RegisterQueryLFXLens registers the query_lfx_lens tool.

func RegisterQuerySemanticLayer added in v0.12.0

func RegisterQuerySemanticLayer(server *mcp.Server)

RegisterQuerySemanticLayer registers the query_lfx_semantic_layer tool.

func RegisterSearchB2bOrgs added in v0.5.0

func RegisterSearchB2bOrgs(server *mcp.Server)

RegisterSearchB2bOrgs registers the search_b2b_orgs tool with the MCP server.

func RegisterSearchCommitteeMembers added in v0.1.1

func RegisterSearchCommitteeMembers(server *mcp.Server, asGroups bool)

RegisterSearchCommitteeMembers registers the search_committee_members (or search_group_members) tool with the MCP server. When asGroups is true, the tool is registered under the "search_group_members" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterSearchCommittees added in v0.1.1

func RegisterSearchCommittees(server *mcp.Server, asGroups bool)

RegisterSearchCommittees registers the search_committees (or search_groups) tool with the MCP server. When asGroups is true, the tool is registered under the "search_groups" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterSearchMailingListMembers added in v0.2.0

func RegisterSearchMailingListMembers(server *mcp.Server)

RegisterSearchMailingListMembers registers the search_mailing_list_members tool with the MCP server.

func RegisterSearchMailingLists added in v0.2.0

func RegisterSearchMailingLists(server *mcp.Server)

RegisterSearchMailingLists registers the search_mailing_lists tool with the MCP server.

func RegisterSearchMeetingAttachments added in v0.20.0

func RegisterSearchMeetingAttachments(server *mcp.Server)

RegisterSearchMeetingAttachments registers the search_meeting_attachments tool with the MCP server. The tool has one name in both terminology modes: nothing in it names a committee.

func RegisterSearchMeetingRegistrants added in v0.2.4

func RegisterSearchMeetingRegistrants(server *mcp.Server, asGroups bool)

RegisterSearchMeetingRegistrants registers the search_meeting_registrants tool with the MCP server. When asGroups is true, the tool description uses group-oriented language and the committee_uid parameter is renamed to group_uid; otherwise the standard committee terminology is used.

func RegisterSearchMeetings added in v0.2.4

func RegisterSearchMeetings(server *mcp.Server, asGroups bool)

RegisterSearchMeetings registers the search_meetings tool with the MCP server. When asGroups is true, the tool description uses group-oriented language and the committee_uid parameter is renamed to group_uid; otherwise the standard committee terminology is used.

func RegisterSearchMembers added in v0.2.2

func RegisterSearchMembers(server *mcp.Server)

RegisterSearchMembers registers the search_members tool with the MCP server.

func RegisterSearchPastMeetingParticipants added in v0.2.6

func RegisterSearchPastMeetingParticipants(server *mcp.Server, asGroups bool)

RegisterSearchPastMeetingParticipants registers the search_past_meeting_participants tool with the MCP server. When asGroups is true, the tool description uses group-oriented language and the committee_uid parameter is renamed to group_uid; otherwise the standard committee terminology is used.

func RegisterSearchPastMeetingSummaries added in v0.2.6

func RegisterSearchPastMeetingSummaries(server *mcp.Server)

RegisterSearchPastMeetingSummaries registers the search_past_meeting_summaries tool with the MCP server.

func RegisterSearchPastMeetings added in v0.7.7

func RegisterSearchPastMeetings(server *mcp.Server, asGroups bool)

RegisterSearchPastMeetings registers the search_past_meetings tool with the MCP server. When asGroups is true, the tool description uses group-oriented language and the committee_uid parameter is renamed to group_uid; otherwise the standard committee terminology is used.

func RegisterSearchProjects added in v0.1.0

func RegisterSearchProjects(server *mcp.Server)

RegisterSearchProjects registers the search_projects tool with the MCP server.

func RegisterSemanticLayerGuidance added in v0.14.0

func RegisterSemanticLayerGuidance(server *mcp.Server)

RegisterSemanticLayerGuidance registers the read_lfx_semantic_layer_guidance tool.

func RegisterSendEmail added in v0.7.0

func RegisterSendEmail(server *mcp.Server)

RegisterSendEmail registers the send_email tool.

func RegisterStandardMetrics added in v0.14.0

func RegisterStandardMetrics(server *mcp.Server)

RegisterStandardMetrics registers the query_lfx_standard_metrics tool.

func RegisterStandardMetricsGuidance added in v0.14.0

func RegisterStandardMetricsGuidance(server *mcp.Server)

RegisterStandardMetricsGuidance registers the read_lfx_standard_metrics_guidance tool.

func RegisterUpdateCommittee added in v0.3.0

func RegisterUpdateCommittee(server *mcp.Server, asGroups bool)

RegisterUpdateCommittee registers the update_committee (or update_group) tool with the MCP server. When asGroups is true, the tool is registered under the "update_group" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterUpdateCommitteeMember added in v0.3.0

func RegisterUpdateCommitteeMember(server *mcp.Server, asGroups bool)

RegisterUpdateCommitteeMember registers the update_committee_member (or update_group_member) tool with the MCP server. When asGroups is true, the tool is registered under the "update_group_member" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterUpdateCommitteeSettings added in v0.3.0

func RegisterUpdateCommitteeSettings(server *mcp.Server, asGroups bool)

RegisterUpdateCommitteeSettings registers the update_committee_settings (or update_group_settings) tool with the MCP server. When asGroups is true, the tool is registered under the "update_group_settings" name with group-oriented descriptions; otherwise the standard committee terminology is used.

func RegisterUpdateMeeting added in v0.21.0

func RegisterUpdateMeeting(server *mcp.Server, asGroups bool)

RegisterUpdateMeeting registers the update_meeting tool with the MCP server.

func RegisterUpdateMembershipKeyContact added in v0.4.0

func RegisterUpdateMembershipKeyContact(server *mcp.Server)

RegisterUpdateMembershipKeyContact registers the update_membership_key_contact 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 SetLensConfig added in v0.6.0

func SetLensConfig(cfg *LensConfig)

SetLensConfig sets the configuration for LFX Lens tools.

func SetMailingListConfig added in v0.2.0

func SetMailingListConfig(cfg *MailingListConfig)

SetMailingListConfig sets the configuration for mailing list tools.

func SetMeetingConfig added in v0.2.4

func SetMeetingConfig(cfg *MeetingConfig)

SetMeetingConfig sets the configuration for meeting tools.

func SetMemberConfig added in v0.2.2

func SetMemberConfig(cfg *MemberConfig)

SetMemberConfig sets the configuration for member tools.

func SetOnboardingConfig added in v0.6.0

func SetOnboardingConfig(cfg *OnboardingConfig)

SetOnboardingConfig sets the configuration for onboarding tools.

func SetOrgSeatsConfig added in v0.17.0

func SetOrgSeatsConfig(cfg *OrgSeatsConfig)

SetOrgSeatsConfig sets the configuration for get_org_committee_seats.

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.

func ValidateScopes added in v0.3.1

func ValidateScopes(configured []string, warn func(msg string, args ...any)) []string

ValidateScopes checks a configured scope list for unrecognised entries and returns it unchanged. It logs a warning for any scope that is neither an enforced scope nor a standard OIDC scope — those will be advertised via the PRM but are not enforced by the server. Omitting an enforced scope from the configured list is intentional and allowed; enforcement at registration time is independent of what is advertised.

func WithFullView added in v0.19.2

func WithFullView(ctx context.Context, full bool) context.Context

WithFullView returns a context carrying the caller's full-view decision. newServer's receiving middleware sets it from the same token that drove tool registration, so handlers have one source of truth per request.

func WithLogger added in v0.4.5

func WithLogger(ctx context.Context, l *slog.Logger) context.Context

WithLogger returns a new context with the given logger stored in it. The middleware calls this before invoking the tool handler so that session_id and mcp_method are pre-bound on every log record.

Types

type AddMeetingRegistrantArgs added in v0.21.0

type AddMeetingRegistrantArgs struct {
	MeetingID string  `json:"meeting_id" jsonschema:"ID of the meeting (the uid / meeting_id from search_meetings, get_meeting or create_meeting)"`
	Email     string  `json:"email" jsonschema:"Email address the invite is sent to"`
	FirstName string  `json:"first_name" jsonschema:"Invitee first name (required by LFX with an email)"`
	LastName  string  `json:"last_name" jsonschema:"Invitee last name (required by LFX with an email)"`
	Org       *string `json:"org,omitempty" jsonschema:"Invitee organization"`
	JobTitle  *string `json:"job_title,omitempty" jsonschema:"Invitee job title"`
}

AddMeetingRegistrantArgs defines the input parameters for the add_meeting_registrant tool.

type AuditCommitteeCoverageArgs added in v0.18.3

type AuditCommitteeCoverageArgs struct {
	FoundationUID string `` /* 158-byte string literal not displayed */
	Category      string `json:"category,omitempty" jsonschema:"Keep only committees of this category, matched case-insensitively (e.g. Board)"`
}

AuditCommitteeCoverageArgs defines the input parameters for the audit_committee_coverage tool.

type CommitteeConfig added in v0.1.1

type CommitteeConfig struct {
	// Clients is the shared LFX v2 API client instance. It must be created once
	// at startup so that its token cache persists across requests.
	Clients *lfxv2.Clients
}

CommitteeConfig holds configuration shared by committee tools.

type CommitteeMemberOrganizationArgs added in v0.3.0

type CommitteeMemberOrganizationArgs struct {
	Name    *string `json:"name,omitempty" jsonschema:"Organization name"`
	Website *string `json:"website,omitempty" jsonschema:"Organization website URL"`
}

CommitteeMemberOrganizationArgs defines organization information for a committee member.

type CommitteeMemberRoleArgs added in v0.3.0

type CommitteeMemberRoleArgs struct {
	Name      string  `json:"name" jsonschema:"Role name"`
	StartDate *string `json:"start_date,omitempty" jsonschema:"Role start date in RFC3339 format"`
	EndDate   *string `json:"end_date,omitempty" jsonschema:"Role end date in RFC3339 format"`
}

CommitteeMemberRoleArgs defines role information for a committee member.

type CommitteeMemberVotingArgs added in v0.3.0

type CommitteeMemberVotingArgs struct {
	Status    string  `json:"status" jsonschema:"Voting status"`
	StartDate *string `json:"start_date,omitempty" jsonschema:"Voting start date in RFC3339 format"`
	EndDate   *string `json:"end_date,omitempty" jsonschema:"Voting end date in RFC3339 format"`
}

CommitteeMemberVotingArgs defines voting information for a committee member.

type CountLFXResourcesArgs added in v0.17.0

type CountLFXResourcesArgs struct {
	Type       string   `` /* 288-byte string literal not displayed */
	Parent     string   `` /* 134-byte string literal not displayed */
	Name       string   `json:"name,omitempty" jsonschema:"Name or alias to match (typeahead)"`
	Tags       []string `json:"tags,omitempty" jsonschema:"Tags matched with OR, e.g. is_attended:true, project_slug:cncf"`
	TagsAll    []string `json:"tags_all,omitempty" jsonschema:"Tags that must all match"`
	DateField  string   `` /* 136-byte string literal not displayed */
	DateFrom   string   `json:"date_from,omitempty" jsonschema:"Inclusive start, ISO 8601 date or datetime (date-only = start of day UTC)"`
	DateTo     string   `json:"date_to,omitempty" jsonschema:"Inclusive end, ISO 8601 date or datetime (date-only = end of day UTC)"`
	FiltersOr  []string `json:"filters_or,omitempty" jsonschema:"Exact field filters field:value on data fields, at least one must match"`
	FiltersAll []string `json:"filters_all,omitempty" jsonschema:"Exact field filters field:value on data fields that must all match"`
}

CountLFXResourcesArgs defines the input parameters for the count_lfx_resources tool.

type CreateCommitteeArgs added in v0.3.0

type CreateCommitteeArgs struct {
	ProjectUID            string  `json:"project_uid" jsonschema:"Project UID the committee belongs to"`
	Name                  string  `json:"name" jsonschema:"Name of the committee"`
	Category              string  `json:"category" jsonschema:"Category of the committee"`
	Description           *string `json:"description,omitempty" jsonschema:"Description of the committee"`
	Website               *string `json:"website,omitempty" jsonschema:"Website URL of the committee"`
	EnableVoting          bool    `json:"enable_voting,omitempty" jsonschema:"Whether voting is enabled"`
	SSOGroupEnabled       bool    `json:"sso_group_enabled,omitempty" jsonschema:"Whether SSO group integration is enabled"`
	RequiresReview        bool    `json:"requires_review,omitempty" jsonschema:"Whether the committee requires review"`
	Public                bool    `json:"public,omitempty" jsonschema:"Whether the committee is publicly visible"`
	CalendarPublic        *bool   `json:"calendar_public,omitempty" jsonschema:"Whether the committee calendar is publicly visible"`
	DisplayName           *string `json:"display_name,omitempty" jsonschema:"Display name of the committee"`
	ParentUID             *string `json:"parent_uid,omitempty" jsonschema:"UID of the parent committee, if any"`
	BusinessEmailRequired bool    `json:"business_email_required,omitempty" jsonschema:"Whether business email is required for members"`
	MemberVisibility      string  `json:"member_visibility,omitempty" jsonschema:"Visibility level of member profiles to other members"`
	ShowMeetingAttendees  bool    `json:"show_meeting_attendees,omitempty" jsonschema:"Whether to show meeting attendees by default"`
}

CreateCommitteeArgs defines the input parameters for the create_committee tool.

type CreateCommitteeMemberArgs added in v0.3.0

type CreateCommitteeMemberArgs struct {
	CommitteeUID    string                           `json:"committee_uid" jsonschema:"UID of the committee to add the member to"`
	Email           string                           `json:"email" jsonschema:"Primary email address of the member"`
	AppointedBy     string                           `json:"appointed_by" jsonschema:"How the member was appointed"`
	Status          string                           `json:"status" jsonschema:"Member status"`
	FirstName       *string                          `json:"first_name,omitempty" jsonschema:"First name"`
	LastName        *string                          `json:"last_name,omitempty" jsonschema:"Last name"`
	JobTitle        *string                          `json:"job_title,omitempty" jsonschema:"Job title at organization"`
	LinkedinProfile *string                          `json:"linkedin_profile,omitempty" jsonschema:"LinkedIn profile URL"`
	Role            *CommitteeMemberRoleArgs         `json:"role,omitempty" jsonschema:"Committee role information"`
	Voting          *CommitteeMemberVotingArgs       `json:"voting,omitempty" jsonschema:"Voting information"`
	Organization    *CommitteeMemberOrganizationArgs `json:"organization,omitempty" jsonschema:"Organization information"`
}

CreateCommitteeMemberArgs defines the input parameters for the create_committee_member tool.

type CreateGroupArgs added in v0.8.4

type CreateGroupArgs struct {
	ProjectUID            string  `json:"project_uid" jsonschema:"Project UID the group belongs to"`
	Name                  string  `json:"name" jsonschema:"Name of the group"`
	Category              string  `json:"category" jsonschema:"Category of the group"`
	Description           *string `json:"description,omitempty" jsonschema:"Description of the group"`
	Website               *string `json:"website,omitempty" jsonschema:"Website URL of the group"`
	EnableVoting          bool    `json:"enable_voting,omitempty" jsonschema:"Whether voting is enabled"`
	SSOGroupEnabled       bool    `json:"sso_group_enabled,omitempty" jsonschema:"Whether SSO group integration is enabled"`
	RequiresReview        bool    `json:"requires_review,omitempty" jsonschema:"Whether the group requires review"`
	Public                bool    `json:"public,omitempty" jsonschema:"Whether the group is publicly visible"`
	CalendarPublic        *bool   `json:"calendar_public,omitempty" jsonschema:"Whether the group calendar is publicly visible"`
	DisplayName           *string `json:"display_name,omitempty" jsonschema:"Display name of the group"`
	ParentUID             *string `json:"parent_uid,omitempty" jsonschema:"UID of the parent group, if any"`
	BusinessEmailRequired bool    `json:"business_email_required,omitempty" jsonschema:"Whether business email is required for members"`
	MemberVisibility      string  `json:"member_visibility,omitempty" jsonschema:"Visibility level of member profiles to other members"`
	ShowMeetingAttendees  bool    `json:"show_meeting_attendees,omitempty" jsonschema:"Whether to show meeting attendees by default"`
}

CreateGroupArgs defines the input parameters for the create_group tool (groups mode).

type CreateGroupMemberArgs added in v0.8.4

type CreateGroupMemberArgs struct {
	GroupUID        string                           `json:"group_uid" jsonschema:"UID of the group to add the member to"`
	Email           string                           `json:"email" jsonschema:"Primary email address of the member"`
	AppointedBy     string                           `json:"appointed_by" jsonschema:"How the member was appointed"`
	Status          string                           `json:"status" jsonschema:"Member status"`
	FirstName       *string                          `json:"first_name,omitempty" jsonschema:"First name"`
	LastName        *string                          `json:"last_name,omitempty" jsonschema:"Last name"`
	JobTitle        *string                          `json:"job_title,omitempty" jsonschema:"Job title at organization"`
	LinkedinProfile *string                          `json:"linkedin_profile,omitempty" jsonschema:"LinkedIn profile URL"`
	Role            *CommitteeMemberRoleArgs         `json:"role,omitempty" jsonschema:"Group role information"`
	Voting          *CommitteeMemberVotingArgs       `json:"voting,omitempty" jsonschema:"Voting information"`
	Organization    *CommitteeMemberOrganizationArgs `json:"organization,omitempty" jsonschema:"Organization information"`
}

CreateGroupMemberArgs defines the input parameters for the create_group_member tool (groups mode).

type CreateMeetingArgs added in v0.21.0

type CreateMeetingArgs struct {
	ProjectUID    string   `json:"project_uid" jsonschema:"UID of the LFX project that owns the meeting (from search_projects)"`
	Title         string   `json:"title" jsonschema:"Meeting title"`
	StartTime     string   `` /* 140-byte string literal not displayed */
	Duration      int      `json:"duration" jsonschema:"Duration in minutes"`
	Timezone      string   `` /* 134-byte string literal not displayed */
	Visibility    string   `json:"visibility" jsonschema:"Whether the meeting is listed publicly,enum=public,enum=private"`
	CommitteeUIDs []string `json:"committee_uids,omitempty" jsonschema:"Committee UIDs whose members are invited to the meeting"`
	MeetingSettingsArgs
}

CreateMeetingArgs defines the input parameters for the create_meeting tool.

type CreateMeetingGroupArgs added in v0.21.0

type CreateMeetingGroupArgs struct {
	ProjectUID string   `json:"project_uid" jsonschema:"UID of the LFX project that owns the meeting (from search_projects)"`
	Title      string   `json:"title" jsonschema:"Meeting title"`
	StartTime  string   `` /* 140-byte string literal not displayed */
	Duration   int      `json:"duration" jsonschema:"Duration in minutes"`
	Timezone   string   `` /* 134-byte string literal not displayed */
	Visibility string   `json:"visibility" jsonschema:"Whether the meeting is listed publicly,enum=public,enum=private"`
	GroupUIDs  []string `json:"group_uids,omitempty" jsonschema:"Group UIDs (also known as committee UIDs) whose members are invited to the meeting"`
	MeetingSettingsArgs
}

CreateMeetingGroupArgs is the groups-mode variant of CreateMeetingArgs.

type CreateMembershipKeyContactArgs added in v0.4.0

type CreateMembershipKeyContactArgs struct {
	MembershipUID  string  `json:"membership_uid" jsonschema:"Membership UID"`
	Email          string  `json:"email" jsonschema:"Contact email address; used to resolve or create the Salesforce Contact record"`
	FirstName      string  `json:"first_name" jsonschema:"Contact first name; used when creating a new Contact on miss"`
	LastName       string  `json:"last_name" jsonschema:"Contact last name; used when creating a new Contact on miss"`
	Title          *string `json:"title,omitempty" jsonschema:"Contact job title; used when creating a new Contact on miss"`
	Role           string  `json:"role" jsonschema:"Contact role designation, e.g. 'Voting Representative' (required)"`
	Status         *string `json:"status,omitempty" jsonschema:"Role record status, e.g. 'Active'"`
	BoardMember    *bool   `json:"board_member,omitempty" jsonschema:"Whether this contact holds a board member role"`
	PrimaryContact *bool   `json:"primary_contact,omitempty" jsonschema:"Whether this is the primary contact for the membership"`
	SendInvite     bool    `json:"send_invite,omitempty" jsonschema:"Whether to send a platform invite or role-assignment email"`
}

CreateMembershipKeyContactArgs defines the input parameters for the create_membership_key_contact tool.

type DeleteCommitteeArgs added in v0.3.0

type DeleteCommitteeArgs struct {
	UID string `json:"uid" jsonschema:"UID of the committee to delete"`
}

DeleteCommitteeArgs defines the input parameters for the delete_committee tool.

type DeleteCommitteeMemberArgs added in v0.3.0

type DeleteCommitteeMemberArgs struct {
	CommitteeUID string `json:"committee_uid" jsonschema:"UID of the committee"`
	MemberUID    string `json:"member_uid" jsonschema:"UID of the member to delete"`
}

DeleteCommitteeMemberArgs defines the input parameters for the delete_committee_member tool.

type DeleteGroupArgs added in v0.8.4

type DeleteGroupArgs struct {
	UID string `json:"uid" jsonschema:"UID of the group to delete"`
}

DeleteGroupArgs defines the input parameters for the delete_group tool (groups mode).

type DeleteGroupMemberArgs added in v0.8.4

type DeleteGroupMemberArgs struct {
	GroupUID  string `json:"group_uid" jsonschema:"UID of the group"`
	MemberUID string `json:"member_uid" jsonschema:"UID of the member to delete"`
}

DeleteGroupMemberArgs defines the input parameters for the delete_group_member tool (groups mode).

type DeleteMeetingArgs added in v0.21.0

type DeleteMeetingArgs struct {
	MeetingID string `json:"meeting_id" jsonschema:"ID of the meeting to delete (the uid / meeting_id from search_meetings or get_meeting)"`
}

DeleteMeetingArgs defines the input parameters for the delete_meeting tool.

type DeleteMembershipKeyContactArgs added in v0.4.0

type DeleteMembershipKeyContactArgs struct {
	MembershipUID string `json:"membership_uid" jsonschema:"Membership UID"`
	ContactUID    string `json:"contact_uid" jsonschema:"Key contact UID to remove"`
}

DeleteMembershipKeyContactArgs defines the input parameters for the delete_membership_key_contact tool.

type DiscordAssignRoleArgs added in v0.7.0

type DiscordAssignRoleArgs struct {
	ProjectSlug string `json:"project_slug" jsonschema:"Project slug (e.g. 'pytorch')"`
	UserID      string `json:"user_id" jsonschema:"Discord user ID"`
	UserName    string `json:"user_name" jsonschema:"Human-readable name (for logging/display)"`
	RoleID      string `json:"role_id" jsonschema:"Discord role ID"`
	RoleName    string `json:"role_name" jsonschema:"Human-readable role name (for logging/display)"`
}

DiscordAssignRoleArgs defines the input for assign_discord_role.

type DiscordCheckUserRoleArgs added in v0.7.0

type DiscordCheckUserRoleArgs struct {
	ProjectSlug string `json:"project_slug" jsonschema:"Project slug (e.g. 'pytorch')"`
	UserID      string `json:"user_id" jsonschema:"Discord user ID"`
	RoleID      string `json:"role_id" jsonschema:"Discord role ID"`
}

DiscordCheckUserRoleArgs defines the input for check_discord_user_role.

type DiscordFindRoleArgs added in v0.7.0

type DiscordFindRoleArgs struct {
	ProjectSlug string `json:"project_slug" jsonschema:"Project slug (e.g. 'pytorch')"`
	RoleName    string `json:"role_name" jsonschema:"Role name to search for"`
}

DiscordFindRoleArgs defines the input for find_discord_role.

type DiscordFindUserArgs added in v0.7.0

type DiscordFindUserArgs struct {
	ProjectSlug string `json:"project_slug" jsonschema:"Project slug (e.g. 'pytorch')"`
	Name        string `json:"name" jsonschema:"Member name to search for"`
	Email       string `json:"email,omitempty" jsonschema:"Email address; local part used as additional search term"`
}

DiscordFindUserArgs defines the input for find_discord_user.

type DiscordProjectSlugArgs added in v0.7.0

type DiscordProjectSlugArgs struct {
	ProjectSlug string `json:"project_slug" jsonschema:"Project slug (e.g. 'pytorch')"`
}

DiscordProjectSlugArgs is the common argument for tools that only need a project slug.

type EmailProjectSlugArgs added in v0.7.0

type EmailProjectSlugArgs struct {
	ProjectSlug string `json:"project_slug" jsonschema:"Project slug (e.g. 'pytorch')"`
}

EmailProjectSlugArgs is the common argument for email tools that only need a project slug.

type ExploreSemanticLayerArgs added in v0.12.0

type ExploreSemanticLayerArgs struct {
	Action    string `` /* 409-byte string literal not displayed */
	Search    string `` /* 368-byte string literal not displayed */
	Metrics   string `` /* 191-byte string literal not displayed */
	Dimension string `` /* 163-byte string literal not displayed */
	Target    string `` /* 197-byte string literal not displayed */
}

ExploreSemanticLayerArgs defines the input for explore_lfx_semantic_layer.

Action is the only required field, so under the schema compaction described on QuerySemanticLayerArgs it is the one parameter description that survives intact — hence the full action list lives there rather than being split across the optional fields.

type GetCommitteeArgs added in v0.1.1

type GetCommitteeArgs struct {
	UID string `json:"uid" jsonschema:"The 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 UID of the committee"`
	MemberUID    string `json:"member_uid" jsonschema:"The UID of the committee member"`
}

GetCommitteeMemberArgs defines the input parameters for the get_committee_member tool.

type GetGroupArgs added in v0.8.4

type GetGroupArgs struct {
	UID string `json:"uid" jsonschema:"The UID of the group to retrieve"`
}

GetGroupArgs defines the input parameters for the get_group tool (groups mode).

type GetGroupMemberArgs added in v0.8.4

type GetGroupMemberArgs struct {
	GroupUID  string `json:"group_uid" jsonschema:"The UID of the group"`
	MemberUID string `json:"member_uid" jsonschema:"The UID of the group member"`
}

GetGroupMemberArgs defines the input parameters for the get_group_member tool (groups mode).

type GetMailingListArgs added in v0.2.0

type GetMailingListArgs struct {
	ID string `json:"id" jsonschema:"The Groups.io numeric group ID of the mailing list to retrieve (e.g. 145670)"`
}

GetMailingListArgs defines the input parameters for the get_mailing_list tool.

type GetMailingListMemberArgs added in v0.2.0

type GetMailingListMemberArgs struct {
	MailingListID string `json:"mailing_list_id" jsonschema:"The Groups.io numeric group ID of the mailing list (e.g. 145670)"`
	MemberID      string `json:"member_id" jsonschema:"The Groups.io numeric member ID (e.g. 14875835)"`
}

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 UID of the mailing list service to retrieve"`
}

GetMailingListServiceArgs defines the input parameters for the get_mailing_list_service tool.

type GetMeetingArgs added in v0.2.4

type GetMeetingArgs struct {
	UID string `json:"uid" jsonschema:"The UID of the meeting to retrieve"`
}

GetMeetingArgs defines the input parameters for the get_meeting tool.

type GetMeetingRegistrantArgs added in v0.2.4

type GetMeetingRegistrantArgs struct {
	UID string `json:"uid" jsonschema:"The UID of the meeting registrant to retrieve"`
}

GetMeetingRegistrantArgs defines the input parameters for the get_meeting_registrant tool.

type GetMemberMembershipArgs added in v0.2.2

type GetMemberMembershipArgs struct {
	MembershipUID string `json:"membership_uid" jsonschema:"The membership UID"`
}

GetMemberMembershipArgs defines the input parameters for the get_member_membership tool.

type GetMembershipKeyContactArgs added in v0.4.3

type GetMembershipKeyContactArgs struct {
	MembershipUID string `json:"membership_uid" jsonschema:"The membership UID"`
	ContactUID    string `json:"contact_uid" jsonschema:"Key contact UID"`
}

GetMembershipKeyContactArgs defines the input parameters for the get_membership_key_contact tool.

type GetMembershipKeyContactsArgs added in v0.2.2

type GetMembershipKeyContactsArgs struct {
	MembershipUID string `json:"membership_uid" jsonschema:"The membership UID"`
	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 response."`
}

GetMembershipKeyContactsArgs defines the input parameters for the get_membership_key_contacts tool.

type GetOrgCommitteeSeatsArgs added in v0.17.0

type GetOrgCommitteeSeatsArgs struct {
	B2bOrgUID                 string `` /* 162-byte string literal not displayed */
	FoundationUID             string `` /* 218-byte string literal not displayed */
	Category                  string `` /* 133-byte string literal not displayed */
	IncludeSeats              bool   `json:"include_seats,omitempty" jsonschema:"Return the seat rows as well as the summary (default false: summary only)"`
	IncludeMembershipContacts bool   `` /* 400-byte string literal not displayed */
}

GetOrgCommitteeSeatsArgs defines the input parameters for the get_org_committee_seats tool.

type GetPastMeetingArgs added in v0.7.7

type GetPastMeetingArgs struct {
	UID string `json:"uid" jsonschema:"The UID of the past meeting to retrieve"`
}

GetPastMeetingArgs defines the input parameters for the get_past_meeting tool.

type GetPastMeetingParticipantArgs added in v0.2.6

type GetPastMeetingParticipantArgs struct {
	UID string `json:"uid" jsonschema:"The UID of the past meeting participant to retrieve"`
}

GetPastMeetingParticipantArgs defines the input parameters for the get_past_meeting_participant tool.

type GetPastMeetingSummaryArgs added in v0.2.6

type GetPastMeetingSummaryArgs struct {
	UID string `json:"uid" jsonschema:"The UID of the past meeting summary to retrieve"`
}

GetPastMeetingSummaryArgs defines the input parameters for the get_past_meeting_summary tool.

type GetProjectArgs added in v0.1.0

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

GetProjectArgs defines the input parameters for the get_project tool.

type GuidanceArgs added in v0.14.0

type GuidanceArgs struct{}

GuidanceArgs is the (empty) input for the guidance tools: the content is the whole point, so there is nothing to parameterize.

type LensConfig added in v0.6.0

type LensConfig struct {
	ServiceAuth
	ServiceClient *serviceapi.Client
}

LensConfig holds configuration shared by LFX Lens tools.

type MailingListConfig added in v0.2.0

type MailingListConfig struct {
	// Clients is the shared LFX v2 API client instance. It must be created once
	// at startup so that its token cache persists across requests.
	Clients *lfxv2.Clients
}

MailingListConfig holds configuration shared by mailing list tools.

type MeetingConfig added in v0.2.4

type MeetingConfig struct {
	// Clients is the shared LFX v2 API client instance. It must be created once
	// at startup so that its token cache persists across requests.
	Clients *lfxv2.Clients
}

MeetingConfig holds configuration shared by meeting tools.

type MeetingRecurrenceArgs added in v0.21.0

type MeetingRecurrenceArgs struct {
	Type           int     `json:"type" jsonschema:"Recurrence type: 1=daily, 2=weekly, 3=monthly"`
	RepeatInterval *int    `json:"repeat_interval,omitempty" jsonschema:"Repeat every N days, weeks or months (default 1)"`
	WeeklyDays     *string `` /* 182-byte string literal not displayed */
	MonthlyDay     *int    `json:"monthly_day,omitempty" jsonschema:"Monthly recurrence by date: day of the month (1-31)"`
	MonthlyWeek    *int    `json:"monthly_week,omitempty" jsonschema:"Monthly recurrence by weekday: week of the month (1-4, or -1 for the last week)"`
	MonthlyWeekDay *int    `json:"monthly_week_day,omitempty" jsonschema:"Monthly recurrence by weekday: day of the week, 1=Sunday through 7=Saturday"`
	EndTimes       *int    `json:"end_times,omitempty" jsonschema:"End after this many occurrences (set this or end_date_time)"`
	EndDateTime    *string `json:"end_date_time,omitempty" jsonschema:"End on this date/time, RFC3339 (set this or end_times)"`
}

MeetingRecurrenceArgs describes how a meeting repeats. It mirrors the meeting service's Recurrence type.

type MeetingSettingsArgs added in v0.21.0

type MeetingSettingsArgs struct {
	Description              *string                `json:"description,omitempty" jsonschema:"Meeting description shown on the meeting page and in calendar invites"`
	Restricted               *bool                  `` /* 128-byte string literal not displayed */
	MeetingType              *string                `` /* 145-byte string literal not displayed */
	EarlyJoinTimeMinutes     *int                   `json:"early_join_time_minutes,omitempty" jsonschema:"Minutes before the start time that attendees may join"`
	RecordingEnabled         *bool                  `json:"recording_enabled,omitempty" jsonschema:"Whether the meeting is recorded"`
	TranscriptEnabled        *bool                  `json:"transcript_enabled,omitempty" jsonschema:"Whether a transcript is produced"`
	YoutubeUploadEnabled     *bool                  `json:"youtube_upload_enabled,omitempty" jsonschema:"Whether recordings are uploaded to YouTube automatically"`
	AiSummaryEnabled         *bool                  `json:"ai_summary_enabled,omitempty" jsonschema:"Whether a Zoom AI Companion summary is produced"`
	RequireAiSummaryApproval *bool                  `json:"require_ai_summary_approval,omitempty" jsonschema:"Whether the AI summary needs approval before it is shared"`
	ArtifactVisibility       *string                `` /* 156-byte string literal not displayed */
	Recurrence               *MeetingRecurrenceArgs `` /* 142-byte string literal not displayed */
	AutoEmailReminderEnabled *bool                  `json:"auto_email_reminder_enabled,omitempty" jsonschema:"Whether registrants get an automatic email reminder"`
	AutoEmailReminderTime    *int                   `json:"auto_email_reminder_time,omitempty" jsonschema:"Minutes before the meeting to send the email reminder"`
	ShowMeetingAttendees     *bool                  `` /* 130-byte string literal not displayed */
}

MeetingSettingsArgs holds the optional meeting fields shared by create_meeting and update_meeting. On update, omitted fields keep their current values.

type MemberConfig added in v0.2.2

type MemberConfig struct {
	// Clients is the shared LFX v2 API client instance. It must be created once
	// at startup so that its token cache persists across requests.
	Clients *lfxv2.Clients
}

MemberConfig holds configuration shared by member tools.

type OnboardingConfig added in v0.6.0

type OnboardingConfig struct {
	ServiceAuth
	ServiceClient *serviceapi.Client
}

OnboardingConfig holds configuration shared by member onboarding tools.

type OrgSeatsConfig added in v0.17.0

type OrgSeatsConfig struct {
	// Clients is the shared LFX v2 API client instance (committee service and
	// query service). Must be the instance created at startup.
	Clients *lfxv2.Clients
}

OrgSeatsConfig holds configuration for get_org_committee_seats.

type ProjectConfig added in v0.1.0

type ProjectConfig struct {
	// Clients is the shared LFX v2 API client instance. It must be created once
	// at startup so that its token cache persists across requests.
	Clients *lfxv2.Clients
}

ProjectConfig holds configuration shared by project tools.

type QueryLFXLensArgs added in v0.7.0

type QueryLFXLensArgs struct {
	ProjectSlugs []string `` /* 334-byte string literal not displayed */
	Input        string   `` /* 516-byte string literal not displayed */
}

QueryLFXLensArgs defines the input for query_lfx_lens.

project_slugs is an optional list, not a required default: a required "context" slug documented as "not a scope boundary" was read by the lens agent as its compulsory scope, so LF-wide questions silently became one bucket's figures (the 'tlf' catch-all is about a quarter of memberships, not the LF root). With no slugs the lens applies no project or foundation filter at all; with slugs it scopes to exactly those, OR'd; unknown slugs are rejected by name resolution before any query runs. The old project_slug field is gone rather than mapped: a stale client sending it gets a visible schema error instead of a silently rescoped answer.

type QuerySemanticLayerArgs added in v0.12.0

type QuerySemanticLayerArgs struct {
	Metrics string `` /* 603-byte string literal not displayed */
	GroupBy string `` /* 347-byte string literal not displayed */
	Where   string `` /* 247-byte string literal not displayed */
	OrderBy string `` /* 294-byte string literal not displayed */
	Limit   int    `` /* 199-byte string literal not displayed */
}

QuerySemanticLayerArgs defines the input for query_lfx_semantic_layer.

Only the tool description and REQUIRED parameters reach the model intact. Clients that defer tool schemas behind a search index — Claude Desktop does — re-serialise the schema and replace optional parameter descriptions with a short generated summary. Verified against a live client: a 459-byte where description arrived as "Filter conditions." and order_by as "Sort order.". Temporarily marking limit required was enough to make its real description appear, which is what pinned the cause down.

So Metrics is required here — it carries the multi-metric join rules — and anything else the model must not get wrong, above all the MetricFlow filter syntax it cannot guess, is repeated in querySemanticLayerDescription. The optional descriptions below stay full and accurate for clients that pass them through unchanged; they just are not the only copy. TestCriticalGuidanceSurvivesSchemaCompaction guards that split.

type SearchB2bOrgsArgs added in v0.5.0

type SearchB2bOrgsArgs struct {
	SearchName string `json:"search_name,omitempty" jsonschema:"Search B2B organizations by name or domain (typeahead)."`
	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."`
}

SearchB2bOrgsArgs defines the input parameters for the search_b2b_orgs tool.

type SearchCommitteeMembersArgs added in v0.1.1

type SearchCommitteeMembersArgs struct {
	CommitteeUID     string `json:"committee_uid,omitempty" jsonschema:"Optional UID of the committee to filter members by"`
	ProjectUID       string `json:"project_uid,omitempty" jsonschema:"Optional project UID to filter committee members by project"`
	OrganizationName string `` /* 184-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 `json:"project_uid,omitempty" jsonschema:"Optional project UID to filter committees by project"`
	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 SearchGroupMembersArgs added in v0.8.4

type SearchGroupMembersArgs struct {
	GroupUID         string `json:"group_uid,omitempty" jsonschema:"Optional UID of the group to filter members by"`
	ProjectUID       string `json:"project_uid,omitempty" jsonschema:"Optional project UID to filter group members by project"`
	OrganizationName string `` /* 184-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"`
}

SearchGroupMembersArgs defines the input parameters for the search_group_members tool (groups mode).

type SearchGroupsArgs added in v0.8.4

type SearchGroupsArgs struct {
	Name       string `json:"name,omitempty" jsonschema:"Name or partial name of the group to search for"`
	ProjectUID string `json:"project_uid,omitempty" jsonschema:"Optional project UID to filter groups by project"`
	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"`
}

SearchGroupsArgs defines the input parameters for the search_groups tool (groups mode).

type SearchMailingListMembersArgs added in v0.2.0

type SearchMailingListMembersArgs struct {
	MailingListID string `` /* 136-byte string literal not displayed */
	ProjectUID    string `json:"project_uid,omitempty" jsonschema:"Optional 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, max 100)"`
	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 `json:"project_uid,omitempty" jsonschema:"Optional project UID to filter mailing lists by project"`
	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"`
}

SearchMailingListsArgs defines the input parameters for the search_mailing_lists tool.

type SearchMeetingAttachmentsArgs added in v0.20.0

type SearchMeetingAttachmentsArgs struct {
	MeetingKind   string `json:"meeting_kind" jsonschema:"(required) upcoming or past"`
	MeetingID     string `json:"meeting_id,omitempty" jsonschema:"Upcoming meeting ID (meeting_kind=upcoming)"`
	PastMeetingID string `` /* 150-byte string literal not displayed */
	ProjectUID    string `` /* 168-byte string literal not displayed */
	Type          string `json:"type,omitempty" jsonschema:"file or link"`
	Name          string `json:"name,omitempty" jsonschema:"Name or partial name of the attachment to search for"`
	Sort          string `json:"sort,omitempty" jsonschema:"Sort order: name_asc (default), name_desc, updated_asc, updated_desc"`
	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"`
}

SearchMeetingAttachmentsArgs defines the input parameters for the search_meeting_attachments tool.

type SearchMeetingRegistrantsArgs added in v0.2.4

type SearchMeetingRegistrantsArgs struct {
	MeetingID    string `json:"meeting_id,omitempty" jsonschema:"Filter registrants by meeting ID"`
	CommitteeUID string `json:"committee_uid,omitempty" jsonschema:"Filter registrants by committee UID (ignored when meeting_id is set)"`
	Name         string `json:"name,omitempty" jsonschema:"Name or partial name of the registrant to search for"`
	Sort         string `json:"sort,omitempty" jsonschema:"Sort order: name_asc (default), name_desc, updated_asc, updated_desc"`
	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"`
}

SearchMeetingRegistrantsArgs defines the input parameters for the search_meeting_registrants tool.

type SearchMeetingRegistrantsGroupArgs added in v0.8.4

type SearchMeetingRegistrantsGroupArgs struct {
	MeetingID string `json:"meeting_id,omitempty" jsonschema:"Filter registrants by meeting ID"`
	GroupUID  string `` /* 133-byte string literal not displayed */
	Name      string `json:"name,omitempty" jsonschema:"Name or partial name of the registrant to search for"`
	Sort      string `` /* 140-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"`
}

SearchMeetingRegistrantsGroupArgs is the groups-mode variant of SearchMeetingRegistrantsArgs.

type SearchMeetingsArgs added in v0.2.4

type SearchMeetingsArgs struct {
	Name         string `json:"name,omitempty" jsonschema:"Name or partial name of the meeting to search for"`
	ProjectUID   string `json:"project_uid,omitempty" jsonschema:"Filter meetings by project UID (ignored when committee_uid is set)"`
	CommitteeUID string `json:"committee_uid,omitempty" jsonschema:"Filter meetings by committee UID"`
	DateField    string `json:"date_field,omitempty" jsonschema:"Date field to filter on (default start_time when date_from or date_to is set)"`
	DateFrom     string `json:"date_from,omitempty" jsonschema:"Start date inclusive in ISO 8601 format (e.g. 2025-01-01)"`
	DateTo       string `json:"date_to,omitempty" jsonschema:"End date inclusive in ISO 8601 format (e.g. 2025-12-31)"`
	Sort         string `json:"sort,omitempty" jsonschema:"Sort order: name_asc (default), name_desc, updated_asc, updated_desc"`
	OnlyMine     bool   `` /* 338-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"`
}

SearchMeetingsArgs defines the input parameters for the search_meetings tool.

type SearchMeetingsGroupArgs added in v0.8.4

type SearchMeetingsGroupArgs struct {
	Name       string `json:"name,omitempty" jsonschema:"Name or partial name of the meeting to search for"`
	ProjectUID string `json:"project_uid,omitempty" jsonschema:"Filter meetings by project UID (ignored when group_uid is set)"`
	GroupUID   string `json:"group_uid,omitempty" jsonschema:"Filter meetings by group UID (also known as committee UID)"`
	DateField  string `json:"date_field,omitempty" jsonschema:"Date field to filter on (default start_time when date_from or date_to is set)"`
	DateFrom   string `json:"date_from,omitempty" jsonschema:"Start date inclusive in ISO 8601 format (e.g. 2025-01-01)"`
	DateTo     string `json:"date_to,omitempty" jsonschema:"End date inclusive in ISO 8601 format (e.g. 2025-12-31)"`
	Sort       string `` /* 140-byte string literal not displayed */
	OnlyMine   bool   `` /* 338-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"`
}

SearchMeetingsGroupArgs is the groups-mode variant of SearchMeetingsArgs.

type SearchMembersArgs added in v0.2.2

type SearchMembersArgs struct {
	ProjectUID      string `` /* 133-byte string literal not displayed */
	B2bOrgUID       string `` /* 141-byte string literal not displayed */
	SearchName      string `json:"search_name,omitempty" jsonschema:"Search memberships by member company name (typeahead)."`
	TierUID         string `json:"tier_uid,omitempty" jsonschema:"Filter by exact tier+range UID (each employee-count range has a distinct UID)."`
	TierName        string `` /* 136-byte string literal not displayed */
	IncludeInactive bool   `` /* 185-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."`
}

SearchMembersArgs defines the input parameters for the search_members tool.

type SearchPastMeetingParticipantsArgs added in v0.2.6

type SearchPastMeetingParticipantsArgs struct {
	PastMeetingID string `` /* 207-byte string literal not displayed */
	CommitteeUID  string `` /* 153-byte string literal not displayed */
	ProjectUID    string `` /* 131-byte string literal not displayed */
	Name          string `json:"name,omitempty" jsonschema:"Name or partial name of the participant to search for"`
	DateFrom      string `` /* 216-byte string literal not displayed */
	DateTo        string `` /* 135-byte string literal not displayed */
	MaxMeetings   int    `` /* 228-byte string literal not displayed */
	AttendedOnly  bool   `json:"attended_only,omitempty" jsonschema:"Only participants who attended (is_attended:true)"`
	OrgName       string `json:"org_name,omitempty" jsonschema:"Exact stored organisation name, case-sensitive (copy it from a participant record)"`
	CountOnly     bool   `` /* 172-byte string literal not displayed */
	Dedupe        *bool  `` /* 277-byte string literal not displayed */
	Sort          string `` /* 198-byte string literal not displayed */
	PageSize      int    `` /* 212-byte string literal not displayed */
	PageToken     string `` /* 127-byte string literal not displayed */
}

SearchPastMeetingParticipantsArgs defines the input parameters for the search_past_meeting_participants tool. The handler lives in past_meeting_participants.go.

type SearchPastMeetingParticipantsGroupArgs added in v0.17.0

type SearchPastMeetingParticipantsGroupArgs struct {
	PastMeetingID string `` /* 203-byte string literal not displayed */
	GroupUID      string `` /* 175-byte string literal not displayed */
	ProjectUID    string `` /* 127-byte string literal not displayed */
	Name          string `json:"name,omitempty" jsonschema:"Name or partial name of the participant to search for"`
	DateFrom      string `` /* 212-byte string literal not displayed */
	DateTo        string `` /* 135-byte string literal not displayed */
	MaxMeetings   int    `` /* 228-byte string literal not displayed */
	AttendedOnly  bool   `json:"attended_only,omitempty" jsonschema:"Only participants who attended (is_attended:true)"`
	OrgName       string `json:"org_name,omitempty" jsonschema:"Exact stored organisation name, case-sensitive (copy it from a participant record)"`
	CountOnly     bool   `` /* 172-byte string literal not displayed */
	Dedupe        *bool  `` /* 277-byte string literal not displayed */
	Sort          string `` /* 198-byte string literal not displayed */
	PageSize      int    `` /* 212-byte string literal not displayed */
	PageToken     string `` /* 127-byte string literal not displayed */
}

SearchPastMeetingParticipantsGroupArgs is the groups-mode variant of SearchPastMeetingParticipantsArgs.

type SearchPastMeetingSummariesArgs added in v0.2.6

type SearchPastMeetingSummariesArgs struct {
	PastMeetingID string `` /* 151-byte string literal not displayed */
	ProjectUID    string `json:"project_uid,omitempty" jsonschema:"Filter summaries by project UID (ignored when past_meeting_id is set)"`
	Name          string `json:"name,omitempty" jsonschema:"Name or partial name of the summary to search for"`
	Sort          string `json:"sort,omitempty" jsonschema:"Sort order: name_asc (default), name_desc, updated_asc, updated_desc"`
	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"`
}

SearchPastMeetingSummariesArgs defines the input parameters for the search_past_meeting_summaries tool.

type SearchPastMeetingsArgs added in v0.7.7

type SearchPastMeetingsArgs struct {
	Name         string `json:"name,omitempty" jsonschema:"Name or partial name of the past meeting to search for"`
	ProjectUID   string `json:"project_uid,omitempty" jsonschema:"Filter past meetings by project UID"`
	CommitteeUID string `json:"committee_uid,omitempty" jsonschema:"Filter past meetings by committee UID"`
	MeetingID    string `json:"meeting_id,omitempty" jsonschema:"Filter past meetings by meeting ID"`
	DateField    string `` /* 141-byte string literal not displayed */
	DateFrom     string `json:"date_from,omitempty" jsonschema:"Start date inclusive in ISO 8601 format (e.g. 2025-01-01)"`
	DateTo       string `json:"date_to,omitempty" jsonschema:"End date inclusive in ISO 8601 format (e.g. 2025-12-31)"`
	Sort         string `json:"sort,omitempty" jsonschema:"Sort order: name_asc (default), name_desc, updated_asc, updated_desc"`
	OnlyMine     bool   `` /* 358-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"`
}

SearchPastMeetingsArgs defines the input parameters for the search_past_meetings tool.

type SearchPastMeetingsGroupArgs added in v0.8.4

type SearchPastMeetingsGroupArgs struct {
	Name       string `json:"name,omitempty" jsonschema:"Name or partial name of the past meeting to search for"`
	ProjectUID string `json:"project_uid,omitempty" jsonschema:"Filter past meetings by project UID"`
	GroupUID   string `json:"group_uid,omitempty" jsonschema:"Filter past meetings by group UID (also known as committee UID)"`
	MeetingID  string `json:"meeting_id,omitempty" jsonschema:"Filter past meetings by meeting ID"`
	DateField  string `` /* 141-byte string literal not displayed */
	DateFrom   string `json:"date_from,omitempty" jsonschema:"Start date inclusive in ISO 8601 format (e.g. 2025-01-01)"`
	DateTo     string `json:"date_to,omitempty" jsonschema:"End date inclusive in ISO 8601 format (e.g. 2025-12-31)"`
	Sort       string `json:"sort,omitempty" jsonschema:"Sort order: name_asc (default), name_desc, updated_asc, updated_desc"`
	OnlyMine   bool   `` /* 358-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"`
}

SearchPastMeetingsGroupArgs is the groups-mode variant of SearchPastMeetingsArgs.

type SearchProjectsArgs added in v0.1.0

type SearchProjectsArgs struct {
	Name           string `json:"name,omitempty" jsonschema:"Name or partial name of the project to search for (typeahead)"`
	Slug           string `json:"slug,omitempty" jsonschema:"Exact project slug, e.g. c2pa-fund"`
	NameExact      string `json:"name_exact,omitempty" jsonschema:"Exact stored project name, case-sensitive"`
	ParentUID      string `json:"parent_uid,omitempty" jsonschema:"UID of a foundation or umbrella project whose direct children to list"`
	LegalParentUID string `json:"legal_parent_uid,omitempty" jsonschema:"UID of the legal parent entity whose projects to list"`
	IncludeTotal   bool   `` /* 222-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"`
}

SearchProjectsArgs defines the input parameters for the search_projects tool.

type SendEmailArgs added in v0.7.0

type SendEmailArgs struct {
	ProjectSlug  string            `json:"project_slug" jsonschema:"Project slug (e.g. 'pytorch')"`
	Mode         string            `json:"mode" jsonschema:"Operation mode,enum=draft,enum=send"`
	TemplateName string            `json:"template_name" jsonschema:"Name of the email template"`
	Variables    map[string]string `json:"variables,omitempty" jsonschema:"Jinja2 template variables (e.g. company_name, project_name)"`
	ToEmail      string            `json:"to_email,omitempty" jsonschema:"Recipient email address (required for mode=send)"`
	ToName       string            `json:"to_name,omitempty" jsonschema:"Recipient display name (required for mode=send)"`
}

SendEmailArgs defines the input for send_email.

type ServiceAuth added in v0.6.0

type ServiceAuth struct {
	LFXAPIURL           string
	TokenExchangeClient *lfxv2.TokenExchangeClient
	// StaticLFXToken, when set, is used directly for the V2 access-check call
	// instead of exchanging an MCP token. See lfxv2.ClientConfig.StaticLFXToken.
	StaticLFXToken string
	DebugLogger    *slog.Logger
	SlugResolver   *lfxv2.SlugResolver
	AccessChecker  *lfxv2.AccessCheckClient
}

ServiceAuth holds the shared infrastructure needed by all service API tools for token exchange, slug resolution, and access-check. Both OnboardingConfig and LensConfig embed this struct.

func (*ServiceAuth) AuthorizeProject added in v0.6.0

func (s *ServiceAuth) AuthorizeProject(ctx context.Context, req *mcp.CallToolRequest, slug, relation string) (context.Context, error)

AuthorizeProject performs the standard service tool authorization flow:

  1. Resolve the caller's LFX authentication (MCP token exchange, or a static LFX token in stdio mode)
  2. Create V2 API clients (with token exchange)
  3. Resolve the project slug to a V2 UUID
  4. Verify the user has the required relation via access-check

On success it returns the enriched context (with MCP token attached). On failure it returns an error — the MCP SDK automatically wraps returned errors into a CallToolResult with IsError set, so callers can propagate the error directly as the handler's error return value.

type StandardMetricsArgs added in v0.14.0

type StandardMetricsArgs struct {
	Metric       string `` /* 1055-byte string literal not displayed */
	By           string `` /* 510-byte string literal not displayed */
	Project      string `` /* 407-byte string literal not displayed */
	Subprojects  string `` /* 384-byte string literal not displayed */
	Org          string `` /* 278-byte string literal not displayed */
	Subsidiaries string `` /* 414-byte string literal not displayed */
	StartDate    string `` /* 449-byte string literal not displayed */
	EndDate      string `` /* 283-byte string literal not displayed */
	Period       string `` /* 572-byte string literal not displayed */
	OrderBy      string `` /* 379-byte string literal not displayed */
	Limit        *int   `` /* 191-byte string literal not displayed */
}

StandardMetricsArgs defines the input for query_lfx_standard_metrics. Every field travels to the lens standard-metric endpoint unchanged in meaning; standardMetricRequest below is the body it becomes. There is deliberately no free-form filter: the scope switches and the window are the only ways to slice a governed figure, so a result is always the recipe as defined.

Metric is the only required field, so under the schema compaction described on QuerySemanticLayerArgs its description is the one that survives intact alongside the tool description; the inventory of names and the contract a caller must not get wrong (fixed metrics and grouping, window vs at-date, the three date parameters, resolve names first) is stated there as well as in the tool description, never only on an optional parameter.

Limit is a pointer so an explicit 0 is distinguishable from an omitted value: omitted means every row, and 0 rows is not a question anyone asks, so the lens rejects it rather than silently reading it as "no limit".

type UpdateCommitteeArgs added in v0.3.0

type UpdateCommitteeArgs struct {
	UID             string  `json:"uid" jsonschema:"UID of the committee to update"`
	ProjectUID      *string `json:"project_uid,omitempty" jsonschema:"Project UID the committee belongs to"`
	Name            *string `json:"name,omitempty" jsonschema:"Name of the committee"`
	Category        *string `json:"category,omitempty" jsonschema:"Category of the committee"`
	Description     *string `json:"description,omitempty" jsonschema:"Description of the committee"`
	Website         *string `json:"website,omitempty" jsonschema:"Website URL of the committee"`
	EnableVoting    *bool   `json:"enable_voting,omitempty" jsonschema:"Whether voting is enabled"`
	SSOGroupEnabled *bool   `json:"sso_group_enabled,omitempty" jsonschema:"Whether SSO group integration is enabled"`
	RequiresReview  *bool   `json:"requires_review,omitempty" jsonschema:"Whether the committee requires review"`
	Public          *bool   `json:"public,omitempty" jsonschema:"Whether the committee is publicly visible"`
	CalendarPublic  *bool   `json:"calendar_public,omitempty" jsonschema:"Whether the committee calendar is publicly visible"`
	DisplayName     *string `json:"display_name,omitempty" jsonschema:"Display name of the committee"`
	ParentUID       *string `json:"parent_uid,omitempty" jsonschema:"UID of the parent committee, if any"`
}

UpdateCommitteeArgs defines the input parameters for the update_committee tool. Only fields that are provided (non-nil) will be updated; omitted fields retain their current values (fetch-then-merge semantics).

type UpdateCommitteeMemberArgs added in v0.3.0

type UpdateCommitteeMemberArgs struct {
	CommitteeUID    string                           `json:"committee_uid" jsonschema:"UID of the committee"`
	MemberUID       string                           `json:"member_uid" jsonschema:"UID of the member to update"`
	Email           *string                          `json:"email,omitempty" jsonschema:"Primary email address of the member"`
	AppointedBy     *string                          `json:"appointed_by,omitempty" jsonschema:"How the member was appointed"`
	Status          *string                          `json:"status,omitempty" jsonschema:"Member status"`
	FirstName       *string                          `json:"first_name,omitempty" jsonschema:"First name"`
	LastName        *string                          `json:"last_name,omitempty" jsonschema:"Last name"`
	JobTitle        *string                          `json:"job_title,omitempty" jsonschema:"Job title at organization"`
	LinkedinProfile *string                          `json:"linkedin_profile,omitempty" jsonschema:"LinkedIn profile URL"`
	Role            *CommitteeMemberRoleArgs         `json:"role,omitempty" jsonschema:"Committee role information"`
	Voting          *CommitteeMemberVotingArgs       `json:"voting,omitempty" jsonschema:"Voting information"`
	Organization    *CommitteeMemberOrganizationArgs `json:"organization,omitempty" jsonschema:"Organization information"`
}

UpdateCommitteeMemberArgs defines the input parameters for the update_committee_member tool. Only fields that are provided (non-nil) will be updated; omitted fields retain their current values (fetch-then-merge semantics).

type UpdateCommitteeSettingsArgs added in v0.3.0

type UpdateCommitteeSettingsArgs struct {
	UID                   string  `json:"uid" jsonschema:"UID of the committee whose settings to update"`
	BusinessEmailRequired *bool   `json:"business_email_required,omitempty" jsonschema:"Whether business email is required for members"`
	MemberVisibility      *string `json:"member_visibility,omitempty" jsonschema:"Visibility level of member profiles to other members"`
	ShowMeetingAttendees  *bool   `json:"show_meeting_attendees,omitempty" jsonschema:"Whether to show meeting attendees by default"`
}

UpdateCommitteeSettingsArgs defines the input parameters for the update_committee_settings tool. Only fields that are provided (non-nil) will be updated; omitted fields retain their current values (fetch-then-merge semantics).

type UpdateGroupArgs added in v0.8.4

type UpdateGroupArgs struct {
	UID             string  `json:"uid" jsonschema:"UID of the group to update"`
	ProjectUID      *string `json:"project_uid,omitempty" jsonschema:"Project UID the group belongs to"`
	Name            *string `json:"name,omitempty" jsonschema:"Name of the group"`
	Category        *string `json:"category,omitempty" jsonschema:"Category of the group"`
	Description     *string `json:"description,omitempty" jsonschema:"Description of the group"`
	Website         *string `json:"website,omitempty" jsonschema:"Website URL of the group"`
	EnableVoting    *bool   `json:"enable_voting,omitempty" jsonschema:"Whether voting is enabled"`
	SSOGroupEnabled *bool   `json:"sso_group_enabled,omitempty" jsonschema:"Whether SSO group integration is enabled"`
	RequiresReview  *bool   `json:"requires_review,omitempty" jsonschema:"Whether the group requires review"`
	Public          *bool   `json:"public,omitempty" jsonschema:"Whether the group is publicly visible"`
	CalendarPublic  *bool   `json:"calendar_public,omitempty" jsonschema:"Whether the group calendar is publicly visible"`
	DisplayName     *string `json:"display_name,omitempty" jsonschema:"Display name of the group"`
	ParentUID       *string `json:"parent_uid,omitempty" jsonschema:"UID of the parent group, if any"`
}

UpdateGroupArgs defines the input parameters for the update_group tool (groups mode). Only fields that are provided (non-nil) will be updated; omitted fields retain their current values (fetch-then-merge semantics).

type UpdateGroupMemberArgs added in v0.8.4

type UpdateGroupMemberArgs struct {
	GroupUID        string                           `json:"group_uid" jsonschema:"UID of the group"`
	MemberUID       string                           `json:"member_uid" jsonschema:"UID of the member to update"`
	Email           *string                          `json:"email,omitempty" jsonschema:"Primary email address of the member"`
	AppointedBy     *string                          `json:"appointed_by,omitempty" jsonschema:"How the member was appointed"`
	Status          *string                          `json:"status,omitempty" jsonschema:"Member status"`
	FirstName       *string                          `json:"first_name,omitempty" jsonschema:"First name"`
	LastName        *string                          `json:"last_name,omitempty" jsonschema:"Last name"`
	JobTitle        *string                          `json:"job_title,omitempty" jsonschema:"Job title at organization"`
	LinkedinProfile *string                          `json:"linkedin_profile,omitempty" jsonschema:"LinkedIn profile URL"`
	Role            *CommitteeMemberRoleArgs         `json:"role,omitempty" jsonschema:"Group role information"`
	Voting          *CommitteeMemberVotingArgs       `json:"voting,omitempty" jsonschema:"Voting information"`
	Organization    *CommitteeMemberOrganizationArgs `json:"organization,omitempty" jsonschema:"Organization information"`
}

UpdateGroupMemberArgs defines the input parameters for the update_group_member tool (groups mode). Only fields that are provided (non-nil) will be updated; omitted fields retain their current values (fetch-then-merge semantics).

type UpdateGroupSettingsArgs added in v0.8.4

type UpdateGroupSettingsArgs struct {
	UID                   string  `json:"uid" jsonschema:"UID of the group whose settings to update"`
	BusinessEmailRequired *bool   `json:"business_email_required,omitempty" jsonschema:"Whether business email is required for members"`
	MemberVisibility      *string `json:"member_visibility,omitempty" jsonschema:"Visibility level of member profiles to other members"`
	ShowMeetingAttendees  *bool   `json:"show_meeting_attendees,omitempty" jsonschema:"Whether to show meeting attendees by default"`
}

UpdateGroupSettingsArgs defines the input parameters for the update_group_settings tool (groups mode). Only fields that are provided (non-nil) will be updated; omitted fields retain their current values (fetch-then-merge semantics).

type UpdateMeetingArgs added in v0.21.0

type UpdateMeetingArgs struct {
	MeetingID     string   `json:"meeting_id" jsonschema:"ID of the meeting to update (the uid / meeting_id from search_meetings or get_meeting)"`
	Title         *string  `json:"title,omitempty" jsonschema:"New meeting title"`
	StartTime     *string  `json:"start_time,omitempty" jsonschema:"New start time in RFC3339 format"`
	Duration      *int     `json:"duration,omitempty" jsonschema:"New duration in minutes"`
	Timezone      *string  `json:"timezone,omitempty" jsonschema:"New IANA timezone, e.g. Europe/London"`
	Visibility    *string  `json:"visibility,omitempty" jsonschema:"Whether the meeting is listed publicly,enum=public,enum=private"`
	CommitteeUIDs []string `json:"committee_uids,omitempty" jsonschema:"Replace the invited committees with this list"`
	UpdateNote    *string  `json:"update_note,omitempty" jsonschema:"Optional note included in the update email sent to registrants"`
	MeetingSettingsArgs
}

UpdateMeetingArgs defines the input parameters for the update_meeting tool. Only provided fields change; omitted fields keep their current values.

type UpdateMeetingGroupArgs added in v0.21.0

type UpdateMeetingGroupArgs struct {
	MeetingID  string   `json:"meeting_id" jsonschema:"ID of the meeting to update (the uid / meeting_id from search_meetings or get_meeting)"`
	Title      *string  `json:"title,omitempty" jsonschema:"New meeting title"`
	StartTime  *string  `json:"start_time,omitempty" jsonschema:"New start time in RFC3339 format"`
	Duration   *int     `json:"duration,omitempty" jsonschema:"New duration in minutes"`
	Timezone   *string  `json:"timezone,omitempty" jsonschema:"New IANA timezone, e.g. Europe/London"`
	Visibility *string  `json:"visibility,omitempty" jsonschema:"Whether the meeting is listed publicly,enum=public,enum=private"`
	GroupUIDs  []string `json:"group_uids,omitempty" jsonschema:"Replace the invited groups (also known as committees) with this list"`
	UpdateNote *string  `json:"update_note,omitempty" jsonschema:"Optional note included in the update email sent to registrants"`
	MeetingSettingsArgs
}

UpdateMeetingGroupArgs is the groups-mode variant of UpdateMeetingArgs.

type UpdateMembershipKeyContactArgs added in v0.4.0

type UpdateMembershipKeyContactArgs struct {
	MembershipUID  string  `json:"membership_uid" jsonschema:"Membership UID"`
	ContactUID     string  `json:"contact_uid" jsonschema:"Key contact UID"`
	Email          *string `` /* 276-byte string literal not displayed */
	Role           *string `json:"role,omitempty" jsonschema:"Contact role designation, e.g. 'Voting Representative'"`
	Status         *string `json:"status,omitempty" jsonschema:"Role record status, e.g. 'Active'"`
	BoardMember    *bool   `json:"board_member,omitempty" jsonschema:"Whether this contact holds a board member role"`
	PrimaryContact *bool   `json:"primary_contact,omitempty" jsonschema:"Whether this is the primary contact for the membership"`
	Title          *string `` /* 159-byte string literal not displayed */
	SendInvite     bool    `json:"send_invite,omitempty" jsonschema:"Whether to send a platform invite or role-assignment email when the email changes"`
}

UpdateMembershipKeyContactArgs defines the input parameters for the update_membership_key_contact tool. Only provided (non-nil) fields are updated; omitted fields retain their current values.

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
	// StaticToken, when set, is used as the /userinfo bearer whenever the
	// request carries no per-request OAuth token (i.e. stdio mode, which has
	// no MCP-level OAuth). This is the same static LFX bearer token used for
	// LFX v2 API calls in stdio (see lfxv2.ClientConfig.StaticLFXToken); the
	// LF identity provider issues it with openid/profile/email scope, so it
	// is also valid for /userinfo regardless of its LFX API audience.
	StaticToken string
}

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