-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample_usage.rb
More file actions
executable file
·45 lines (43 loc) · 1.81 KB
/
example_usage.rb
File metadata and controls
executable file
·45 lines (43 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env ruby
# Example showing the available tools in the Granola MCP server
puts "Granola MCP Server Tools"
puts "========================"
puts ""
puts "This MCP server provides the following tools for working with Granola documents:"
puts ""
puts "1. SearchMeetingNotesTool"
puts " - Unified search for meeting notes with flexible criteria"
puts " - Parameters:"
puts " * participant (optional): Name or email to search for"
puts " * start_date (optional): Start date (YYYY-MM-DD)"
puts " * end_date (optional): End date (YYYY-MM-DD)"
puts " * topic (optional): Keywords to search for"
puts " * search_content (optional): Search in content, not just titles"
puts " * limit (optional): Max results (default: 20)"
puts " - Examples:"
puts " * Find all meetings with joe@example.com"
puts " * Find meetings between 2025-01-01 and 2025-01-31"
puts " * Find meetings about 'product roadmap'"
puts " * Combine: meetings with Joe about roadmap in January"
puts ""
puts "2. FetchMeetingNoteTool"
puts " - Get the full content of a specific meeting note"
puts " - Parameters: document_id (required)"
puts " - Returns complete meeting notes in Markdown format"
puts " - Includes: title, date, participants, summary, and full notes"
puts ""
puts "3. GetDocumentListsTool"
puts " - Get all document lists/collections"
puts " - No parameters required"
puts " - Returns list metadata including member counts and visibility"
puts ""
puts "Usage:"
puts "1. Set your GRANOLA_BEARER_TOKEN in .env file"
puts "2. Run: ruby granola_mcp_server.rb"
puts "3. Connect with an MCP client to use the tools"
puts ""
puts "The server uses the FastMcp framework which handles:"
puts "- JSON-RPC protocol communication"
puts "- Argument validation"
puts "- Error handling"
puts "- Tool discovery and introspection"