Skip to content

Modified Workers Binding Server to include R2 object tools and more options for R2 bucket tools#262

Open
aninibread wants to merge 2 commits intomainfrom
anni/r2-mcp
Open

Modified Workers Binding Server to include R2 object tools and more options for R2 bucket tools#262
aninibread wants to merge 2 commits intomainfrom
anni/r2-mcp

Conversation

@aninibread
Copy link
Collaborator

Add MCP tools for R2 object operations (get, put, delete) using the
Cloudflare REST API for raw object content handling.

R2 Object Tools:

  • r2_object_get: Download with native MCP image support, inline text,
    base64 for binary (10MB limit)
  • r2_object_put: Upload with auto content-type detection via mime
    package (100MB limit)
  • r2_object_delete: Single object deletion with proper error handling

R2 Bucket Tools Enhancements:

  • Add locationHint for geographic region selection
  • Add jurisdiction for regulatory compliance (EU, FedRAMP)
  • Add storageClass for default storage class (Standard, InfrequentAccess)
  • Add bucketJurisdiction param to get/delete operations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant