Skip to content

Commit aec60c1

Browse files
Agent Communication MCP Serverclaude
andcommitted
fix: add proper typing to e2e test file
- Import Server type from MCP SDK - Fix untyped servers array in e2e tests - Resolves ESLint unsafe any type errors in tests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f33d7d2 commit aec60c1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

121 KB
Binary file not shown.

tests/e2e/complete-workflow.e2e.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import { createMCPServer } from '../../src/index.js';
77
import { TestEnvironment } from '../shared/race-condition-helpers.js';
8+
import type { Server } from '@modelcontextprotocol/sdk/server/index.js';
89

910
describe('E2E - Complete Workflow Tests', () => {
1011
let testEnv: TestEnvironment;
@@ -76,7 +77,7 @@ describe('E2E - Complete Workflow Tests', () => {
7677

7778
describe('Performance and Scale', () => {
7879
it('should handle rapid server creation/destruction', () => {
79-
const servers = [];
80+
const servers: Server[] = [];
8081

8182
// Create multiple servers quickly
8283
for (let i = 0; i < 5; i++) {

0 commit comments

Comments
 (0)