Skip to content

Commit 682aa84

Browse files
authored
fix: correct experimental_createMCPClient import and typo in tanchat (#223)
fix: correct experimental_createMCPClient import and typo in tanchat
1 parent 3833d91 commit 682aa84

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

frameworks/react-cra/examples/tanchat/assets/src/utils/demo.tools.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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";
34
import { z } from 'zod'
45

56
import guitars from '../data/example-guitars'
@@ -44,7 +45,7 @@ const recommendGuitar = tool({
4445
})
4546

4647
export default async function getTools() {
47-
// const mcpTools = await mcpCient.tools()
48+
// const mcpTools = await mcpClient.tools()
4849
return {
4950
// ...mcpTools,
5051
getGuitars,

frameworks/react-cra/examples/tanchat/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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",

0 commit comments

Comments
 (0)