cd /news/ai-agents/the-mcp-reliability-security-gap-and… · home topics ai-agents article
[ARTICLE · art-51196] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

The MCP reliability & security gap — and an open-source proxy that fills it

A developer released mcp-bastion, an open-source proxy that addresses reliability and security gaps in the Model Context Protocol (MCP). The proxy handles MCP server disconnections by providing status and reconnect tools for agents, and adds runtime defenses against prompt injection and tool squatting. It is available on GitHub under the Apache-2.0 license.

read1 min views1 publishedJul 8, 2026

As AI agents move from demos to production, the Model Context Protocol (MCP) has become the default way to give them tools. But the operational layer around MCP is still immature, and two gaps show up fast.

MCP servers disconnect mid-session — a crashed subprocess, a dropped network stream — and the agent has no good signal. It sees a generic "No such tool available" error, indistinguishable from a tool that never existed. Worse, it can't reconnect itself; a human has to intervene. In a long autonomous run, capabilities silently vanish and the agent fails in confusing ways.

MCP tools are described in natural language that the model reads and acts on. That creates two live threats:

Runtime defenses for these live mostly in paid platforms.

mcp-bastion is a proxy that addresses both, and it's deliberately boring to adopt: it's a

It's organized in three layers:

bastion__status

, bastion__reconnect

) that let the agent itself inspect and recover connections.It speaks both stdio and Streamable HTTP. TypeScript, Apache-2.0, layered architecture, tests, and CI.

npx mcp-bastion

Repo: https://github.com/Gowthaman90/mcp-bastion

It's early and I'd love feedback — especially on the security heuristics and which audit sinks people want.

── more in #ai-agents 4 stories · sorted by recency
── more on @mcp-bastion 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/the-mcp-reliability-…] indexed:0 read:1min 2026-07-08 ·