Add Bugzilla quicksearch to MCP server#5580
Add Bugzilla quicksearch to MCP server#5580loganrosen wants to merge 1 commit intomozilla:masterfrom
Conversation
mcp/src/bugbug_mcp/server.py
Outdated
| Quick search allows natural language searches and supports various shortcuts: | ||
| - Bug numbers: "12345" or "bug 12345" | ||
| - Keywords: "crash", "regression" | ||
| - Status: "NEW", "FIXED", "ASSIGNED" | ||
| - Products/Components: "Firefox", "Core::DOM" | ||
| - Combinations: "firefox crash NEW" |
There was a problem hiding this comment.
The Quick Search does not really support natural-language search. The Quick Search enables shortcuts, e.g, Status:RESOLVED (without space after :), which get converted to an advanced search.
Here is how to use it: https://bugzilla.mozilla.org/page.cgi?id=quicksearch.html
I think something like a Skill would be more suitable for this, since explaining it in the tool description would be overkill.
I'm curious to learn about your use case for this tool.
There was a problem hiding this comment.
Makes sense. My use case is wanting to find any existing bugs that might be related to something I discover in the code while working on the Firefox codebase vs. having to manually search Bugzilla in my browser. I can clarify the guidance in a skill and keep the tool lightweight for performing the queries. What do you think?
There was a problem hiding this comment.
@loganrosen, sorry for the late reply. It seems that I missed the notification.
Creating a lightweight tool to perform the queries sounds good to me. We could try it without a skill at first, just by pointing to the doc's URL. The URL could trigger relevant context, and the model might know how to use it even without fetching the URL.
There was a problem hiding this comment.
Sounds good — I've updated the docstring to drop the natural-language claim and just link to the quicksearch docs. Let me know if the updated description looks alright.
f20a5f5 to
123c6a1
Compare
123c6a1 to
3a5b45c
Compare
Adding support for Bugzilla quicksearch to the MCP server so that people working on Firefox code can easily find relevant bugs while using AI assistance in their editor. Example output:
I've also made the API keys optional because I don't think they should be required for someone developing on this MCP server. Please let me know if you think otherwise.