Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

mcp-tool-options-wire.spec.ts

17 lines535 Bytes

1import { test, expect } from './fixtures'
2​
3test.describe('mcp: toolName and a strict toolFilter list', () => {
4 test('names tools with toolName and fails on a missing listed name', async ({
5 request,
6 }) => {
7 const response = await request.post('/api/mcp-tool-options-wire')
8 expect(response.ok()).toBe(true)
9 const result: unknown = await response.json()
10​
11 expect(result).toEqual({
12 names: ['mcp__store__get_guitar_price'],
13 missing: ['no_such_tool'],
14 errorName: 'MCPToolFilterError',
15 })
16 })
17})