Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
julien-c 
posted an update 2 days ago
Post
3203
BOOOOM: Today I'm dropping TINY AGENTS

the 50 lines of code Agent in Javascript 🔥

I spent the last few weeks working on this, so I hope you will like it.

I've been diving into MCP (Model Context Protocol) to understand what the hype was all about.

It is fairly simple, but still quite powerful: MCP is a standard API to expose sets of Tools that can be hooked to LLMs.

But while doing that, came my second realization:

Once you have a MCP Client, an Agent is literally just a while loop on top of it. 🤯

➡️ read it exclusively on the official HF blog: https://huggingface.co/blog/tiny-agents

did u understand how to actually retrieve all the tools?
I'm trying to build an MCP Client (the one interacting with the servers) and found that simply initializing it with the jsonrpc doesn't actually return the tools. I have to pass "tools/list" as the method and then it returns the tools... but they are not separated into "resources", "tools" and "prompts" or whatever... i cant get the prompts at all in fact!
not even "prompts/list" works in the jsonrpc....