The Wire · Showcase
Laravel AI and MCP ship double-digit cache and chat upgrades
By RepoJournal · Filed · About Laravel
Laravel's AI and MCP packages both landed significant developer-facing features overnight, headlined by explicit prompt cache breakpoints and client-side response caching.
Two of Laravel's most active packages moved fast: laravel/ai adds explicit prompt cache breakpoints for Anthropic and Bedrock [1], fixing the costly problem where automatic caching placed the breakpoint after the last message, forcing full re-writes of the static prefix on every fresh conversation. The PR also lets targets request a one-hour TTL via the map form of the option, a direct win for long-running agent contexts [2]. Meanwhile, laravel/mcp now honors server caching hints on the client with an opt-in `withCache()` [3], backed by a hardened cache that avoids unsafe reuse [4]. Together, these two changes could meaningfully cut API costs in AI-heavy apps. laravel/ai also continues its Vercel SDK push: new PRs hydrate `useChat` from stored messages [5], convert UI messages to agent input [6], and accept `UserMessage` / `ChatInput` as prompts [7], rounding out a full round-trip flow. On the testing front, laravel/mcp adds `assertRegistered` and `assertNotRegistered` for tools, prompts, and resources [8], plus an `assertNotRegistered` method on `TestResponse` [9] to cover conditional registration. Nightwatch shipped two patch releases: v1.30.0 adds `IngestingEvent::eventCount` [10], and v1.29.0 supports Guzzle 3.0 and event-listener-based ingestion limits [11]. The stack totals 10 commits, 12 PRs, and 2 releases this period, with the AI and MCP pushes dominating the signal.
One email a day. Unsubscribe in one click.
Keep up with Laravel in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Review the prompt cache breakpoint PR in laravel/ai if you use Anthropic or Bedrock; it fixes a real cost leak laravel/ai [plan]
- → Try `withCache()` in laravel/mcp client to cut repeated tool calls laravel/mcp [plan]
- → Upgrade Nightwatch to v1.30.0 to get `eventCount` and Guzzle 3.0 support laravel/nightwatch [plan]
References
- [1] Add explicit prompt cache breakpoints for Anthropic and Bedrock ↗ laravel/ai
- [2] Add explicit prompt cache breakpoints for Anthropic and Bedrock (#869) laravel/ai
- [3] Honor server caching hints on the client ↗ laravel/mcp
- [4] Honor server caching hints on the client (#326) laravel/mcp
- [5] Hydrate useChat from stored conversation messages ↗ laravel/ai
- [6] Convert Vercel AI SDK UI messages into agent chat input ↗ laravel/ai
- [7] Accept user messages and chat input when prompting agents ↗ laravel/ai
- [8] Asserting registered tools and prompts and resources ↗ laravel/mcp
- [9] `assertNotRegistered` method on `TestResponse` ↗ laravel/mcp
- [10] v1.30.0 ↗ laravel/nightwatch
- [11] v1.29.0 ↗ laravel/nightwatch