chore: switch to module ESNext + moduleResolution bundler (#2095)

This commit is contained in:
Matt 2026-06-25 12:49:17 +02:00 • committed by GitHub
commit ee732d64b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 668 additions and 863 deletions

View file

@ -19,10 +19,10 @@ import type { EventStore, JSONRPCMessage, McpServer, Server } from '@modelcontex
import { InMemoryTransport, ReadBuffer, serializeMessage, WebStandardStreamableHTTPServerTransport } from '@modelcontextprotocol/server';
import { StdioServerTransport } from '@modelcontextprotocol/server/stdio';
import type { Transport } from '../types.js';
import { startLegacySseHost } from './sse-host.js';
import type { SnifferOptions } from './wire-sniffer.js';
import { sniffTransport } from './wire-sniffer.js';
import type { Transport } from '../types';
import { startLegacySseHost } from './sse-host';
import type { SnifferOptions } from './wire-sniffer';
import { sniffTransport } from './wire-sniffer';
export type ServerFactory = () => McpServer | Server;

View file

@ -17,9 +17,9 @@
import { describe, test } from 'vitest';
import { REQUIREMENTS } from '../requirements.js';
import type { TestArgs } from '../types.js';
import { ALL_SPEC_VERSIONS, ALL_TRANSPORTS } from '../types.js';
import { REQUIREMENTS } from '../requirements';
import type { TestArgs } from '../types';
import { ALL_SPEC_VERSIONS, ALL_TRANSPORTS } from '../types';
type TestBody = (args: TestArgs) => Promise<void>;

View file

@ -1,7 +1,7 @@
import { LATEST_PROTOCOL_VERSION } from '@modelcontextprotocol/server';
import { describe, expect, it } from 'vitest';
import { assertWireMessage } from './wire-sniffer.js';
import { assertWireMessage } from './wire-sniffer';
const req = (method: string, params?: unknown, id = 1) => ({
jsonrpc: '2.0' as const,