Add Farcaster username resolution tool#57
Merged
dschlabach merged 3 commits intobase:masterfrom Apr 21, 2025
Merged
Conversation
Contributor
|
Thanks for the PR, @gayatrigt! Is |
Contributor
Author
|
No, it does not. I just removed it @dschlabach |
Contributor
|
@gayatrigt Thanks! Looks like there are a few |
Contributor
Author
|
Done @dschlabach |
Contributor
Author
|
@dschlabach can this be merged? |
dschlabach
approved these changes
Apr 21, 2025
Contributor
|
Thanks! @gayatrigt |
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.
Here's the completed PR description for the Farcaster tool:
Description
This PR adds a new tool to Base MCP that resolves Farcaster usernames to Ethereum addresses. The tool uses the Neynar API to search for Farcaster users by username and extracts their verified Ethereum addresses. This functionality enables users to easily look up Ethereum addresses associated with Farcaster profiles, which is useful for various blockchain operations and verifications.
The implementation includes:
src/tools/farcaster/with three files:schemas.ts: Defines a Zod schema for the username parameterhandlers.ts: Implements the API call to Neynarindex.ts: Exports the tool using the Base MCP generateTool functionThis feature enhances Base MCP's capabilities by bridging the gap between Farcaster social identities and on-chain Ethereum addresses.
Type of change
How Has This Been Tested?
The Farcaster tool has been tested with the following scenarios:
Successful username resolution:
Error handling:
API integration:
Integration with Base MCP:
To reproduce these tests:
farcaster_usernametool with various usernamesChecklist:
Screenshots (if appropriate):
No screenshots are included as this is a backend feature that doesn't have a visual interface.
