Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

mcp-connector changedagents-and-tools/mcp-connector

Nearest release: v2.1.239, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+1added
Lines−2removed
From line 1,317 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits32to this page, all time

The whole hunk

from line 1317, old and new numbered
/
lines
from line 1317
13171317 ```
13181318 
13191319 ```php PHP
1320 // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs.
13211320 // As a content block in a message
13221321 $resource = $mcp->readResource('file:///path/to/doc.txt');
13231322 
from line 1338
13391338 
13401339 // As a file upload
13411340 $fileResource = $mcp->readResource('file:///path/to/data.json');
1342 $file = $anthropic->beta->files->upload(file: BetaMcp::resourceToFile($fileResource));
1341 $file = $anthropic->files->upload(file: BetaMcp::resourceToFile($fileResource));
13431342 echo $file->id, "\n";
13441343 ```
13451344 
Feedback