Skip to content

Commit 26a2746

Browse files
committed
test: fix modelResponses typing for FakeModel in MCP integration test
1 parent 803d9e2 commit 26a2746

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/agents-core/test/mcpToolFilter.integration.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { NodeMCPServerStdio } from '../src/shims/mcp-server/node';
55
import { createMCPToolStaticFilter } from '../src/mcpUtil';
66
import { FakeModel, FakeModelProvider } from './stubs';
77
import { Usage } from '../src/usage';
8+
import type { ModelResponse } from '../src';
89
import * as fs from 'node:fs';
910
import * as path from 'node:path';
1011

@@ -92,7 +93,7 @@ describe('MCP tool filter integration', () => {
9293
const tools = server.tools.map((t) => mcpToFunctionTool(t, server, false));
9394

9495
it('allows listing files', async () => {
95-
const modelResponses = [
96+
const modelResponses: ModelResponse[] = [
9697
{
9798
output: [
9899
{
@@ -119,7 +120,7 @@ describe('MCP tool filter integration', () => {
119120
});
120121

121122
it('blocks write_file', async () => {
122-
const modelResponses = [
123+
const modelResponses: ModelResponse[] = [
123124
{
124125
output: [
125126
{

0 commit comments

Comments
 (0)