feat(gmail): Add from_name parameter for sender display name #352
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
from_nameparameter tosend_gmail_messageanddraft_gmail_messagefunctions"Name <email>"instead of just the email addressMotivation
Currently, emails sent via the MCP server only include the bare email address in the From header, even when the user has a display name configured in their Gmail account settings. This differs from composing emails directly in Gmail, where the display name is automatically included.
This change allows users to specify their display name when sending emails, resulting in a more professional appearance and consistency with Gmail's native behaviour.
Example usage
Results in:
From: Peter Hartree <[email protected]>Test plan
send_gmail_messagewithfrom_nameparameter - From header correctly formatteddraft_gmail_messagewithfrom_nameparameter - draft shows correct From headerfrom_nameparameter - backwards compatible, behaves as before🤖 Generated with Claude Code