Ways of passing information using HTTP HTTP Header URL (Path parameters) Query strings Body Prompt: I’m trying to understand http protocol specifically for REST APIs I want you to explain scenarios where we choose which way of passing data to server for the below options * HTTP Header * URL (Path parameters) * Query strings… Continue reading Python Classroom notes 17/May/2026
Gen-AI Developer Classroom notes 17/May/2026
MCP – Client Building mcp client with fast mcp Refer Here for changes Using mcp servers in langchain As part of this we will build a very small agent which will have llm and also mcp servers Refer Here for the basic agent which adds the book to the library by calling mcp server
Gen-AI Developer Classroom notes 16/May/2026
Library – MCP We will try to connect our mcp server which interacts with database with claude Connecting to a mysql database Connection Cursor For python to speak with mysql it needs a connector (external package) External packages for mysql connection Sample insert record INSERT INTO `books` (`id`, `title`, `author`, `published_year`, `available_copies`, `total_copies`, `genre`, `available`,… Continue reading Gen-AI Developer Classroom notes 16/May/2026
Gen-AI Developer Classroom notes 14/May/2026
Running mcp servers closer what enterprises doe Organizations run mcp servers in 3 ways on virtual machines inside containers on a dedicated servers cloud hosted We will be using containerized option Step 1: Lets run mysql in a docker container Step 2: To view the data in mysql we have multiple ways IN the the… Continue reading Gen-AI Developer Classroom notes 14/May/2026
Python Classroom notes 14/May/2026
Options for building REST APIs in Python. To build rest apis we have following options Flask Django – restful Fast API We will be using FastAPI How does python program run behind http(s) A server listens to http and exposes the python files as a reaction to http calls We have two flavors WSGI (Web… Continue reading Python Classroom notes 14/May/2026
Gen-AI Developer Classroom notes 14/May/2026
Running mcp servers closer what enterprises doe Organizations run mcp servers in 3 ways on virtual machines inside containers on a dedicated servers cloud hosted We will be using containerized option Step 1: Lets run mysql in a docker container Step 2: To view the data in mysql we have multiple ways IN the the… Continue reading Gen-AI Developer Classroom notes 14/May/2026
Gen-AI Developer Classroom notes 13/May/2026
Resources in mcp Refer Here for the official docs Refer Here for the changes done to create a resource Refer Here for resource templates Refer Here for the changes done to create a resource template. Refer Here for official docs of prompts
Python Classroom notes 12/May/2026
Designing REST APIs A REST API (API) exposes your application as resources. A resource is usually a noun in your business domain. SuperMarket – Inventory Identify possible things or nouns in supermarket inventory | Business thing/noun | REST Resource | | ——————- | ————– | | Product | /products | | Supplier | /suppliers |… Continue reading Python Classroom notes 12/May/2026
Gen-AI Developer Classroom notes 12/May/2026
MCP Transport Streamable HTTP This mechanism suggests is designed to support over standard HTTP infrastructure request/response streaming responses bi-directional event-style communication tool execution progress long-running opertions Building simple mcp server with Streamable http transport Watch the video for steps Create a simple python project with server.py, ensure mcp[cli] package is added to venv from mcp.server.fastmcp… Continue reading Gen-AI Developer Classroom notes 12/May/2026
Python Classroom notes 10/May/2026
Problem statement Establishing communication between Two applications running in same machine Using files or streams Remoting Establishing communication between Two applications running in different machines Remoting (Technology specific) Webservices (SOAP) => (client is fat and data exchanges are bulky) HTTP Clients and data format is mostly json REST APIs GraphQL APIS GRPC (Google Remote Procedural… Continue reading Python Classroom notes 10/May/2026
Gen-AI Developer Classroom notes 10/May/2026
MCP Server integration points In our current case we are trying to build an mcp server for library There is already a library management system. IN this cases we have two options act as library management systems client connect directly to library mangement system database. MCP Server for inventory management We will be developing a… Continue reading Gen-AI Developer Classroom notes 10/May/2026
Python Classroom notes 09/May/2026
Asyncio Programming Refer Here for the notebook Refer Here for the other code written in class
Gen-AI Developer Classroom notes 09/May/2026
Anti-pattern Never generate MCP server from Rest APIs you already have api’s now you an mcp server that does not mean generate mcp from api using some generators FastMCP – Python library for building mcp servers Refer Here for official docs Lets create mcp server for our library install nvm # search for # windows… Continue reading Gen-AI Developer Classroom notes 09/May/2026
Python Classroom notes 06/May/2026
Multiprocessing vs Threads GIL with threads Multiprocessing Prompt show me how to use multiprocessor to solve the GIL problem with a simple code in python Also show threading and then multiprocessor Asynchronous programming Is ideal for I/O bound In synchronous programming we perform tasks sequentially
Gen-AI Developer Classroom notes 06/May/2026
Designing an mcp server Identifying Tools Mental Model What actions do we expect ai to perform on behalf of some user or role. It should not be everything or too much specific Identify roles/user types Identifying Resources Mental Model What data would ai need Identifying Prompts Mental Model What are most obvious things which ai… Continue reading Gen-AI Developer Classroom notes 06/May/2026
Python Classroom notes 05/May/2026
Parallelism We have two categories of problems I/O bound Waiting for network to respond, db to respond CPU bound Problem or villian in this story with threads is GIL Concurrency (CPU Bound) => how to use cores How to make my program non blocking i.e. when some code is waiting for something to happen, other… Continue reading Python Classroom notes 05/May/2026
Gen-AI Developer Classroom notes 05/May/2026
JSON-RPC This defines the structure of communication payload Request { "jsonrpc": "2.0", "id": 1, "method": "user.getById", "params": { "id": 42 } } Response { "jsonrpc": "2.0", "id": 1, "result": { "id": 42, "name": "Alice" } } Sampling This is a concept where mcp server uses llm associated with client to get some llm response How… Continue reading Gen-AI Developer Classroom notes 05/May/2026
Gen-AI Developer Classroom notes 05/May/2026
JSON-RPC This defines the structure of communication payload Request { "jsonrpc": "2.0", "id": 1, "method": "user.getById", "params": { "id": 42 } } Response { "jsonrpc": "2.0", "id": 1, "result": { "id": 42, "name": "Alice" } } Sampling This is a concept where mcp server uses llm associated with client to get some llm response How… Continue reading Gen-AI Developer Classroom notes 05/May/2026
Gen-AI Developer Classroom notes 04/May/2026
MCP Contd Visual studio Code supports multiple programming languages intellisense, for this microsoft has given a specification called Language server protocol. In Anthropic a developer name David sora was working on internal project and he was use claude desktop Copying code from claude and executing which he didn’t liked, inspired from LSP he formulated MCP… Continue reading Gen-AI Developer Classroom notes 04/May/2026
Python Classroom notes 30/Apr/2026
Pytest Lets create a new virtual environment with pytest Create a new folder and cd into it uv init . uv add pytest code . select python interpreter (ctrl + shift + p) and select current interpreter Create a new file called as test_main.py Prompt You are a python expert I have started learning how… Continue reading Python Classroom notes 30/Apr/2026
