-
Notifications
You must be signed in to change notification settings - Fork 10
Update Klavis MCP use case #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,2 @@ | |||
| {"messages": [ { "role": "system", "content": "You are a helpful assistant that can answer questions about Gmail. You have access to tools to help you find information." }, { "role": "user", "content": "Fetch the first 5 emails in my gmail inbox and get the sender. Output the sender only." } ], "ground_truth": "The response contains 5 email addresses." } | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Judging Descriptions, Not Content
The Gmail test's ground truth is a meta-description ("The response contains 5 email addresses.") rather than actual expected content. The LLM judge checks if the output literally contains this string, not whether the output actually has 5 email addresses. This differs from the Notion test which uses actual expected content ("Pizzeria Badiali") and will cause the Gmail test to fail even with correct outputs.
Note
Replaces the Gmail-only test with a multi-service Klavis MCP dataset (Gmail, Notion, Outlook), updates the MCP auth env var, and points the pytest to the new dataset.
tests/pytest/datasets/klavis_mcp_test.jsonlwith prompts/ground truths forGmail,Notion, andOutlook Calendar.tests/pytest/datasets/gmail_inbox.jsonl.tests/pytest/test_pytest_klavis_mcp.pyto useklavis_mcp_test.jsonl(adds brief Notion setup note).tests/pytest/mcp_configurations/klavis_strata_mcp.jsonauthorization fromBearer ${KLAVIS_API_KEY}toBearer ${KLAVIS_AUTH_TOKEN}.Written by Cursor Bugbot for commit 78dbd75. This will update automatically on new commits. Configure here.