Skip to content

v0.5.86

Choose a tag to compare

@jaspertey jaspertey released this 30 Oct 02:57
3869d11

Added

  • MCP resources from the host (backported from main; docs/mcp-tools.md › Resources). Registry::mcpResources([...]) takes laravel/mcp Resource classes or descriptors (uri, name, read, and optionally mimeType, description, title, capability), and the workspace server lists and serves them under the same admission as tools: a resource with #[Capability] (using GatedByCapability) or a descriptor's capability is absent while that capability is off or out of plan, and a read of it anyway is refused with the reason (the kit's resources/read method), 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-Resource class, 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 the mcp feature. composer test:mcp-resources covers 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