Building an MCP Server in Rust

Model Context Protocol (MCP) servers expose structured capabilities to AI clients. In this guide we will build a minimal Rust implementation that speaks MCP over standard input and standard output, so it can plug into any compliant client without socket plumbing. Along the way we will peek at the JSON-RPC envelope MCP relies on, map it to strongly typed Rust structures, and wire enough handlers to exercise the loop with real requests.

Ler mais β†’

Rust: Organizing Source Files in Separate Files and Directories

Rust's official documentation is formidable, but the explanation about file and directory structuring can seem confusing. In this article, I intend to show it in a simple way - without going deep into all possibilities and details. Let's check it out!

Ler mais β†’

Rust: Dealing with Error When Mixing Immutable and Mutable Borrows

When working with Rust, sooner or later you'll encounter the "error[E0502]: cannot borrow ... as immutable because it is also borrowed as mutable". Sometimes it happens when we try to do something simple, something we routinely do in other languages. Let's check out some solutions to work around this problem.

Ler mais β†’

Highly Productive Terminal with Fish

One of the most frustrating things I had when using Linux was the terminal experience - why on earth didn't the tab key work like it did on Windows? I even created a configuration doc for bash to get it the way I wanted. But after I discovered Fish, everything changed. It already brings many native features and with a few more configurations, it becomes unbeatable. Check it out!

Ler mais β†’

Enabling Hyper-V on Windows 10 Home

Anyone who works with software development for different platforms knows how important the practicality of virtual machines is. Until now, for those with Windows Home, the solution was to install software like Oracle VirtualBox. Microsoft's Hyper-V, by default, on workstation versions only comes enabled to run on Windows Professional. However, there's a trick to make it work on Windows Home.

Ler mais β†’