File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
frameworks/react-cra/examples/tanchat Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- import { experimental_createMCPClient , tool } from 'ai'
2- //import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
1+ import { tool } from 'ai'
2+ // import { experimental_createMCPClient } from '@ai-sdk/mcp'
3+ // import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
34import { z } from 'zod'
45
56import guitars from '../data/example-guitars'
@@ -44,7 +45,7 @@ const recommendGuitar = tool({
4445} )
4546
4647export default async function getTools ( ) {
47- // const mcpTools = await mcpCient .tools()
48+ // const mcpTools = await mcpClient .tools()
4849 return {
4950 // ...mcpTools,
5051 getGuitars,
Original file line number Diff line number Diff line change 11{
22 "dependencies" : {
33 "@ai-sdk/anthropic" : " ^2.0.1" ,
4+ "@ai-sdk/mcp" : " ^0.0.5" ,
45 "@ai-sdk/react" : " ^2.0.8" ,
56 "@modelcontextprotocol/sdk" : " ^1.8.0" ,
67 "ai" : " ^5.0.8" ,
You can’t perform that action at this time.
0 commit comments