Pure PHP MCP server works without persistent connections
gelembjuk · reddit · 2026-07-21
A developer built a minimal MCP server in pure PHP to prove that a persistent connection is not strictly required.
- The demo works with the VSCode MCP client.
- The author argues MCP clients should better support request/response servers that close the connection after each reply.
- PHP is used as the example specifically because it is not designed for long-lived connections, making it a good proof of concept.
- The post notes that the simplified approach is already supported by the demo, though not by every MCP client.
- A blog link is provided in the comments.
More from coding & agent
- A better path to agent autonomy is running waves, finding friction, and iterating — JnBrymn · 2026-07-22
- Coding agents are heading toward an AI-writes, AI-reviews, human-approves workflow — aftahi_ai · 2026-07-22
- oMLX 0.5.2 adds Mac menu-bar stats, low-bit decode kernels, and faster downloads — awnihannun · 2026-07-22
- GitHub review bot hits its PR limit and forces a 39-minute cooldown — DanielLockyer · 2026-07-22
- Max reasoning effort appears to be mobile-only in Codex Remote, not desktop — GabGarrett · 2026-07-22
- A Reddit demo argues online stores should expose carts and pricing through MCP — gelembjuk · 2026-07-22