Context Engineering & Memory Benchmarks · 8 min read

Streamable HTTP MCP (/v1/mcp), RFC 9728 Protected Resource Metadata & Device Pairing Explained

A deep dive into Streamable HTTP MCP at /v1/mcp, RFC 9728 protected resource metadata, RFC 8628 device flow authorization, and scoped Bearer tokens for production AI agents.

Direct Answer (TL;DR) Self-Contained GEO Passage

Legacy stdio MCP servers require local process execution, creating security and deployment hurdles for remote agent infrastructure. Streamable HTTP MCP transforms Model Context Protocol servers into scalable cloud endpoints mounted at /v1/mcp. By adopting RFC 9728 Protected Resource Metadata and RFC 8628 Device Authorization Grants, agents authenticate headlessly using 8-character verification codes and scoped Bearer tokens, eliminating static secret exposure and enabling seamless remote tool execution.

RFC 9728
Protected Resource Metadata discovery specification
IETF OAuth Working Group Standard
RFC 8628
OAuth 2.0 Device Authorization Grant for headless CLI pairing
IETF Standard Specification
/v1/mcp
Streamable HTTP MCP endpoint with SSE fallback
Memoreal Cloud Protocol Architecture
Table of Contents ↓

Legacy Stdio MCP vs Streamable HTTP MCP Architecture

Legacy Stdio MCP vs Streamable HTTP MCP Architecture
Feature / CapabilityLegacy Stdio MCPStandard REST Tool CallingStreamable HTTP MCP (/v1/mcp)
Transport LayerLocal stdin / stdout process pipe launched by host clientStateless HTTP POST / GET requests over standard web portsStreamable HTTP with Server-Sent Events (SSE) bidirectional streaming
Authentication ProtocolStatic environment variables or plain API keys in local config filesAPI keys or custom bearer tokens passed in headersOAuth 2.1 RFC 9728 discovery with RFC 8628 headless device authorization
Deployment TopologyMust run locally on developer workstation or inside heavy containerRemote web server hosting microservicesMulti-tenant cloud service with server card discovery and zero local dependencies
Interactive AuthorizationRequires terminal manual key entry and config file editsComplex browser redirects or hardcoded secret credentials3-click browser pairing via 8-character verification code

From Local Stdio to Streamable HTTP: The /v1/mcp Architecture

The Model Context Protocol originally launched with stdio transport, requiring host IDEs like Claude Desktop and Cursor to spawn local child processes. In cloud-native agent deployments, running local processes is inefficient, insecure, and incompatible with serverless environments. Streamable HTTP MCP addresses this by hosting tool endpoints over standard HTTP with Server-Sent Events (SSE) streaming at /v1/mcp, allowing remote agents to connect with zero local runtime dependencies.

  • Eliminates the requirement to install Python or Node.js runtimes on developer machines.
  • Provides resilient Server-Sent Events streaming for long-running tool operations.
  • Allows centralized enterprise management, load balancing, and audit logging of MCP calls.

RFC 9728 Protected Resource Metadata: Dynamic Server Card Discovery

Secure remote tool execution requires standardized protocol discovery. By adopting RFC 9728 Protected Resource Metadata, the MCP server advertises its authorization capabilities at /.well-known/oauth-protected-resource and its tool capabilities via /.well-known/mcp/server-card.json. Connecting AI agents can inspect supported OAuth grant types, token endpoints, and required scopes prior to initiating authentication handshakes.

  • Protected resource metadata standardizes endpoint discovery across diverse clients.
  • Server card JSON provides machine-readable capability definitions for tool catalogs.
  • Prevents credential leakage by negotiating authentication parameters prior to transmission.

RFC 8628 Device Authorization: Headless 3-Click Agent Authentication

Developers frequently operate in headless environments—such as SSH sessions, remote devcontainers, or cloud CI pipelines—where opening a local browser redirect is impossible. Streamable HTTP MCP implements RFC 8628 Device Authorization Grant. The agent CLI requests a device code, displays an 8-character user code and pairing URL, and polls the token endpoint while the developer approves the connection in their browser.

  • Enables seamless browser-based authentication for headless CLI coding agents.
  • Generates time-bound, scoped Bearer tokens without exposing master account credentials.
  • Provides a smooth 3-click pairing flow that securely configures local MCP settings in seconds.

Connecting to Remote Streamable HTTP MCP Server with Bearer Auth

json
{
  "mcpServers": {
    "memoreal-cloud": {
      "url": "https://memoreal.kolivri.com/v1/mcp",
      "headers": {
        "Authorization": "Bearer mem_live_948a73b2c89f1e4d"
      }
    }
  }
}

Frequently Asked Questions

What is Streamable HTTP in the Model Context Protocol?

Streamable HTTP is an MCP transport running over standard HTTP/SSE, allowing remote clients to call tools without spawning local processes.

How does RFC 9728 Protected Resource Metadata protect MCP servers?

It advertises authorization server endpoints and supported token scopes via standard .well-known URLs before the client transmits credentials.

Why is RFC 8628 device flow ideal for coding harnesses?

Headless developer environments like VS Code Remote or cloud containers cannot open callback URLs, making 8-character device codes the cleanest pairing mechanism.

60-Second Setup

Install Persistent Memory for Your Coding Agent

Sub-15ms deterministic recall, AST symbol navigation, and 70%+ token savings across Claude Code, Cursor, Codex CLI, and Windsurf.

npx -y @kolivri/memoreal-mcp setup
Start Free (1,000 Calls · $0 LLM Tax) Compare All Alternatives →