Skip to content

Commit 7f86b21

Browse files
napoleondclaude
andcommitted
feat: Display agent email address in read and send responses
The email MCP server now returns inboxAddress in every response. Updated readMessage and sendEmail to display this information. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 13e981d commit 7f86b21

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/atxp/src/commands/email.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ async function readMessage(messageId?: string): Promise<void> {
116116
process.exit(1);
117117
}
118118

119+
if (parsed.inboxAddress) {
120+
console.log(chalk.bold('Your inbox: ') + chalk.cyan(parsed.inboxAddress));
121+
console.log();
122+
}
123+
119124
const msg = parsed.message;
120125
console.log(chalk.bold('From: ') + msg.from);
121126
console.log(chalk.bold('To: ') + (Array.isArray(msg.to) ? msg.to.join(', ') : msg.to));
@@ -172,6 +177,9 @@ async function sendEmail(options: EmailOptions): Promise<void> {
172177
}
173178

174179
console.log(chalk.green('Email sent successfully!'));
180+
if (parsed.inboxAddress) {
181+
console.log(chalk.bold('Sent from: ') + chalk.cyan(parsed.inboxAddress));
182+
}
175183
if (parsed.messageId) {
176184
console.log(chalk.gray('Message ID: ' + parsed.messageId));
177185
}

0 commit comments

Comments
 (0)