Skip to main content

Programming

Introduction to MCP Servers and writing one in Python

Introduction to MCP Servers and writing one in Python

The picture of this article is the output of Claude, using a local MCP server that gives it the output of the ls -l command on a given path. Notice how the LLM likes to praise me, exaggerating a bit. In my opinion this is just a method they use to keep the users hooked on their product. Who doesn’t like to be praised and approved with everything they say, right? :D
Cancellation Token Pattern in Python

Cancellation Token Pattern in Python

Hello! 👋 The Cancellation Token Pattern article is a pattern inspired by C#’s CancellationToken struct and Golang’s context package. The main idea of the pattern is to allow the user of an API to cancel its operations, but in order for this pattern to work, the API must be written with the cancellation token pattern in mind.