feat(tools): add Brevo transactional email and SMS integration#5136
Open
Hustple wants to merge 1 commit intoaden-hive:mainfrom
Open
feat(tools): add Brevo transactional email and SMS integration#5136Hustple wants to merge 1 commit intoaden-hive:mainfrom
Hustple wants to merge 1 commit intoaden-hive:mainfrom
Conversation
- Add brevo_tool with 6 MCP tools: brevo_send_email, brevo_send_sms, brevo_create_contact, brevo_get_contact, brevo_update_contact, brevo_get_email_stats - Add CredentialSpec for BREVO_API_KEY in credentials/brevo.py - Register brevo_tool in tools/__init__.py and credentials/__init__.py - Add README with setup instructions and usage examples - Add 34 unit tests covering all tools, validation and error handling Closes aden-hive#5127
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds a Brevo integration that enables Hive agents to send transactional emails, SMS messages, and manage contacts via the Brevo API.
Type of Change
Related Issues
Fixes #5127
Changes Made
tools/src/aden_tools/tools/brevo_tool/brevo_tool.pywith 6 MCP tools:brevo_send_email,brevo_send_sms,brevo_create_contact,brevo_get_contact,brevo_update_contact,brevo_get_email_statstools/src/aden_tools/tools/brevo_tool/__init__.pywithregister_toolsexporttools/src/aden_tools/tools/brevo_tool/README.mdwith setup instructions and usage examplestools/src/aden_tools/credentials/brevo.pywithCredentialSpecforBREVO_API_KEYtools/tests/tools/test_brevo_tool.pywith 34 unit testsbrevo_toolintools/src/aden_tools/tools/__init__.pyBREVO_CREDENTIALSintools/src/aden_tools/credentials/__init__.pyTool Summary
Environment Variables
BREVO_API_KEYSetup Instructions
BREVO_API_KEYenvironment variable or configure via credential storeTesting
Verified import success:
Verified all 6 tools register correctly:
34 unit tests pass:
Tests cover:
brevo_send_email— success, input validation, auth error, timeoutbrevo_send_sms— success, phone format validation, content length, timeoutbrevo_create_contact— success, list_ids parsing, validation, timeoutbrevo_get_contact— success, not found, validation, timeoutbrevo_update_contact— success, list_ids parsing, validation, timeoutbrevo_get_email_stats— success, empty message_id, not found, timeoutChecklist