Your Platform Team's Next API Consumer Is an AI Agent: Are You Ready?

When the Model Context Protocol shipped its 2026-07-28 specification, Honeycomb disclosed a telling production metric in the release announcement: nearly 20% of all monthly interactive queries on their platform already come from AI agents. Internal platform teams are seeing the same traffic pattern. Coding agents read CI logs, SRE agents triage broken rollouts, and background automation queries Kubernetes, Git, and observability backends around the clock.
Most teams respond by pointing a code generator at an existing OpenAPI spec, wrapping every REST route as an MCP tool, and calling it done. That breaks fast. Dumping hundreds of CRUD endpoints onto an agent blows up token budgets, ruins tool selection, leaks standing credentials, and opens prompt-injection paths that conventional API gateways were never built to stop.
This post expands on the platform-interface half of the DevOpsDays TLV 2026 talk I am putting together with Mey Beisaron.
From UI-first to API-first to agent-first
Picture the same Kubernetes platform serving three generations of consumers. The clusters, deployments, CI pipelines, and metrics behind the wall stay identical. What changes is the contract between caller and platform.
In a UI-first world, a human logs into a dashboard with SSO and MFA, scans charts visually, and clicks through filters. In an API-first world, a developer reads an OpenAPI or gRPC spec at build time and writes deterministic code that calls fine-grained endpoints and parses strict JSON.
An agent receives intent instead of a hardcoded script: "why did checkout start failing after the last deployment?" At runtime, it has to discover capabilities, pick a call sequence, filter noisy payloads, recover from partial errors, and verify its own answer.
That puts semantics inside the platform contract alongside syntax. An OpenAPI schema tells a Go service which JSON fields are mandatory, but leaves an agent guessing whether restart_service drains traffic safely or drops live checkouts. Even payloads shift: nested metadata that compresses cleanly over gzip still burns context tokens per key when an LLM reads it. And an HTTP 200 can mask a failed investigation where the agent queried the wrong namespace, burned 40,000 tokens scanning unrelated logs, and guessed.
MCP 2026-07-28: stateless core, tasks, MRTR, and file transfers
Early MCP adoption felt like a gold rush. Teams took the 2024-11-05 stdio and HTTP+SSE spec, auto-wrapped 200 internal REST routes, and handed agents a flat list of overlapping tools. Even after Streamable HTTP landed in 2025-03-26, remote servers still relied on initialize handshakes, sticky Mcp-Session-Id headers, and held-open SSE streams for server-initiated calls like elicitation or sampling. Deploying that behind a standard Kubernetes Ingress or serverless runtime meant maintaining sticky routing and shared session stores.
The 2026-07-28 MCP specification fixed the transport layer by rebuilding the core around stateless HTTP, backed by Tier 1 SDKs in TypeScript, Python, Go, and C# (plus Rust in beta):
- Stateless protocol core (SEP-2567 and SEP-2575): the
initialize/notifications/initializedhandshake andMcp-Session-Idheader are gone. Every request carries its protocol version, client identity, and client capabilities in_meta, with an optionalserver/discoverRPC when a client wants capabilities upfront. Any request can land on any replica behind a plain round-robin load balancer. - Header-based routing (SEP-2243): Streamable HTTP requests now carry
Mcp-MethodandMcp-Nameheaders. Gateways and WAFs can route, meter, and authorize calls on HTTP headers without parsing JSON-RPC bodies. - Cacheable catalogs (SEP-2549):
tools/list,prompts/list,resources/list, andresources/readreturnttlMs,cacheScope, and deterministic ordering. Clients stop hammering list endpoints and keep upstream LLM prompt caches warm across reconnects. - Multi Round-Trip Requests, or MRTR (SEP-2322): server-initiated calls over held-open streams (
elicitation/create,sampling/createMessage,roots/list) are replaced by a stateless retry pattern. When a tool needs missing user input or confirmation, the server responds withresultType: "input_required"andinputRequests, and the client retries withinputResponses. Supabase noted in the release post that MRTR made stateless elicitation practical for confirming new project costs or destructive queries before execution. - Durable Tasks extension (
io.modelcontextprotocol/tasks, SEP-2663): experimental tasks from2025-11-25graduated into the formal extensions framework alongside MCP Apps and Enterprise Managed Authorization. Contributed by AWS, the extension replaces blockingtasks/resultcalls with poll-basedtasks/getand client-to-servertasks/update, and lets servers return task handles unsolicited for long jobs like cluster upgrades or batch exports. - Experimental file transfers (
io.modelcontextprotocol/files): large binaries and log bundles don't belong inside JSON-RPC strings or context windows. The File Uploads Working Group draft marks file parameters withx-mcp-fileininputSchema. Small files up tomaxInlineBytestravel inline as base64, while larger files trigger anupload_requiredresponse carrying an out-of-band upload target so the client uploads bytes over HTTP and retriestools/callunchanged. Downloads return targets in result_meta. As of November 2026, this extension is still a draft without a finalized SEP, so expect breaking changes.
On the wire, a 2026-07-28 request looks like standard web infrastructure:
POST /mcp HTTP/1.1
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/call
Mcp-Name: search_incidents
{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"search_incidents","arguments":{"service":"checkout"},
"_meta":{
"io.modelcontextprotocol/protocolVersion":"2026-07-28",
"io.modelcontextprotocol/clientCapabilities":{},
"io.modelcontextprotocol/clientInfo":{"name":"sre-agent","version":"1.4"}
}}}Roots, Sampling, Logging, and legacy HTTP+SSE are now formally deprecated under a twelve-month window. Greenfield platform servers should target stateless 2026-07-28 Streamable HTTP and enable extensions only where clients negotiate them.
Managing state and context across stateless transports
Dropping Mcp-Session-Id often trips up teams that equate transport statelessness with application statelessness. Transport should stay stateless so replicas scale horizontally. Workflows still have state.
Three patterns keep workflow state explicit without resurrecting sticky connections:
- Server-minted handles: as the MCP
2026-07-28maintainers advise, when an operation spans multiple calls (a paginated search, a Terraform dry-run plan, a sandbox workspace), mint an opaque handle and return it in the response. The model passes that handle back as an ordinary tool argument on the next step, making every trace inspectable and replayable. - Durable task IDs (
io.modelcontextprotocol/tasks): anything running longer than a few seconds (database backups, canary rollouts, multi-cluster scans) should return a task handle withcreatedAt,ttl, andpollIntervalmetadata instead of holding an HTTP stream open until an ingress proxy drops it. - Bounded outputs with escape hatches: never let
list_logsordescribe_clusterdump 500 KB into a conversation. Cloudflare's Code Mode server capssearchandexecuteoutputs at roughly 6,000 tokens while keeping truncated JSON valid (preserving leading array items, clipping long strings, and marking cuts with--- TRUNCATED ---), allowingtruncate: falseonly when a caller pipes output straight to disk. Pair bounded text returns with out-of-band file targets (io.modelcontextprotocol/filesor signed object URLs) for large artifacts.
Progressive discovery, meta-tools, Code Mode, and CLI wrappers
Fixing the transport doesn't solve schema bloat. Attach five internal MCP servers to an agent and the context window fills before the model reads a single line of user intent.
Independent measurements show how quickly schemas eat budget:
- In Anthropic's advanced tool use post, a five-server setup across GitHub, Slack, Sentry, Grafana, and Splunk (58 tools) consumed ~55,000 tokens in upfront definitions, and their broader 50+ MCP tool baseline hit ~72,000 definition tokens (~77,000 tokens total before real work began). Anthropic's Tool Search Tool docs note that tool-selection accuracy degrades once you exceed 30 to 50 exposed tools.
- In an Owners Not Renters Claude Code test with Kimi K3 (also covered in my harness engineering post), tool schemas took 63% to 81% of input tokens. Trimming the exposed set from 28 tools down to 11 cut output tokens by 20% and thinking tokens by 42%.
- For Cloudflare's full API (2,594 endpoints), native MCP with full schemas takes 1,170,523 tokens, and minimal required-parameter schemas still take 244,047 tokens.
Four interface patterns address that bloat, each fitting a different catalog size.
| Pattern | How the agent discovers and calls tools | Measured token impact | Best fit | Main trade-off |
|---|---|---|---|---|
| Task-shaped native tools | Direct MCP tools/list of 5 to 15 high-level tools | Low upfront cost while catalog stays small | Focused internal domains (deploy, triage, rollback) | Requires product design work instead of OpenAPI auto-gen |
| Meta-tools / deferred search | search_tools + describe_tool or defer_loading: true behind BM25/regex | Anthropic Tool Search cuts upfront definitions by >85% (~77k to ~8.7k tokens) | 20 to 500 mixed tools across several upstream servers | Extra discovery turn, and dynamic list mutations can break prompt caches |
| Code Mode / programmatic calling | Agent writes JS/Python against typed SDK or OpenAPI spec inside a sandbox | Cloudflare cuts 2,594 endpoints from 1.17M to ~1,000 tokens (99.9%). Anthropic cuts 20% to 40% in prod (10-49 tools) | Large APIs, fan-out loops, filtering, and multi-step aggregation | Sandbox ops and latency. Anthropic saw ~8% higher cost on simple 1-2 call turns |
CLI wrappers + SKILL.md | Agent runs spec grep / spec show / spec call in a shell | Near-zero upfront schema cost | Coding and ops agents that already have a shell | Needs shell access and tight OS/command permissions |
Meta-tools for gradual discovery
Instead of loading 200 schemas on turn one, expose a small fixed set of discovery tools and fetch full schemas on demand. search_tools and describe_tool are runtime patterns rather than mandatory MCP core methods, and major clients have converged on the same flow.
Anthropic's Tool Search Tool marks non-core tools defer_loading: true and keeps only tool_search_tool_bm25 or tool_search_tool_regex (~500 tokens) loaded upfront. The model searches by natural language or regex, pulls 3 to 5 tool_reference blocks (~3,000 tokens), and keeps roughly 95% of a 200K context window free (~8.7K upfront tokens total). Codex CLI runs a matching BM25 tool_search index. In my open-source api-spec-cli, spec mcp defaults to mode=meta, exposing five fixed tools (list_specs, list_tools, search_tools, get_tool, call_tool) paged at 20 summaries per call across OpenAPI, GraphQL, and upstream MCP servers.
Watch prompt-cache stability here. In long sessions, 95% to 99% of input tokens are prompt-cache reads (field guide). Mutating the system-level tools array on every turn busts the cached prefix and forces full input billing on every step after it. Keep the system tool prefix fixed (via static meta-tools or appending discovered tool_reference blocks later in the transcript) and rely on 2026-07-28's deterministic tools/list ordering.
Code Mode and programmatic tool calling
Meta-tools shrink upfront schemas, but the agent still pays one LLM round-trip per API call and pulls every intermediate response through context. Checking pod health across 30 namespaces with individual calls burns 30 turns and dumps megabytes of raw JSON into history.
Cloudflare's server-side Code Mode changes the interface. Its MCP server at mcp.cloudflare.com/mcp exposes two API tools, search() and execute() (plus docs()), covering all 2,594 Cloudflare endpoints in ~1,000 tokens. The agent writes short JavaScript async functions against a pre-resolved OpenAPI spec inside a Dynamic Worker V8 isolate, then executes a second script to paginate, filter, and join API calls in one round-trip. The isolate has no filesystem, no environment variables, and outbound fetches disabled by default. Authentication stays inside a host-injected cloudflare.request() callback so credentials never enter the sandbox.
Anthropic's Programmatic Tool Calling runs the same pattern from the API side using code_execution_20260120. On a 75-tool project-management benchmark, it cut billed input tokens by ~38% with no drop in accuracy, and across production traffic with 10 to 49 tools it saved 20% to 40%. On the client side, I built MCP Conductor around a two-process Deno sandbox so an agent can mix MCP via mcpFactory, shell CLIs, and npm/JSR libraries in one run.
Code Mode is not automatically cheaper. Anthropic's docs report that on τ²-bench, where each turn makes one or two sequential calls, programmatic tool calling left scores unchanged and increased cost by ~8%. Reach for Code Mode on large catalogs, fan-out loops, and heavy filtering. Skip the sandbox when two direct calls finish the job.
Sometimes the best agent interface is a CLI
If your consumers are coding or SRE agents that already live in a shell, a discoverable CLI beats a heavyweight MCP catalog. That is why I built api-spec-cli: it turns OpenAPI, GraphQL, and MCP servers into one discover -> inspect -> call flow (spec grep, spec show, spec call) backed by a local auth registry. Paired with progressive-disclosure SKILL.md runbooks, an agent pipes responses through jq or rg with zero upfront schema tax.
Agent-friendly response formats: when TOON beats JSON (and when it does not)
Pretty-printed JSON was built for deterministic services, where repeating "namespace", "restarts", and "status" across 200 pod objects costs almost nothing after gzip. LLMs don't read gzip. They pay per token.
TOON (Token-Oriented Object Notation) is a lossless encoding of the JSON data model combining YAML-style indentation for nested objects with CSV-style tabular rows for uniform arrays and keyed maps. Here is a small Kubernetes pod listing in both formats:
{
"pods": [
{ "name": "checkout-7d9f-a1", "namespace": "prod", "restarts": 4, "status": "CrashLoopBackOff" },
{ "name": "checkout-7d9f-b2", "namespace": "prod", "restarts": 0, "status": "Running" },
{ "name": "payments-4c1a-9x", "namespace": "prod", "restarts": 1, "status": "Running" }
]
}pods[3]{name,namespace,restarts,status}:
checkout-7d9f-a1,prod,4,CrashLoopBackOff
checkout-7d9f-b2,prod,0,Running
payments-4c1a-9x,prod,1,RunningThe [3] header declares the row count and {name,namespace,restarts,status} declares the schema once, giving the model width and length bounds without repeating keys on every row.
In TOON's retrieval benchmark (244 questions across 13 datasets and 4 models, tokenized with o200k_base), TOON averaged 72.2% (±2.8%) accuracy at 2,474 tokens. Pretty JSON scored 71.4% (±2.8%) at 4,308 tokens (TOON used 42.6% fewer tokens), while compact JSON scored 69.0% (±2.9%) at 2,892 tokens (TOON used 14.5% fewer tokens). On the 109 flat tabular questions where CSV also applies, TOON hit 63.1% (±4.5%) at 1,994 tokens against CSV's 62.2% (±4.5%) at 1,851 tokens.
Look past the headline -42.6% figure against pretty JSON. Compact JSON alone already trims 32.9% without adding a new syntax. And inside that same benchmark, compact JSON beat TOON on deeply nested config (562 vs 669 tokens, +19% for TOON) and semi-uniform event logs (4,793 vs 5,814 tokens, +21% for TOON). Because the ±2.8% to ±4.5% confidence intervals overlap across formats, the proven win is token density on uniform arrays. The benchmark also measures reading comprehension only, leaving TOON generation unmeasured.
I use TOON as the default CLI output in api-spec-cli, but I wouldn't replace JSON everywhere:
- Use TOON as an output projection for uniform arrays and keyed maps (pods, deploys, incidents, feature flags, audit rows) headed into an LLM context.
- Stay on compact JSON for deeply nested or irregular payloads and for any contract parsed by conventional services.
- Use plain CSV when data is strictly flat and you don't need nested objects or
[N]{fields}headers. - Measure token counts with your target model's tokenizer and benchmark time-to-first-token on local or quantized models, which sometimes process compact JSON faster despite the higher token count.
MCP gateways and splitting team ownership
Once three teams run agents (coding, SRE, background automation) and five teams expose MCP servers (Kubernetes, Git, CI, observability, ticketing), direct point-to-point wiring turns into N x M sprawl. Every agent stores separate credentials, consumes unpinned catalogs, and logs in its own format.
An MCP gateway puts one governed control plane in front of upstream servers. Because 2026-07-28 carries Mcp-Method and Mcp-Name in HTTP headers, gateways can route, rate-limit, and enforce per-tool policy before touching a JSON parser.
The 2026 tooling covers both enterprise proxies and lightweight embeddable packages. On the enterprise side, the Linux Foundation / Agentic AI Foundation agentgateway handles MCP and A2A federation, token exchange, and tool poisoning controls, while FastMCP's Horizon focuses on stateless governance. For smaller Python stacks, I built fast-mcp-gateway on FastAPI and FastMCP. It mounts one namespaced /mcp endpoint (plus group-scoped /mcp/g/{group} routes), defaults to meta-tool discovery, and wires auth, policy, redaction, audit, and browser human-in-the-loop approval through five async hook seams (pre_mcp_connect, pre_list_tools, pre_tool_call, confirmation, post_tool_call). For quick routing over mixed OpenAPI, GraphQL, and MCP specs, api-spec-cli also ships spec mcp.
Standing up a gateway clarifies team ownership. If the platform team tries to write every domain's MCP tools, it becomes a permanent bottleneck. If each domain team builds its own auth, auditing, and approval flow, security splinters.
| Responsibility | Platform team owns | Domain team owns |
|---|---|---|
| Gateway and routing | Central MCP gateway, Mcp-Method/Mcp-Name routing, rate limits, TLS | Registering upstream servers and maintaining SLAs |
| Identity and auth | IdP integration, OAuth 2.1 / CIMD, workload identity, token exchange, HIL approval UX | Backend authorization enforcement inside every service |
| Tool catalog | Registry, tool fingerprinting/pinning, permission-aware discovery | Task-shaped tool design, clear descriptions, bounded outputs, side-effect hints |
| Telemetry and feedback | Unified audit trail, token/cost tracking, central agent feedback sink | Triaging friction reports, fixing confusing schemas, domain behavioral evals |
One boundary stays non-negotiable: gateways are never a substitute for backend authorization. Every downstream Kubernetes API, Git repository, and internal service still enforces caller identity and permissions directly.
There is also a layer underneath the gateway that APIs can't replace. As Mey Beisaron covers in the second half of our DevOpsDays TLV talk, the API and gateway tell an agent what it can call, while typed organizational knowledge (verified facts, architectural decisions, ownership, and what not to touch) tells it what it should do. Both layers have to hold up.
Authentication and identity: OAuth 2.1, workload identity, and credential isolation
Most companies still authenticate agents in one of two broken ways: passing a human's full session token (so a calendar reader can delete every event) or putting a permanent, over-scoped API key in an environment variable. I wrote about this gap in The Auth Layer for the Agentic Era, and the 2026 MCP spec now gives platform teams concrete primitives to close it.
Start with the 2026-07-28 MCP authorization spec:
- Treat every remote MCP server as an OAuth 2.1 resource server with PKCE and RFC 9728 Protected Resource Metadata so clients discover the right authorization server dynamically.
- Enforce
issvalidation (RFC 9207, SEP-2468) and issuer-bound client credentials (SEP-2352) to close authorization-server mix-up attacks. - Move off deprecated Dynamic Client Registration (DCR) onto Client ID Metadata Documents (CIMD), using HTTPS URLs as verifiable client identifiers.
- Use step-up authorization via
WWW-Authenticatescopechallenges so clients start with minimal read scopes and request write scopes only when a specific call needs them.
Layer three operational rules on top of OAuth 2.1:
- Separate delegated mode from background mode. When an engineer asks an SRE agent to investigate a failing rollout, the agent acts as a delegate of that engineer with narrowed, short-lived scopes. When an automation job runs a 3 AM compliance sweep, no human is present: it must run under its own workload identity (SPIFFE/SPIRE or scoped client credentials), never borrowing a developer's token.
- Keep real credentials out of the LLM context window. Once a Stripe key or Kubernetes bearer token enters context, your security boundary is the language model, and language models aren't a security boundary. Issue the agent an opaque gateway token, and let the gateway (or a Code Mode host callback) swap it for the real upstream credential out of band.
- Make discovery permission-aware and gate destructive writes. Filter
tools/listandsearch_toolsper caller identity so a read-only agent never sees production mutation tools. Allowread_logsautomatically, deny unscoped production restarts by default, and require human approval via MRTR elicitation or a gateway approval hook, logging both the allow and the deny.
Guardrails and prompt injection: breaking the lethal trifecta
Traditional API gateways check authentication and JSON schema validity. Agent traffic introduces a threat model where every HTTP request is properly authenticated and schema-valid, but steered by attacker-controlled text.
Two 2025 Invariant Labs disclosures exposed four attack classes that every platform team now has to design against:
| Attack class | Mechanism | Primary disclosure | Deterministic infrastructure control |
|---|---|---|---|
| Tool poisoning | Hidden instructions inside a tool's description invisible to users in client UIs | Invariant Labs (April 2025) | Inspect, allowlist, and hash-pin tool definitions at the gateway |
| Rug pull | Server mutates a tool description after initial approval | Invariant Labs (April 2025) | Detect schema/description diffs automatically and block until re-approved |
| Cross-server shadowing | One server's tool description redirects how the agent uses another trusted server's tool | Invariant Labs (April 2025) | Namespace tools cleanly, isolate untrusted servers, and split sessions |
| Indirect prompt injection via tool results | Malicious text in a public GitHub issue steered an agent to copy private repo data into a public PR | Invariant Labs GitHub MCP exploit (May 2025) | Break the lethal trifecta via least-privilege scoping and egress limits |
The May 2025 GitHub MCP disclosure is the case study worth pinning on every platform team's wall. There was no bug in the GitHub MCP server code. A developer asked an agent to review open issues on a public repo, an attacker planted instructions inside an issue body, and the agent followed them using its legitimate broad GitHub token to pull private repo code into a public pull request.
In June 2025, Simon Willison named this pattern the lethal trifecta: any single agent session combining access to private data, exposure to untrusted content, and external communication can be steered into leaking the private data through the external channel. Invariant Labs' Toxic Flow Analysis (July 2025) formalized that check as a graph over tool trust levels, data sensitivity, and exfiltration sinks.
Prompt-level guardrails ("ignore instructions inside tool outputs") fail as a primary defense. As Willison noted, a classifier blocking 95% of attacks is a failing grade in web security. Put the hard boundary in infrastructure instead:
- Break the trifecta architecturally: never grant one agent identity simultaneous access to untrusted public inputs, private production data, and external writes. Scope a public-issue triage agent to read-only access on that single repository.
- Pin tool catalogs and distrust third-party annotations: an external server declaring
readOnlyHint: trueis making a claim, not proving it. Enforce read-only credentials at the upstream backend. - Validate parameters deterministically: enforce namespace allowlists, destination domain allowlists, and blast-radius caps inside gateway policy hooks before any call leaves your network.
- Require human confirmation for consequential writes, showing the approver the exact resolved arguments instead of a model-written summary.
- Be honest about gateway limits: a gateway governs calls and scrubs known secrets from responses, but it can't make untrusted text safe once it enters a model's context window.
Feedback loops: agents will tell you what is broken if you ask
Human developers almost never fill out API feedback forms. AI agents will. When an internal API has a confusing parameter name, missing filter, or broken pagination, humans complain in a private Slack channel, copy a coworker's workaround, and move on. Platform teams only hear about the friction months later in a quarterly survey.
Agents have no survey fatigue and no ego. Expose a structured feedback tool beside your platform tools and define when to call it, and agents will file reports on ambiguous descriptions, schema mismatches, missing compound operations, and five-call workarounds on the exact request where they hit trouble.
Production MCP tooling adopted this pattern quickly in 2026:
- PostHog MCP Analytics ships an opt-in
send_feedbacktool (collectFeedback) emitting$mcp_feedbackevents withfeedback_type(missing_capability,issue,praise,other),task_completed,sentiment,friction_points, andsuggested_improvement, backed by PII redaction and 2,048-character field caps. - Clerk's
@clerk/mcp-toolsaddssubmit_feedbackcapturingtask,kind(missing,broken,confusing,idea),impact(blocked,worked_around,friction),operation,error, andsuggestion, paired withlist_application_feedbackso engineers can query clustered reports. - Dedicated tools like Emic (
submit_agent_feedback,get_unblocked) and the zero-dependency open-sourcemcp-tool-feedback(report_missing_capabilityrouted to GitHub Issues or JSONL) capture what traces miss: what the agent tried to do when no tool matched or when a clean 200 forced a brittle workaround.
Adding a feedback tool takes ten minutes, and skipping the hygiene around it creates a mess inside a week. Follow three rules drawn straight from Clerk and PostHog:
- Scrub secrets and PII on the server: tell agents not to include keys or user data, and still run deterministic secret and PII redaction before writing to storage.
- Rate-limit aggressively: a looping agent can flood an issue tracker in seconds. Cap reports per client or instance (Clerk caps at 100 per hour per instance) and instruct the tool to drop excess reports cleanly so the agent finishes its primary task.
- Label stored feedback as untrusted data: if you later ask an internal agent to summarize feedback reports, treat every report body as untrusted input. Clerk explicitly warns that third-party agents author those strings, turning an unguarded feedback inbox into a fresh indirect prompt-injection vector into your own triage workflow.
What is still hard in production
Every layer of this stack is still moving, and pretending it is settled would mislead any team shipping this quarter.
Protocol churn forces gateways to bridge mixed client fleets. Between 2025 Streamable HTTP clients, 2026-07-28 stateless clients, optional extensions like Tasks, and unfinalized drafts like File Uploads, enterprise proxies have to translate versions and degrade features like MRTR elicitation gracefully when a caller doesn't negotiate them.
Sandboxes and compact formats add real operational cost. Running model-generated code means maintaining V8 isolates, containers, or Deno capability policies and absorbing cold-start latency. On simple one- or two-call turns, sandboxes cost more than plain calls, and TOON loses to compact JSON whenever responses turn deeply nested. Measure against real traces instead of mandating one format globally.
Prompt injection still has no complete technical cure. OAuth 2.1, CIMD, and tool pinning stop credential leaks and rug pulls, but an agent that legitimately reads untrusted text and legitimately writes externally can still be hijacked. Architectural isolation and human approval gates remain mandatory for risky mutations.
Monitoring agents is much harder than monitoring REST services. Standard APM dashboards stay green while an agent retries a confusing tool six times, misreads a truncated array, and burns, say, $0.40 per ticket. Building behavioral evals that track task completion, tool-selection errors, retries, and cost per solved task takes steady engineering work (how we built our evaluation loop at Komodor).
If you want small reference pieces to poke at, api-spec-cli and fast-mcp-gateway are both MIT-licensed on GitHub, and we will share the full DevOpsDays TLV 2026 deck once it lands.
Sources
As of November 29, 2026:
- Model Context Protocol Blog, David Soria Parra and Den Delimarsky (July 28, 2026): The 2026-07-28 Specification
- Model Context Protocol Specification: 2026-07-28 Changelog, Overview (Statelessness), and Authorization
- Model Context Protocol File Uploads Working Group (2026): Exploring File Uploads and Downloads in MCP and experimental-ext-file-uploads
- Cloudflare Blog, Matt Carey (February 20, 2026): Code Mode: give agents an entire API in 1,000 tokens, cloudflare/mcp, and Build a Code Mode MCP server
- Anthropic (2025-2026): Introducing advanced tool use for Claude, Tool search tool, and Programmatic tool calling
- Owners Not Renters (2026): Putting Kimi K3 to the Claude Code test
- Token-Oriented Object Notation (TOON): toon-format/toon and TOON Benchmarks
- Invariant Labs security disclosures: MCP Security Notification: Tool Poisoning Attacks (April 1, 2025), GitHub MCP Exploited (May 26, 2025), and Toxic Flow Analysis (July 29, 2025)
- Simon Willison (June 16, 2025): The lethal trifecta for AI agents
- MCP Gateways: agentgateway/agentgateway, niradler/fast-mcp-gateway, and niradler/api-spec-cli
- Agent feedback tooling: PostHog MCP Analytics events, Clerk agent feedback guide, Emic MCP server feedback, and duncanapm/mcp-tool-feedback
- Related Piece by Piece posts: Harness Engineering: Beyond Prompt and Context Engineering, Harness × Model: A Field Guide to Mixing Coding Agents in Late 2026, The Auth Layer for the Agentic Era, MCP Conductor: The Advantages of Equipping Your Agent with Code Execution Powers, and How We Make AI Agents Improve Themselves

