[{"data":1,"prerenderedAt":258},["ShallowReactive",2],{"tag-labels":3,"site-header":4,"article-mcp-v2-upgrade-drops-your-instructions-en":75},{},{"featuredPost":5,"navigations":29},{"id":6,"title":7,"title_id":8,"slug":9,"excerpt":10,"excerpt_id":11,"has_translation":12,"published_at":13,"reading_time":14,"hidden_from_listing":15,"tags":16,"thumbnail_image":21,"og_image":22,"series":23,"authors":28},110,"When You Pick a Framework Just to Look Different","Ketika Pilih Framework Cuma Biar Kelihatan Beda","ketika-pilih-framework-cuma-biar-kelihatan-beda","The last time you chose a new framework or library, was it because your problem needed that tool, or because it sounded cool and few people around you were using it? That question is uncomfortable. Technology decisions are often made for reasons that never appear in any technical document.","Terakhir kali kamu milih framework atau library baru, itu karena masalahmu butuh alat itu, atau karena alatnya kedengaran keren dan belum banyak yang pakai? Pertanyaan ini nggak enak dijawab. Soalnya keputusan teknologi sering diambil dengan alasan yang nggak pernah ditulis di dokumen teknis mana pun.",true,"2026-10-06T15:25:21.000Z",5,false,[17,18,19,20],"karier","framework","opini","pengalaman",null,"\u002Fog\u002Fketika-pilih-framework-cuma-biar-kelihatan-beda.png",{"id":24,"title":25,"title_id":26,"slug":27},9,"Articles","Artikel","all",[],[30,49,70],{"collection":31,"item":32},"series",{"__typename":31,"title":25,"title_id":26,"slug":27,"children_series":33},[34,38,42,46],{"title":35,"title_id":36,"slug":37},"Artificial Intelligence","Kecerdasan Artifisial","kecerdasan-artifisial",{"title":39,"title_id":40,"slug":41},"Programming Fundamentals","Konsep Dasar Pemrograman","konsep-dasar-pemrograman",{"title":43,"title_id":44,"slug":45},"Algorithms and Data Structures","Algoritma dan Struktur Data","algoritma-struktur-data",{"title":47,"title_id":47,"slug":48},"LLM Systems","llm-systems",{"collection":31,"item":50},{"__typename":31,"title":51,"title_id":51,"slug":52,"children_series":53},"Tutorial","tutorial",[54,58,62,66],{"title":55,"title_id":56,"slug":57},"Learning Python","Belajar Python","belajar-python",{"title":59,"title_id":60,"slug":61},"Learning Go","Belajar Golang","belajar-golang",{"title":63,"title_id":64,"slug":65},"Learning Java","Belajar Java","belajar-java",{"title":67,"title_id":68,"slug":69},"Learning Pascal","Belajar Pascal","belajar-pascal",{"collection":31,"item":71},{"__typename":31,"title":72,"title_id":72,"slug":73,"children_series":74},"Lab","lab",[],{"article":76,"renderedBody":124,"renderedTakeaway":125,"latestArticles":126,"toc":238},{"id":77,"title":78,"title_id":79,"slug":80,"excerpt":81,"excerpt_id":82,"has_translation":12,"published_at":83,"reading_time":84,"hidden_from_listing":15,"tags":85,"thumbnail_image":21,"og_image":91,"series":92,"authors":116,"seoTitle":21,"seoDescription":21,"body_locale":119,"available_locales":120,"body":122,"takeway":123,"prerequisite":21},159,"The MCP v2 upgrade boots fine and quietly drops your instructions","Upgrade MCP v2 boot dengan normal, lalu diam-diam membuang instruksimu","mcp-v2-upgrade-drops-your-instructions","Your MCP server starts after the upgrade and the agent stops following the rules you wrote into it. The constructor arguments moved one slot, and nothing raised an error.","Server MCP-mu menyala setelah upgrade, tapi agent berhenti mengikuti aturan yang kamu tulis di dalamnya. Argumen constructor bergeser satu slot, dan tidak ada yang melempar error.","2026-11-17T01:00:00.000Z",7,[86,87,88,89,90],"mcp","model-context-protocol","ai-agent","python","backend","\u002Fog\u002Fmcp-v2-upgrade-drops-your-instructions.png",{"id":93,"title":47,"title_id":47,"slug":48,"description":94,"description_id":95,"articles":96,"children_series":106,"parent_series":107},31,"How AI agents are wired: the protocols they speak, where the design leaks, and what it costs to run them.","Cara agent AI dirangkai: protokol yang mereka pakai, di mana desainnya bocor, dan berapa biaya menjalankannya.",[97],{"id":77,"title":78,"title_id":79,"slug":80,"excerpt":81,"excerpt_id":82,"has_translation":12,"published_at":83,"reading_time":84,"hidden_from_listing":15,"tags":85,"thumbnail_image":21,"og_image":91,"series":98,"authors":99},{"id":93,"title":47,"title_id":47,"slug":48},[100],{"authors_id":101},{"id":102,"name":103,"slug":104,"role":105,"profile_picture":21},1,"Daffa Izzuddin","izzudd","Writer",[],{"id":24,"title":25,"title_id":26,"slug":27,"parent_series":21,"children_series":108},[109,111,113,115],{"id":110,"title":35,"title_id":36,"slug":37,"cover_image":21},8,{"id":112,"title":39,"title_id":40,"slug":41,"cover_image":21},12,{"id":114,"title":43,"title_id":44,"slug":45,"cover_image":21},15,{"id":93,"title":47,"title_id":47,"slug":48,"cover_image":21},[117],{"authors_id":118},{"id":102,"name":103,"slug":104,"role":105,"profile_picture":21},"en",[119,121],"id","\nAfter running `pip install -U mcp` and restarting a server, the process boots, the logs look normal, and tool calls return answers. The agent still stops following the server instructions because that string no longer reaches the model. Nothing in the logs explains it because nothing raises.\n\n## The errors that fail loudly\n\nIf your server imports `FastMCP` the old way, the upgrade stops you at the first line. Here is the exact message I measured on mcp 2.3.0.\n\n```plain\n$ python3 -c \"from mcp.server.fastmcp import FastMCP\" 2>&1 | tail -1\nModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https:\u002F\u002Fpy.sdk.modelcontextprotocol.io\u002Fv2\u002Fmigration\u002F#fastmcp-renamed-to-mcpserver or pin 'mcp\u003C2' to keep running v1 code.\n```\n\nThe message names its own fix: FastMCP is now `MCPServer`, and the text links the migration guide. It also offers a second exit, which is to pin `mcp\u003C2` and keep running v1 code. `McpError` fails the same way. Importing it from `mcp.shared.exceptions` raises ImportError, and the message names `MCPError` as the replacement.\n\nThe migration guide lists the changes almost every project hits. The rename is the first. Fields moving from camelCase to snake_case is the second, and it shows up as `AttributeError: 'Tool' object has no attribute 'inputSchema'`. Removed `mcp.types` names are the third, starting with `ImportError: cannot import name 'Content' from 'mcp.types'`. Each one stops the process at startup, so you catch it immediately.\n\n## The argument that changed meaning\n\nThe v1 constructor took name, then instructions, then website_url and icons. The v2 constructor takes name, title, description, instructions, website_url, icons and version. Two new slots now sit in front of `instructions`. If you passed it positionally, it landed in the wrong slot.\n\nBoth slots accept a str or None, so the call still runs. This is what I measured.\n\n```plain\n$ python3 -c \"from mcp.server import MCPServer; m=MCPServer('Demo','You answer questions about the weather.'); print(repr(m.title), m.instructions)\"\n'You answer questions about the weather.' None\n```\n\nThe sentence sits in `.title`, and `.instructions` is None. I connected an in-process client to that server. It received `serverInfo.title` set to your sentence and `instructions` as None. The model gets a display name where it expected a briefing. Nothing raised, and your tests stay green unless one of them reads the instructions field.\n\nThe fix is one keyword: pass `instructions=` by name, as the corrected server in the last section does. The client then receives the string, and `title` is None.\n\nTwo defaults moved as well. A server built with no arguments reports the name `mcp-server`. And `LATEST_PROTOCOL_VERSION` now holds a different date.\n\n```plain\n$ python3 -c \"from mcp.server import MCPServer; from mcp.types import LATEST_PROTOCOL_VERSION as v; print(MCPServer().name, v)\"\nmcp-server 2026-07-28\n```\n\n## The rest of the silent changes\n\nTransport settings left the constructor. Host, port, stateless_http, json_response, endpoint paths and transport_security now go to `run()` and the app builders. Passing `port` to the constructor fails with a `TypeError`, so you catch it right away.\n\n```plain\n$ python3 -c \"from mcp.server import MCPServer; MCPServer('x', port=9000)\" 2>&1 | tail -1\nTypeError: MCPServer.__init__() got an unexpected keyword argument 'port'\n```\n\n`mount_path` is gone too. Mounting the ASGI app is the supported way to serve under a prefix.\n\nAn `MCPError` raised inside a tool now becomes a protocol error, and the model never sees it. Other exceptions surface as \"Error executing tool\". If you raised `McpError` to give the model a hint, that hint is gone.\n\nA sync `def` handler now runs on a worker thread instead of the event loop, so reread any handler that assumed the loop's thread.\n\nThe Streamable HTTP lifespan runs once at startup instead of once per session. Anything you set up there is now shared across sessions.\n\nThe HTTP client is now httpx2. It validates TLS through truststore against the operating system trust store, not certifi's bundle. A minimal container with no system CA store starts failing the handshake.\n\nThe wire types moved to a separate `mcp-types` distribution. `import mcp.types` remains a permanent alias, so those imports keep working.\n\n## The protocol moved in the same revision\n\nThe SDK now implements the 2026-07-28 revision. The earlier dates are 2024-11-05, 2025-03-26, 2025-06-18 and 2025-11-25. In v1, `LATEST_PROTOCOL_VERSION` was 2025-11-25, the version the client offered during initialization. In v2 it is 2026-07-28, which the initialize handshake cannot negotiate. An in-process `Client(server)` on my box negotiated 2026-07-28 anyway.\n\nAt that revision a client does not open a connection, negotiate, then talk. Every request carries its protocol version, client info and client capabilities in `_meta`. `server\u002Fdiscover` is a plain request. Over Streamable HTTP there is no `Mcp-Session-Id` on the 2026 path, so anything keyed on that header sees nothing there.\n\nEvery server-initiated request is gone. On a 2026 connection, `ctx.elicit()` and `ctx.session.create_message()` fail with `NoBackChannelError`. They still work for legacy clients. The replacement returns the question from a tool, through a parameter annotated with `Resolve(...)`.\n\nOne app serves both eras. The same app answers a 2025-era client's initialize and a 2026-era client's requests, with no flag to flip and no separate deployment. So a single test client proves little. An elicit call can pass against an old client and fail against a new one.\n\n## What to do this week\n\nThis is the corrected server. I ran it against the in-process client, and the instructions arrived as 'Answer with the article table schema before you search.' while `title` was None. The tool registered with a schema derived from the type hints. Calling it returned \"Found 3 articles matching 'mcp'.\"\n\n```python\n# server.py\nfrom mcp.server import MCPServer\n\nmcp = MCPServer(\n    \"Invasikode Database Server\",\n    instructions=\"Answer with the article table schema before you search.\",\n)\n\n\n@mcp.tool()\ndef search_articles_by_keyword(keyword: str, limit: int = 5) -> str:\n    \"\"\"Search articles by a keyword in the title.\n\n    Args:\n        keyword: The search keyword.\n        limit: Maximum number of articles returned.\n    \"\"\"\n    return f\"Found {limit} articles matching '{keyword}'.\"\n```\n\nIf you are not migrating this week, pin `mcp\u003C2`. The v1.x line is in maintenance, still gets critical bug fixes and security patches, and keeps its docs at \u002Fv1\u002F. A library that depends on `mcp` should hold an upper bound such as `mcp>=1.28,\u003C2` until it has migrated.\n\nIf you are migrating, check the `instructions` argument first because passing it positionally fails without an error.\n\n## What I could not verify\n\nI measured everything above on mcp 2.3.0 and Python 3.14.9 on one Linux box with an in-process client. I did not test a Streamable HTTP deployment, a multi-replica `request_state` setup, or the truststore handshake failure in a minimal container. The thread, lifespan, and httpx2 changes come from the SDK docs rather than local runs.\n\nCheck your `MCPServer(...)` constructor call and make sure `instructions` is passed by keyword.\n","- The Python SDK v2 rename fails loudly: `FastMCP` is `MCPServer` now, and the old import raises `ModuleNotFoundError` that names its own replacement.\n- The dangerous change is positional: `instructions` moved to the fourth constructor slot, so a v1 call puts your briefing in `title` and leaves `instructions` empty, with no error.\n- Transport options left the constructor, so `MCPServer('x', port=9000)` raises `TypeError` and the port belongs on `run()` instead.\n- The protocol moved to `2026-07-28` in the same release, so there is no handshake, no session, and no server-initiated request on a modern connection.\n- Pin `mcp\u003C2` if you are not migrating this week, because the v1 line is in maintenance and still receives security patches.","\u003Cp>After running \u003Ccode>pip install -U mcp\u003C\u002Fcode> and restarting a server, the process boots, the logs look normal, and tool calls return answers. The agent still stops following the server instructions because that string no longer reaches the model. Nothing in the logs explains it because nothing raises.\u003C\u002Fp>\n\u003Ch2 id=\"the-errors-that-fail-loudly\">The errors that fail loudly\u003C\u002Fh2>\n\u003Cp>If your server imports \u003Ccode>FastMCP\u003C\u002Fcode> the old way, the upgrade stops you at the first line. Here is the exact message I measured on mcp 2.3.0.\u003C\u002Fp>\n\n\u003Cdiv class=\"code-block-wrapper code-output my-6 not-prose rounded-xl border-2 border-black dark:border-gray-600 shadow-neo overflow-hidden text-[#e1e4e8] transition-all\" data-output-block>\n  \u003Cdiv class=\"code-block-header flex items-center justify-between px-4 py-2.5 bg-[#1f2428] border-b-2 border-black dark:border-gray-600 font-mono text-xs font-bold text-gray-300 select-none\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003Cspan class=\"code-output-mark\" aria-hidden=\"true\">&gt;_\u003C\u002Fspan>\n      \u003Cspan class=\"ml-1 font-mono font-bold text-xs uppercase tracking-wider text-gray-300\">Output\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n    \u003Cbutton type=\"button\" class=\"copy-code-btn flex items-center gap-1.5 px-3 py-1 text-xs font-bold bg-[#2f363d] text-gray-200 border-2 border-black dark:border-gray-500 rounded-lg shadow-neo-sm hover:translate-x-0.5 hover:translate-y-0.5 hover:shadow-none hover:bg-gray-700 transition-all cursor-pointer\" data-code=\"%24%20python3%20-c%20%22from%20mcp.server.fastmcp%20import%20FastMCP%22%202%3E%261%20%7C%20tail%20-1%0AModuleNotFoundError%3A%20No%20module%20named%20'mcp.server.fastmcp'.%20This%20is%20mcp%202.x%2C%20where%20FastMCP%20was%20renamed%20to%20MCPServer%20(from%20mcp.server.mcpserver%20import%20MCPServer)%20and%20other%20APIs%20changed%3B%20see%20the%20migration%20guide%20at%20https%3A%2F%2Fpy.sdk.modelcontextprotocol.io%2Fv2%2Fmigration%2F%23fastmcp-renamed-to-mcpserver%20or%20pin%20'mcp%3C2'%20to%20keep%20running%20v1%20code.\" title=\"Copy\">\n      \u003Csvg class=\"w-3.5 h-3.5 copy-icon-svg\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n        \u003Cpath stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Cspan class=\"copy-text\">Copy\u003C\u002Fspan>\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n  \u003Cdiv class=\"code-block-content p-4 overflow-x-auto text-sm font-mono leading-relaxed\">\n    \u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\">\u003Ccode>\u003Cspan class=\"code-output-cmd\">$ python3 -c \"from mcp.server.fastmcp import FastMCP\" 2&gt;&amp;1 | tail -1\u003C\u002Fspan>\nModuleNotFoundError: No module named 'mcp.server.fastmcp'. This is mcp 2.x, where FastMCP was renamed to MCPServer (from mcp.server.mcpserver import MCPServer) and other APIs changed; see the migration guide at https:\u002F\u002Fpy.sdk.modelcontextprotocol.io\u002Fv2\u002Fmigration\u002F#fastmcp-renamed-to-mcpserver or pin 'mcp&lt;2' to keep running v1 code.\u003C\u002Fcode>\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\u003Cp>The message names its own fix: FastMCP is now \u003Ccode>MCPServer\u003C\u002Fcode>, and the text links the migration guide. It also offers a second exit, which is to pin \u003Ccode>mcp&lt;2\u003C\u002Fcode> and keep running v1 code. \u003Ccode>McpError\u003C\u002Fcode> fails the same way. Importing it from \u003Ccode>mcp.shared.exceptions\u003C\u002Fcode> raises ImportError, and the message names \u003Ccode>MCPError\u003C\u002Fcode> as the replacement.\u003C\u002Fp>\n\u003Cp>The migration guide lists the changes almost every project hits. The rename is the first. Fields moving from camelCase to snake_case is the second, and it shows up as \u003Ccode>AttributeError: &#39;Tool&#39; object has no attribute &#39;inputSchema&#39;\u003C\u002Fcode>. Removed \u003Ccode>mcp.types\u003C\u002Fcode> names are the third, starting with \u003Ccode>ImportError: cannot import name &#39;Content&#39; from &#39;mcp.types&#39;\u003C\u002Fcode>. Each one stops the process at startup, so you catch it immediately.\u003C\u002Fp>\n\u003Ch2 id=\"the-argument-that-changed-meaning\">The argument that changed meaning\u003C\u002Fh2>\n\u003Cp>The v1 constructor took name, then instructions, then website_url and icons. The v2 constructor takes name, title, description, instructions, website_url, icons and version. Two new slots now sit in front of \u003Ccode>instructions\u003C\u002Fcode>. If you passed it positionally, it landed in the wrong slot.\u003C\u002Fp>\n\u003Cp>Both slots accept a str or None, so the call still runs. This is what I measured.\u003C\u002Fp>\n\n\u003Cdiv class=\"code-block-wrapper code-output my-6 not-prose rounded-xl border-2 border-black dark:border-gray-600 shadow-neo overflow-hidden text-[#e1e4e8] transition-all\" data-output-block>\n  \u003Cdiv class=\"code-block-header flex items-center justify-between px-4 py-2.5 bg-[#1f2428] border-b-2 border-black dark:border-gray-600 font-mono text-xs font-bold text-gray-300 select-none\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003Cspan class=\"code-output-mark\" aria-hidden=\"true\">&gt;_\u003C\u002Fspan>\n      \u003Cspan class=\"ml-1 font-mono font-bold text-xs uppercase tracking-wider text-gray-300\">Output\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n    \u003Cbutton type=\"button\" class=\"copy-code-btn flex items-center gap-1.5 px-3 py-1 text-xs font-bold bg-[#2f363d] text-gray-200 border-2 border-black dark:border-gray-500 rounded-lg shadow-neo-sm hover:translate-x-0.5 hover:translate-y-0.5 hover:shadow-none hover:bg-gray-700 transition-all cursor-pointer\" data-code=\"%24%20python3%20-c%20%22from%20mcp.server%20import%20MCPServer%3B%20m%3DMCPServer('Demo'%2C'You%20answer%20questions%20about%20the%20weather.')%3B%20print(repr(m.title)%2C%20m.instructions)%22%0A'You%20answer%20questions%20about%20the%20weather.'%20None\" title=\"Copy\">\n      \u003Csvg class=\"w-3.5 h-3.5 copy-icon-svg\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n        \u003Cpath stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Cspan class=\"copy-text\">Copy\u003C\u002Fspan>\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n  \u003Cdiv class=\"code-block-content p-4 overflow-x-auto text-sm font-mono leading-relaxed\">\n    \u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\">\u003Ccode>\u003Cspan class=\"code-output-cmd\">$ python3 -c \"from mcp.server import MCPServer; m=MCPServer('Demo','You answer questions about the weather.'); print(repr(m.title), m.instructions)\"\u003C\u002Fspan>\n'You answer questions about the weather.' None\u003C\u002Fcode>\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\u003Cp>The sentence sits in \u003Ccode>.title\u003C\u002Fcode>, and \u003Ccode>.instructions\u003C\u002Fcode> is None. I connected an in-process client to that server. It received \u003Ccode>serverInfo.title\u003C\u002Fcode> set to your sentence and \u003Ccode>instructions\u003C\u002Fcode> as None. The model gets a display name where it expected a briefing. Nothing raised, and your tests stay green unless one of them reads the instructions field.\u003C\u002Fp>\n\u003Cp>The fix is one keyword: pass \u003Ccode>instructions=\u003C\u002Fcode> by name, as the corrected server in the last section does. The client then receives the string, and \u003Ccode>title\u003C\u002Fcode> is None.\u003C\u002Fp>\n\u003Cp>Two defaults moved as well. A server built with no arguments reports the name \u003Ccode>mcp-server\u003C\u002Fcode>. And \u003Ccode>LATEST_PROTOCOL_VERSION\u003C\u002Fcode> now holds a different date.\u003C\u002Fp>\n\n\u003Cdiv class=\"code-block-wrapper code-output my-6 not-prose rounded-xl border-2 border-black dark:border-gray-600 shadow-neo overflow-hidden text-[#e1e4e8] transition-all\" data-output-block>\n  \u003Cdiv class=\"code-block-header flex items-center justify-between px-4 py-2.5 bg-[#1f2428] border-b-2 border-black dark:border-gray-600 font-mono text-xs font-bold text-gray-300 select-none\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003Cspan class=\"code-output-mark\" aria-hidden=\"true\">&gt;_\u003C\u002Fspan>\n      \u003Cspan class=\"ml-1 font-mono font-bold text-xs uppercase tracking-wider text-gray-300\">Output\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n    \u003Cbutton type=\"button\" class=\"copy-code-btn flex items-center gap-1.5 px-3 py-1 text-xs font-bold bg-[#2f363d] text-gray-200 border-2 border-black dark:border-gray-500 rounded-lg shadow-neo-sm hover:translate-x-0.5 hover:translate-y-0.5 hover:shadow-none hover:bg-gray-700 transition-all cursor-pointer\" data-code=\"%24%20python3%20-c%20%22from%20mcp.server%20import%20MCPServer%3B%20from%20mcp.types%20import%20LATEST_PROTOCOL_VERSION%20as%20v%3B%20print(MCPServer().name%2C%20v)%22%0Amcp-server%202026-07-28\" title=\"Copy\">\n      \u003Csvg class=\"w-3.5 h-3.5 copy-icon-svg\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n        \u003Cpath stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Cspan class=\"copy-text\">Copy\u003C\u002Fspan>\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n  \u003Cdiv class=\"code-block-content p-4 overflow-x-auto text-sm font-mono leading-relaxed\">\n    \u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\">\u003Ccode>\u003Cspan class=\"code-output-cmd\">$ python3 -c \"from mcp.server import MCPServer; from mcp.types import LATEST_PROTOCOL_VERSION as v; print(MCPServer().name, v)\"\u003C\u002Fspan>\nmcp-server 2026-07-28\u003C\u002Fcode>\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\u003Ch2 id=\"the-rest-of-the-silent-changes\">The rest of the silent changes\u003C\u002Fh2>\n\u003Cp>Transport settings left the constructor. Host, port, stateless_http, json_response, endpoint paths and transport_security now go to \u003Ccode>run()\u003C\u002Fcode> and the app builders. Passing \u003Ccode>port\u003C\u002Fcode> to the constructor fails with a \u003Ccode>TypeError\u003C\u002Fcode>, so you catch it right away.\u003C\u002Fp>\n\n\u003Cdiv class=\"code-block-wrapper code-output my-6 not-prose rounded-xl border-2 border-black dark:border-gray-600 shadow-neo overflow-hidden text-[#e1e4e8] transition-all\" data-output-block>\n  \u003Cdiv class=\"code-block-header flex items-center justify-between px-4 py-2.5 bg-[#1f2428] border-b-2 border-black dark:border-gray-600 font-mono text-xs font-bold text-gray-300 select-none\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003Cspan class=\"code-output-mark\" aria-hidden=\"true\">&gt;_\u003C\u002Fspan>\n      \u003Cspan class=\"ml-1 font-mono font-bold text-xs uppercase tracking-wider text-gray-300\">Output\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n    \u003Cbutton type=\"button\" class=\"copy-code-btn flex items-center gap-1.5 px-3 py-1 text-xs font-bold bg-[#2f363d] text-gray-200 border-2 border-black dark:border-gray-500 rounded-lg shadow-neo-sm hover:translate-x-0.5 hover:translate-y-0.5 hover:shadow-none hover:bg-gray-700 transition-all cursor-pointer\" data-code=\"%24%20python3%20-c%20%22from%20mcp.server%20import%20MCPServer%3B%20MCPServer('x'%2C%20port%3D9000)%22%202%3E%261%20%7C%20tail%20-1%0ATypeError%3A%20MCPServer.__init__()%20got%20an%20unexpected%20keyword%20argument%20'port'\" title=\"Copy\">\n      \u003Csvg class=\"w-3.5 h-3.5 copy-icon-svg\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n        \u003Cpath stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Cspan class=\"copy-text\">Copy\u003C\u002Fspan>\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n  \u003Cdiv class=\"code-block-content p-4 overflow-x-auto text-sm font-mono leading-relaxed\">\n    \u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\">\u003Ccode>\u003Cspan class=\"code-output-cmd\">$ python3 -c \"from mcp.server import MCPServer; MCPServer('x', port=9000)\" 2&gt;&amp;1 | tail -1\u003C\u002Fspan>\nTypeError: MCPServer.__init__() got an unexpected keyword argument 'port'\u003C\u002Fcode>\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\u003Cp>\u003Ccode>mount_path\u003C\u002Fcode> is gone too. Mounting the ASGI app is the supported way to serve under a prefix.\u003C\u002Fp>\n\u003Cp>An \u003Ccode>MCPError\u003C\u002Fcode> raised inside a tool now becomes a protocol error, and the model never sees it. Other exceptions surface as &quot;Error executing tool&quot;. If you raised \u003Ccode>McpError\u003C\u002Fcode> to give the model a hint, that hint is gone.\u003C\u002Fp>\n\u003Cp>A sync \u003Ccode>def\u003C\u002Fcode> handler now runs on a worker thread instead of the event loop, so reread any handler that assumed the loop&#39;s thread.\u003C\u002Fp>\n\u003Cp>The Streamable HTTP lifespan runs once at startup instead of once per session. Anything you set up there is now shared across sessions.\u003C\u002Fp>\n\u003Cp>The HTTP client is now httpx2. It validates TLS through truststore against the operating system trust store, not certifi&#39;s bundle. A minimal container with no system CA store starts failing the handshake.\u003C\u002Fp>\n\u003Cp>The wire types moved to a separate \u003Ccode>mcp-types\u003C\u002Fcode> distribution. \u003Ccode>import mcp.types\u003C\u002Fcode> remains a permanent alias, so those imports keep working.\u003C\u002Fp>\n\u003Ch2 id=\"the-protocol-moved-in-the-same-revision\">The protocol moved in the same revision\u003C\u002Fh2>\n\u003Cp>The SDK now implements the 2026-07-28 revision. The earlier dates are 2024-11-05, 2025-03-26, 2025-06-18 and 2025-11-25. In v1, \u003Ccode>LATEST_PROTOCOL_VERSION\u003C\u002Fcode> was 2025-11-25, the version the client offered during initialization. In v2 it is 2026-07-28, which the initialize handshake cannot negotiate. An in-process \u003Ccode>Client(server)\u003C\u002Fcode> on my box negotiated 2026-07-28 anyway.\u003C\u002Fp>\n\u003Cp>At that revision a client does not open a connection, negotiate, then talk. Every request carries its protocol version, client info and client capabilities in \u003Ccode>_meta\u003C\u002Fcode>. \u003Ccode>server\u002Fdiscover\u003C\u002Fcode> is a plain request. Over Streamable HTTP there is no \u003Ccode>Mcp-Session-Id\u003C\u002Fcode> on the 2026 path, so anything keyed on that header sees nothing there.\u003C\u002Fp>\n\u003Cp>Every server-initiated request is gone. On a 2026 connection, \u003Ccode>ctx.elicit()\u003C\u002Fcode> and \u003Ccode>ctx.session.create_message()\u003C\u002Fcode> fail with \u003Ccode>NoBackChannelError\u003C\u002Fcode>. They still work for legacy clients. The replacement returns the question from a tool, through a parameter annotated with \u003Ccode>Resolve(...)\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>One app serves both eras. The same app answers a 2025-era client&#39;s initialize and a 2026-era client&#39;s requests, with no flag to flip and no separate deployment. So a single test client proves little. An elicit call can pass against an old client and fail against a new one.\u003C\u002Fp>\n\u003Ch2 id=\"what-to-do-this-week\">What to do this week\u003C\u002Fh2>\n\u003Cp>This is the corrected server. I ran it against the in-process client, and the instructions arrived as &#39;Answer with the article table schema before you search.&#39; while \u003Ccode>title\u003C\u002Fcode> was None. The tool registered with a schema derived from the type hints. Calling it returned &quot;Found 3 articles matching &#39;mcp&#39;.&quot;\u003C\u002Fp>\n\n\u003Cdiv class=\"code-block-wrapper my-6 not-prose rounded-xl border-2 border-black dark:border-gray-600 shadow-neo overflow-hidden bg-[#24292e] text-[#e1e4e8] transition-all\">\n  \u003Cdiv class=\"code-block-header flex items-center justify-between px-4 py-2.5 bg-[#1f2428] border-b-2 border-black dark:border-gray-600 font-mono text-xs font-bold text-gray-300 select-none\">\n    \u003Cdiv class=\"flex items-center gap-2\">\n      \u003Cspan class=\"w-3 h-3 rounded-full bg-[#ff5f56] border border-black\u002F40 inline-block\">\u003C\u002Fspan>\n      \u003Cspan class=\"w-3 h-3 rounded-full bg-[#ffbd2e] border border-black\u002F40 inline-block\">\u003C\u002Fspan>\n      \u003Cspan class=\"w-3 h-3 rounded-full bg-[#27c93f] border border-black\u002F40 inline-block\">\u003C\u002Fspan>\n      \u003Cspan class=\"ml-2 font-mono font-bold text-xs uppercase tracking-wider text-gray-300\">PYTHON\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n    \u003Cbutton type=\"button\" class=\"copy-code-btn flex items-center gap-1.5 px-3 py-1 text-xs font-bold bg-[#2f363d] text-gray-200 border-2 border-black dark:border-gray-500 rounded-lg shadow-neo-sm hover:translate-x-0.5 hover:translate-y-0.5 hover:shadow-none hover:bg-gray-700 transition-all cursor-pointer\" data-code=\"%23%20server.py%0Afrom%20mcp.server%20import%20MCPServer%0A%0Amcp%20%3D%20MCPServer(%0A%20%20%20%20%22Invasikode%20Database%20Server%22%2C%0A%20%20%20%20instructions%3D%22Answer%20with%20the%20article%20table%20schema%20before%20you%20search.%22%2C%0A)%0A%0A%0A%40mcp.tool()%0Adef%20search_articles_by_keyword(keyword%3A%20str%2C%20limit%3A%20int%20%3D%205)%20-%3E%20str%3A%0A%20%20%20%20%22%22%22Search%20articles%20by%20a%20keyword%20in%20the%20title.%0A%0A%20%20%20%20Args%3A%0A%20%20%20%20%20%20%20%20keyword%3A%20The%20search%20keyword.%0A%20%20%20%20%20%20%20%20limit%3A%20Maximum%20number%20of%20articles%20returned.%0A%20%20%20%20%22%22%22%0A%20%20%20%20return%20f%22Found%20%7Blimit%7D%20articles%20matching%20'%7Bkeyword%7D'.%22\" title=\"Copy\">\n      \u003Csvg class=\"w-3.5 h-3.5 copy-icon-svg\" fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n        \u003Cpath stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Cspan class=\"copy-text\">Copy\u003C\u002Fspan>\n    \u003C\u002Fbutton>\n  \u003C\u002Fdiv>\n  \u003Cdiv class=\"code-block-content p-4 overflow-x-auto text-sm font-mono leading-relaxed bg-[#24292e]\">\n    \u003Cpre class=\"shiki github-dark\" style=\"background-color:#24292e;color:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#6A737D\"># server.py\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">from\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> mcp.server \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">import\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> MCPServer\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">mcp \u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\"> MCPServer(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#9ECBFF\">    \"Invasikode Database Server\"\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#FFAB70\">    instructions\u003C\u002Fspan>\u003Cspan style=\"color:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\">\"Answer with the article table schema before you search.\"\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#E1E4E8\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#B392F0\">@mcp.tool\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">def\u003C\u002Fspan>\u003Cspan style=\"color:#B392F0\"> search_articles_by_keyword\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">(keyword: \u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">str\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">, limit: \u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">int\u003C\u002Fspan>\u003Cspan style=\"color:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\"> 5\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">) -> \u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">str\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">:\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#9ECBFF\">    \"\"\"Search articles by a keyword in the title.\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#9ECBFF\">    Args:\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#9ECBFF\">        keyword: The search keyword.\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#9ECBFF\">        limit: Maximum number of articles returned.\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#9ECBFF\">    \"\"\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"color:#F97583\">    return\u003C\u002Fspan>\u003Cspan style=\"color:#F97583\"> f\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\">\"Found \u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">{\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">limit\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">}\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\"> articles matching '\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">{\u003C\u002Fspan>\u003Cspan style=\"color:#E1E4E8\">keyword\u003C\u002Fspan>\u003Cspan style=\"color:#79B8FF\">}\u003C\u002Fspan>\u003Cspan style=\"color:#9ECBFF\">'.\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\u003Cp>If you are not migrating this week, pin \u003Ccode>mcp&lt;2\u003C\u002Fcode>. The v1.x line is in maintenance, still gets critical bug fixes and security patches, and keeps its docs at \u002Fv1\u002F. A library that depends on \u003Ccode>mcp\u003C\u002Fcode> should hold an upper bound such as \u003Ccode>mcp&gt;=1.28,&lt;2\u003C\u002Fcode> until it has migrated.\u003C\u002Fp>\n\u003Cp>If you are migrating, check the \u003Ccode>instructions\u003C\u002Fcode> argument first because passing it positionally fails without an error.\u003C\u002Fp>\n\u003Ch2 id=\"what-i-could-not-verify\">What I could not verify\u003C\u002Fh2>\n\u003Cp>I measured everything above on mcp 2.3.0 and Python 3.14.9 on one Linux box with an in-process client. I did not test a Streamable HTTP deployment, a multi-replica \u003Ccode>request_state\u003C\u002Fcode> setup, or the truststore handshake failure in a minimal container. The thread, lifespan, and httpx2 changes come from the SDK docs rather than local runs.\u003C\u002Fp>\n\u003Cp>Check your \u003Ccode>MCPServer(...)\u003C\u002Fcode> constructor call and make sure \u003Ccode>instructions\u003C\u002Fcode> is passed by keyword.\u003C\u002Fp>\n","\u003Cul>\n\u003Cli>The Python SDK v2 rename fails loudly: \u003Ccode>FastMCP\u003C\u002Fcode> is \u003Ccode>MCPServer\u003C\u002Fcode> now, and the old import raises \u003Ccode>ModuleNotFoundError\u003C\u002Fcode> that names its own replacement.\u003C\u002Fli>\n\u003Cli>The dangerous change is positional: \u003Ccode>instructions\u003C\u002Fcode> moved to the fourth constructor slot, so a v1 call puts your briefing in \u003Ccode>title\u003C\u002Fcode> and leaves \u003Ccode>instructions\u003C\u002Fcode> empty, with no error.\u003C\u002Fli>\n\u003Cli>Transport options left the constructor, so \u003Ccode>MCPServer(&#39;x&#39;, port=9000)\u003C\u002Fcode> raises \u003Ccode>TypeError\u003C\u002Fcode> and the port belongs on \u003Ccode>run()\u003C\u002Fcode> instead.\u003C\u002Fli>\n\u003Cli>The protocol moved to \u003Ccode>2026-07-28\u003C\u002Fcode> in the same release, so there is no handshake, no session, and no server-initiated request on a modern connection.\u003C\u002Fli>\n\u003Cli>Pin \u003Ccode>mcp&lt;2\u003C\u002Fcode> if you are not migrating this week, because the v1 line is in maintenance and still receives security patches.\u003C\u002Fli>\n\u003C\u002Ful>\n",[127,144,166,186,203,223],{"id":128,"title":129,"title_id":130,"slug":131,"excerpt":132,"excerpt_id":133,"has_translation":12,"published_at":134,"reading_time":110,"hidden_from_listing":15,"tags":135,"thumbnail_image":21,"og_image":138,"series":139,"authors":141},164,"Python Capstone: Why a Blank CSV Field Cut the Class Average","Python Capstone: Kenapa Satu Kolom CSV Kosong Memotong Rata-rata Kelas","python-capstone-gradebook","A gradebook reads four students and writes a JSON report. The class average says 52.42, because two empty fields became zeros.","Buku nilai membaca empat siswa dan menulis laporan JSON. Rata-rata kelasnya bilang 52.42, karena dua kolom kosong berubah jadi nol.","2026-11-21T01:00:00.000Z",[89,136,137],"input-output","cli","\u002Fog\u002Fpython-capstone-gradebook.png",{"id":140,"title":55,"title_id":56,"slug":57},10,[142],{"authors_id":143},{"id":102,"name":103,"slug":104,"role":105,"profile_picture":21},{"id":145,"title":146,"title_id":147,"slug":148,"excerpt":149,"excerpt_id":150,"has_translation":12,"published_at":134,"reading_time":151,"hidden_from_listing":15,"tags":152,"thumbnail_image":21,"og_image":157,"series":158,"authors":163},48,"What a Linked List Actually Is","Tentang Struktur Data LinkedList","tentang-struktur-data-linked-list","A linked list is a linear chain of nodes, each holding data and a pointer to the next node. Here is what that chain looks like, what it costs next to an array, and the same minimal implementation in Java, Python, and JavaScript.","Linked list adalah rantai linear berisi node, dan setiap node menyimpan data plus pointer ke node berikutnya. Ini bentuk rantainya, ongkosnya dibanding array, dan implementasi paling sederhana dalam Java, Python, serta JavaScript.",4,[153,154,155,156],"struktur-data","linked-list","pointer","konsep","\u002Fog\u002Ftentang-struktur-data-linked-list.png",{"id":159,"title":160,"title_id":161,"slug":162},28,"Linear Data Structures","Struktur Data Linear","asd-struktur-linear",[164],{"authors_id":165},{"id":102,"name":103,"slug":104,"role":105,"profile_picture":21},{"id":167,"title":168,"title_id":169,"slug":170,"excerpt":171,"excerpt_id":172,"has_translation":12,"published_at":173,"reading_time":174,"hidden_from_listing":15,"tags":175,"thumbnail_image":21,"og_image":180,"series":181,"authors":183},163,"Pascal Capstone: Why Every Gradebook Score Came Back Zero","Capstone Pascal: Kenapa Semua Skor Buku Nilai Kembali Nol","pascal-gradebook-capstone","A gradebook reads three students from a file, prints three rows, and every score is 0. The procedure filled a copy of the array, because the parameter was missing `var`. Add the word and the report matches the file; the compiler had already warned about the call that filled nothing.","Sebuah buku nilai membaca tiga siswa dari berkas, mencetak tiga baris, dan setiap skornya 0. Prosedurnya mengisi salinan array, karena parameternya kehilangan `var`. Tambahkan kata itu dan laporannya cocok dengan berkasnya; kompilator sudah memperingatkan soal pemanggilan yang tidak mengisi apa pun.","2026-11-20T01:00:00.000Z",6,[176,177,178,179],"pascal","record","array","prosedur","\u002Fog\u002Fpascal-gradebook-capstone.png",{"id":182,"title":67,"title_id":68,"slug":69},14,[184],{"authors_id":185},{"id":102,"name":103,"slug":104,"role":105,"profile_picture":21},{"id":187,"title":188,"title_id":189,"slug":190,"excerpt":191,"excerpt_id":192,"has_translation":12,"published_at":173,"reading_time":174,"hidden_from_listing":15,"tags":193,"thumbnail_image":21,"og_image":194,"series":195,"authors":200},162,"Python File I\u002FO: Why the Second Read Came Back Empty","Python File I\u002FO: Kenapa Pembacaan Kedua Kembali Kosong","python-file-read-write","A notes script saves a line, prints it back, then counts zero. The file on disk is correct: `read()` left the pointer at the end, so the second call returned an empty string. Read once into a variable, or `seek(0)`, and the count matches the file.","Skrip catatan menyimpan satu baris, mencetaknya kembali, lalu menghitung nol. Berkas di disk sudah benar: `read()` meninggalkan pointer di ujung, jadi panggilan kedua mengembalikan string kosong. Baca sekali ke sebuah variabel, atau `seek(0)`, dan hitungannya cocok dengan berkas.",[89,136],"\u002Fog\u002Fpython-file-read-write.png",{"id":196,"title":197,"title_id":198,"slug":199},18,"Working with Python Scripts","Menggunakan Script Python","python-pemrograman-dengan-script",[201],{"authors_id":202},{"id":102,"name":103,"slug":104,"role":105,"profile_picture":21},{"id":204,"title":205,"title_id":206,"slug":207,"excerpt":208,"excerpt_id":209,"has_translation":12,"published_at":210,"reading_time":84,"hidden_from_listing":15,"tags":211,"thumbnail_image":21,"og_image":214,"series":215,"authors":220},47,"Why Understanding Algorithms and Data Structures Actually Matters","Pentingnya Memahami Algoritma dan Struktur Data","pentingnya-memahami-algoritma-dan-struktur-data","An algorithm is an ordered list of steps, and that order decides how expensive a problem is. The examples are on the back of an instant noodle packet, in a factorial, and behind ctrl+z.","Sebagai konsep fundamental, algoritma menentukan seberapa mahal sebuah masalah diselesaikan. Contohnya ada di bungkus mie instan, di bilangan faktorial, dan di tombol undo.","2026-11-19T01:00:00.000Z",[212,153,156,213],"algoritma","dasar","\u002Fog\u002Fpentingnya-memahami-algoritma-dan-struktur-data.png",{"id":216,"title":217,"title_id":218,"slug":219},27,"About Algorithms and Data Structures","Tentang Algoritma dan Struktur Data","asd-intro",[221],{"authors_id":222},{"id":102,"name":103,"slug":104,"role":105,"profile_picture":21},{"id":224,"title":225,"title_id":226,"slug":227,"excerpt":228,"excerpt_id":229,"has_translation":12,"published_at":230,"reading_time":84,"hidden_from_listing":15,"tags":231,"thumbnail_image":21,"og_image":233,"series":234,"authors":235},161,"Debugging Free Pascal with -gl and gdb","Men-debug Free Pascal dengan -gl dan gdb","pascal-debugging-fpc-gdb","A run with no prices ends at a hex address and status 217. `-gl` names the line, gdb names the values, and the mean of six positive prices comes out negative because `integer` is 2 bytes.","Jalan tanpa satu harga pun berakhir di alamat hex dan status 217. `-gl` menyebut barisnya, gdb menyebut nilainya, dan rata-rata dari enam harga positif keluar negatif karena `integer` berukuran 2 byte.","2026-11-18T01:00:00.000Z",[176,232],"debugging","\u002Fog\u002Fpascal-debugging-fpc-gdb.png",{"id":182,"title":67,"title_id":68,"slug":69},[236],{"authors_id":237},{"id":102,"name":103,"slug":104,"role":105,"profile_picture":21},[239,243,246,249,252,255],{"text":240,"depth":241,"id":242},"The errors that fail loudly",2,"the-errors-that-fail-loudly",{"text":244,"depth":241,"id":245},"The argument that changed meaning","the-argument-that-changed-meaning",{"text":247,"depth":241,"id":248},"The rest of the silent changes","the-rest-of-the-silent-changes",{"text":250,"depth":241,"id":251},"The protocol moved in the same revision","the-protocol-moved-in-the-same-revision",{"text":253,"depth":241,"id":254},"What to do this week","what-to-do-this-week",{"text":256,"depth":241,"id":257},"What I could not verify","what-i-could-not-verify",1795825297276]