A simple host application for MCP that show how easy integration with generateText, experimental_createMCPClient of @ai-sdk. Currently, only tested for Anthropic LLM.
Before running the application, you need to set up the following environment variables.:
ANTHROPIC_API_KEY=your_api_key_here- Install dependencies:
npm install- Build & Start the application:
npm build && npm startFor development mode:
npm run devThe MCP server list can be configured through the mcp-server.json file. Example for simple MCP servers are listed at 'fixtures/servers'.