Spaces:
Running
Add MCP support
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.
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!
@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)
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)
tested it works now with the current space
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
woah this is so cool π€―