Gen-AI Developer Classroom notes 13/Dec/2025

MCP Transport – Streamable HTTP

Features

  • Bi-directional
  • Single endpoint
  • Resumability
  • Notifications: notifications are possible in SSE, Streamable http makes it seamless

Similarities

  • To make streamable http run on top of ASGI server looks exactly the same but over endpoint /mcp

Build a streamable-http caclulator.

  • run the server uv run server.py
  • you can use it from mcp inspector mcp dev server.py
  • from claude desktop Refer Here. Add the below section to mcpServers in json
"calc-streamable": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://localhost:8000/mcp/"
      ]
    }

Exercise

  • I want you to run swiggy-mcp with transport streamable-http and integrate with claude desktop.
  • note: ensure mcp server is running uv run customercare.py

Waiting for you to run this till 9:00 AM

"swiggy-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://localhost:8000/mcp/"
      ]
    }   

Next Steps:

  • Lets make swiggy-mcp asynchronous and run on ASGI Server. We will be using FastAPI for this (we can also use starlette and run using uvicorn.)

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading