One change
mcp-connector
agents-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.
agents-and-tools/mcp-connector Changed · +1 / -2 lines
from line 1317
``` ```php PHP - // The PHP SDK exposes the Files API under the beta namespace; field names can differ from other SDKs. // As a content block in a message $resource = $mcp->readResource('file:///path/to/doc.txt');
from line 1338
// As a file upload $fileResource = $mcp->readResource('file:///path/to/data.json'); - $file = $anthropic->beta->files->upload(file: BetaMcp::resourceToFile($fileResource)); + $file = $anthropic->files->upload(file: BetaMcp::resourceToFile($fileResource)); echo $file->id, "\n"; ```