Repository navigation
v0.5.86
Added
- MCP resources from the host (backported from main; docs/mcp-tools.md › Resources).
Registry::mcpResources([...])takes laravel/mcpResourceclasses or descriptors (uri,name,read, and optionallymimeType,description,title,capability), and the workspace server lists and serves them under the same admission as tools: a resource with#[Capability](usingGatedByCapability) or a descriptor'scapabilityis absent while that capability is off or out of plan, and a read of it anyway is refused with the reason (the kit'sresources/readmethod), not as unknown; a resource without one (docs) is always listed. A read runs inside the connection's workspace, and a descriptor's closure receives it. Refused at registration: a non-Resourceclass, a gated class without the trait, an undeclared capability, a descriptor missing its uri, name or read, a relative uri, a uri registered twice, or any of it without themcpfeature.composer test:mcp-resourcescovers the list, reads, the gate off and on, an unknown URI and each refusal.
What's Changed
- [0.5.x] Host-registered MCP resources on the workspace server (backport of #410) by @jaspertey in #420
Full Changelog: v0.5.85...v0.5.86