Skip to content

Conversation

google-labs-jules[bot]
Copy link
Contributor

This change combines the auth_get_user and auth_list_users MCP tools into a single auth_get_users tool with optional uids and emails arguments. It also removes unused variables and ensures that sensitive fields are pruned from the output.


PR created automatically by Jules for task 14520879572885862082

Combines the `auth_get_user` and `auth_list_users` MCP tools into a single `auth_get_users` tool.

This new tool has two optional arguments, `uids` and `emails`.
- When no arguments are provided, it behaves like `auth_list_users`.
- When either `emails` or `uids` is provided, it looks up users by the provided identifiers.

Removes unused variables and ensures that `passwordHash` and `salt` fields are consistently removed from all user objects returned by the tool.
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback. For any comments you don't want me to act on, just include (aside).



For security, I will only act on instructions from the user who triggered this task for this pull request.

@joehan
Copy link
Contributor

joehan commented Sep 23, 2025

/gemini review

Copy link
Contributor Author

/gemini review

I see you've requested a review from Gemini. I'm not able to trigger that review myself. Please let me know if there's anything else I can do to help.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully combines the auth_get_user and auth_list_users tools into a single auth_get_users tool, which simplifies the toolset. The implementation is clean and the tests cover the basic functionality.

I've added a couple of suggestions:

  • In src/mcp/tools/auth/get_users.ts, I've pointed out a performance issue where user lookups are done sequentially. I've suggested a refactoring to perform these lookups in parallel using Promise.all, which also helps reduce some code duplication.
  • In src/mcp/tools/auth/get_users.spec.ts, I've suggested adding a test case for when both uids and emails are provided to ensure the prioritization logic is explicitly tested.

Overall, this is a good change that improves the API. Addressing these points will make the new tool more robust and performant.

@joehan joehan marked this pull request as ready for review September 23, 2025 15:56
@joehan joehan requested a review from nohe427 September 24, 2025 17:06
Copy link
Contributor

@nohe427 nohe427 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still looking

@nohe427 nohe427 requested a review from joehan September 24, 2025 19:52
@nohe427
Copy link
Contributor

nohe427 commented Sep 24, 2025

Passing back to Joe. Changed a few things so it should be better

Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joehan joehan enabled auto-merge (squash) September 24, 2025 19:55
@joehan joehan merged commit 431e674 into master Sep 24, 2025
48 checks passed
@joehan joehan deleted the feature/combine-auth-tools branch September 24, 2025 21:02
@github-project-automation github-project-automation bot moved this from Approved [PR] to Done in [Cloud] Extensions + Functions Sep 24, 2025
annajowang pushed a commit that referenced this pull request Sep 26, 2025
* feat(mcp): Combine auth_get_user and auth_list_users tools

Combines the `auth_get_user` and `auth_list_users` MCP tools into a single `auth_get_users` tool.

This new tool has two optional arguments, `uids` and `emails`.
- When no arguments are provided, it behaves like `auth_list_users`.
- When either `emails` or `uids` is provided, it looks up users by the provided identifiers.

Removes unused variables and ensures that `passwordHash` and `salt` fields are consistently removed from all user objects returned by the tool.

* Formats

* Parallelize calls

* Small fixes

* npm format

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Joe Hanley <joehanley@google.com>
Co-authored-by: Alexander Nohe <nohe@google.com>
jrothfeder pushed a commit that referenced this pull request Oct 2, 2025
* feat(mcp): Combine auth_get_user and auth_list_users tools

Combines the `auth_get_user` and `auth_list_users` MCP tools into a single `auth_get_users` tool.

This new tool has two optional arguments, `uids` and `emails`.
- When no arguments are provided, it behaves like `auth_list_users`.
- When either `emails` or `uids` is provided, it looks up users by the provided identifiers.

Removes unused variables and ensures that `passwordHash` and `salt` fields are consistently removed from all user objects returned by the tool.

* Formats

* Parallelize calls

* Small fixes

* npm format

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Joe Hanley <joehanley@google.com>
Co-authored-by: Alexander Nohe <nohe@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants