MCP in 30 lines: it's just standardized function calling
MCP isn't magic: it's a JSON-RPC protocol that turns last post's hardcoded cat tool into a standalone process any LLM app can use. 30 lines of runnable server + client.
2 posts
MCP isn't magic: it's a JSON-RPC protocol that turns last post's hardcoded cat tool into a standalone process any LLM app can use. 30 lines of runnable server + client.
Strip away the frameworks and an agent is just a loop: call the API to ask the model → run the tool → feed the result back. One complete runnable example, using DeepSeek.