Skip to content

SEP-2166: Out-of-Band Resource Access via HTTPS URLs#2166

Open
abrookins wants to merge 2 commits intomodelcontextprotocol:mainfrom
abrookins:main
Open

SEP-2166: Out-of-Band Resource Access via HTTPS URLs#2166
abrookins wants to merge 2 commits intomodelcontextprotocol:mainfrom
abrookins:main

Conversation

@abrookins
Copy link

Proposes adding optional httpUrl and httpUrlExpiresAt fields to the Resource interface, enabling MCP servers to provide direct HTTPS access URLs alongside the canonical MCP resource URI.

This allows resources to be accessed both through MCP (via resources/read) and directly via HTTPS by processes that may not have an authenticated MCP client connection, such as code executing in sandboxed environments.

Motivation and Context

Large tool outputs create context overhead when passed through LLM conversations. While Anthropic's "Code Execution with MCP" pattern allows agents to reduce this overhead by executing code that calls MCP tools directly, this requires the execution environment to have an authenticated MCP client connection, which sandboxes and subprocesses may lack.

This proposal enables servers to provide HTTPS URLs that any HTTP client can fetch, bridging the gap between MCP-connected contexts and disconnected execution environments.

Related discussions:

How Has This Been Tested?

easy-mcp-proxy implements this pattern using a custom response format. The proxy caches large tool outputs, generates signed HTTPS URLs with expiration, and returns preview text plus retrieval URLs to clients. The pattern works well used with Claude Desktop (using the "All domains" allow list for sandbox access) and coding agents such as Augment Code. If this SEP is accepted, easy-mcp-proxy would be updated to use the standardized fields.

Breaking Changes

None. Both fields are optional additions to the existing Resource interface.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

AI Disclosure

This SEP was drafted with AI assistance (Augment Code). The problem definition, use cases, and technical approach were developed collaboratively with the author providing direction and review.

@localden localden added proposal SEP proposal without a sponsor. SEP labels Jan 29, 2026
@localden
Copy link
Contributor

FYI @SamMorrowDrums since this touches on your past feedback.

@localden localden changed the title Add SEP: Out-of-Band Resource Access via HTTPS URLs SEP-2166: Out-of-Band Resource Access via HTTPS URLs Jan 29, 2026
@localden localden moved this to Draft in SEP Review Pipeline Jan 29, 2026
@abrookins abrookins requested a review from a team as a code owner January 29, 2026 19:52
Proposes adding optional httpUrl and httpUrlExpiresAt fields to the Resource
interface, enabling MCP servers to provide direct HTTPS access URLs alongside
the canonical MCP resource URI.

This allows resources to be accessed both through MCP (via resources/read) and
directly via HTTPS by processes that may not have an authenticated MCP client
connection, such as code executing in sandboxed environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proposal SEP proposal without a sponsor. SEP

Projects

Status: Draft

Development

Successfully merging this pull request may close these issues.

2 participants