Skip to main content
The @frontmcp/react/ai entry point bridges FrontMCP tools to popular AI SDK formats. Tools are automatically formatted for the target platform and results are converted back.

useAITools

The core hook that formats MCP tools for a specific platform.

Parameters

Return Value


useTools

Higher-level hook that adds batch tool call processing via processPlatformToolCalls.

Return Value


createToolCallHandler

Non-React utility for vanilla JavaScript usage. Creates a handler that executes tools and formats results.

Platform Examples

OpenAI

Vercel AI SDK

Claude (Anthropic)


Multi-Server AI Tools

Target tools from a specific server: