Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/ai
/ tools.test.ts
File
tools.test.ts
packages/ai-mcp/tests/tools.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, expect, it, vi } from
'vitest'
2
import
{ Client } from
'@modelcontextprotocol/sdk/client/index.js'
3
import
{
4
makeMcpExecute,
Callers
nothing calls this directly
Calls
12
mcpContentToTanstack
Function · 0.90
makeServerWithFailingTool
Function · 0.90
toServerTools
Function · 0.90
makeMcpExecute
Function · 0.90
makeServerWithWeatherTool
Function · 0.90
fakeMcpClient
Function · 0.85
mcpToolDef
Function · 0.85
readToolMcpMeta
Function · 0.85
connect
Method · 0.65
close
Method · 0.65
abort
Method · 0.65
execute
Function · 0.50
Tested by
no test coverage detected