Last active
September 20, 2021 12:34
-
-
Save geastwood/b7d70beacecd0a1fb388dcb9bef2b500 to your computer and use it in GitHub Desktop.
MCP: set profile
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
sequenceDiagram | |
autonumber | |
participant U as User | |
participant E as Browser Extension | |
participant M as MCP App | |
participant B as MCP B/E | |
participant T as Twitter | |
U-)E: Trigger "Set Profile Picture" | |
E-)M: Redirect to MCP App | |
M-)B: Fetch Available NFTs | |
M-)M: User choose a NFT | |
alt Get permission from Twitter (R+W) | |
B-)U: give permission | |
else | |
B-)U: user reject | |
end | |
M-)B: Trigger "Set Profile process" | |
alt Sanity check (1) | |
B-)T: Passing: Upload new Twitter profile picture | |
note over B,T: user has ownership to chosen NFT. | |
T-)B: B/E record the "hash" of the profile picture | |
else | |
B-)M: Failing | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment