Add list attendees to mcp meetings

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-02-16 14:07:27 +01:00
parent 3a42307896
commit 1d1a0b6208
5 changed files with 111 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ type ResolverInterface interface {
AddMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.AddMeetingInput) (*mcp.CallToolResult, types.AddMeetingOutput, error)
UpdateMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.UpdateMeetingInput) (*mcp.CallToolResult, types.UpdateMeetingOutput, error)
DeleteMeetingTool(ctx context.Context, req *mcp.CallToolRequest, input *types.DeleteMeetingInput) (*mcp.CallToolResult, types.DeleteMeetingOutput, error)
ListMeetingAttendeesTool(ctx context.Context, req *mcp.CallToolRequest, input *types.ListMeetingAttendeesInput) (*mcp.CallToolResult, types.ListMeetingAttendeesOutput, error)
}
// New creates a new MCP server instance with all handlers registered.
@@ -1120,6 +1121,20 @@ func registerToolHandlers(server *mcp.Server, resolver ResolverInterface) {
},
resolver.DeleteMeetingTool,
)
mcp.AddTool(
server,
&mcp.Tool{
Name: "listMeetingAttendees",
Description: "List all attendees for a meeting",
InputSchema: types.ListMeetingAttendeesToolInputSchema,
OutputSchema: types.ListMeetingAttendeesToolOutputSchema,
Annotations: &mcp.ToolAnnotations{
ReadOnlyHint: true,
IdempotentHint: true,
},
},
resolver.ListMeetingAttendeesTool,
)
}
func boolPtr(b bool) *bool {