Skip to content

Instantly share code, notes, and snippets.

@geastwood
Last active September 20, 2021 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geastwood/b7d70beacecd0a1fb388dcb9bef2b500 to your computer and use it in GitHub Desktop.
Save geastwood/b7d70beacecd0a1fb388dcb9bef2b500 to your computer and use it in GitHub Desktop.
MCP: set profile
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