Skip to content

Working notes on AI systems and the software under them.

Language models, agents and the protocols wiring them to real tools. Linux, Python and the tooling underneath. Written up as I learn it, one post at a time.

EngineeringFeatured

Feb 24, 2025

Part 2 of 3 · The Model Context Protocol

Docker's Dynamic MCP and the Context Window Problem

Fifty tool definitions crammed into the context window costs tokens, degrades reasoning, and risks hallucinations. Docker's containerized MCP Gateway and dynamic discovery flip the model.

55 min read

Kushan Manahara

Machine Learning Engineer · personal engineering publication

articles
56
topics
7
reposts
0

Most viewed articles

What people actually read this year.

View allView all

Latest writing

Filter by what you came for.

View allView all

Series

Longer arguments, split into parts.

All series
4parts

Moving to Linux

Picking the OS, understanding why the tooling favours it, then fixing the things that break first.

Read the series
  1. Why Programmers Keep Choosing Linux
  2. Choosing an Operating System for Programming
  3. How to Install MySQL on Kali Linux
  4. Fixing the Legacy trusted.gpg Keyring Warning on apt update
2parts

Regression, Explained

The two models everything else is built on, worked through from the maths outward.

Read the series
  1. Linear Regression Explained
  2. Logistic Regression Explained
3parts

The Model Context Protocol

What MCP solves, what happens to the context window at scale, and where it sits next to A2A.

Read the series
  1. Why I'm Excited About MCP
  2. Docker's Dynamic MCP and the Context Window Problem
  3. MCP and A2A Are Layers, Not Rivals
5parts

PyTorch

Building the framework up from its one real primitive — the tensor — through autograd and the training loop.

Read the series
  1. PyTorch: From Tensor to Neural Network
  2. Autograd: How PyTorch Learns
  3. nn.Module: Building Networks That Hold Together
  4. Datasets and DataLoaders: Keeping the GPU Fed
  5. Training for Real: GPUs, Mixed Precision, and Schedules
6parts

Deep Learning

First-principles deep learning: from a single neuron and the XOR barrier to parameter counts, FLOPs, activation functions, Softmax, and the losses that train neural networks.

Read the series
  1. From One Neuron to Deep Neural Networks
  2. Counting Neural Network Parameters and FLOPs
  3. Activation Functions: Why ReLU Replaced Sigmoid
  4. GELU, SiLU, and Softmax: Choosing by Layer
  5. Loss Functions: Measuring Model Error
  6. Why Loss Functions Use the Log, and KL Divergence

Teaching on YouTube

Brain Link

Explore. Understand. Build.

An educational platform exploring the science, mathematics, and engineering behind artificial intelligence and modern computing.

@Brain-Link-ai

Topics

Things I keep coming back to.

All topicsAll topics

Join the mailing list

One email when a post goes out. No digests, no drip sequence, no sponsors.

  • 01New posts, and corrections to old ones
  • 02The occasional note on something I got wrong

Join the technical mailing list. Free updates, unsubscribe in one click.

What readers say

5 out of 5 stars5.0 from 1 review