No description provided.

Adds support for MCP and can enable tool calling from there. Please let me know if this is not in the scope of this project.

shreyask changed pull request status to open

test.png

here is a sample of the tool call with MCP

Liquid AI org

Thanks @shreyask ! cc @Xenova (not sure you get these notifications)

Hi! This looks super interesting! πŸ”₯ I don't have enough bandwidth to review/test it myself, but perhaps we can create a separate demo page (either under @shreyask 's page, or an official space here if the team would like :)) so we don't break anything and to keep the original demo as simple as possible (as it emphasizes that everything runs in-browser without any external calls).

Thanks for you contribution!

Thanks @Xenova ! Really appreciate the comment. I am happy with either of the suggestions. Have tested the MCP part with no auth, bearer and OAuth flows. Let me know if hosting on the official page is an option @mlabonne

Liquid AI org

Sure! @shreyask could you host the space on your account first so we can test it? Thanks again!

@mlabonne and @Xenova here is the link to the space. https://huggingface.co/spaces/shreyask/LFM2-WebGPU-MCP caveat that some OAuth MCP servers block requests form hosted space due to CORS (they do allow localhost requests tho)

Liquid AI org

Excellent! Would it be possible to add one or two MCP servers by default for people to test them without needing to configure them manually? πŸ™

Sounds good. Do you have any recommendations in mind? Once this is done can clean up readme etc too.

I’m thinking of the HF MCP server or a space that has MCP (no auth)

Ran into an issue with OAuth redirect (I get a 404 in HF spaces) @Xenova is there something I am missing. Sorry relatively new to spaces. Any suggestions would be appreciated. πŸ™

Ran into an issue with OAuth redirect (I get a 404 in HF spaces) @Xenova is there something I am missing. Sorry relatively new to spaces. Any suggestions would be appreciated. πŸ™

nvm fixing this using hash based router

tested it works now with the current space

Liquid AI org

Yes, that'd be awesome! Sorry, I can't see it in https://huggingface.co/spaces/shreyask/LFM2-WebGPU-MCP?

Will add that today, needed to tweak the UI so we can add the server but leave the auth to users. Also added an no auth server.

@mlabonne @Xenova made a few changes (refine copy and added pre-canned MCP servers) I really wanted to add the HF MCP server but ran into this https://github.com/modelcontextprotocol/typescript-sdk/issues/764 issue where the MCP SDK works slightly differently in browser vs with MCP clients and MCP inspector. Hence I added documentation servers from GitMCP hope that is okay attaching screenshots from the new version of the app here

Screenshot 2025-08-19 at 8.28.50β€―PM.png

Screenshot 2025-08-19 at 8.23.34β€―PM.png

Screenshot 2025-08-19 at 8.24.02β€―PM.png

Screenshot 2025-08-19 at 8.24.40β€―PM.png

woah this is so cool 🀯

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment