Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

How to Add Web Search to a Mastra Agent (Free, No API Key)

Mastra is a TypeScript framework for building AI agents, and like most agent frameworks it doesn't come with a web search tool.

  • Mastra framework lacks built-in web search tool
  • MCPClient connects to free AgentSearch MCP server
  • Research agent prioritizes live web search tool

Make the agent use the existing Link component, not a raw <a>, for internal routes

The agent adds a “Back to settings” control as <a href="/settings"> . The app already has a Link (or RouterLink , or Next.js Link ) that prefetches, keeps the client transition, and applies the active…

  • Use existing Link component for internal routes
  • Avoid raw a tags for internal navigation
  • Link component offers prefetching, transitions, active classes

More from Thursday 19 November →