Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion tests/pytest/datasets/gmail_inbox.jsonl

This file was deleted.

2 changes: 2 additions & 0 deletions tests/pytest/datasets/klavis_mcp_test.jsonl
Original file line number Diff line number Diff line change
@@ -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." }

Copy link
Copy Markdown

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.

Fix in Cursor Fix in Web

{"messages": [ { "role": "system", "content": "You are a helpful assistant that can answer questions about Notion. You have access to tools to help you find information." }, { "role": "user", "content": "In the notion Toronto guide, help me to find a pizza restaurant which is able to takeout" } ], "ground_truth": "Pizzeria Badiali" }
3 changes: 2 additions & 1 deletion tests/pytest/test_pytest_klavis_mcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ class ResponseFormat(BaseModel):
score: float


# You should copy https://painted-tennis-ebc.notion.site/MCPMark-Source-Hub-23181626b6d7805fb3a7d59c63033819 into your Notion for the notion test.
@evaluation_test(
input_dataset=["tests/pytest/datasets/gmail_inbox.jsonl"],
input_dataset=["tests/pytest/datasets/klavis_mcp_test.jsonl"],
rollout_processor=AgentRolloutProcessor(),
completion_params=[{"model": "fireworks_ai/accounts/fireworks/models/kimi-k2-instruct"}],
mode="pointwise",
Expand Down
Loading