chore: switch to module ESNext + moduleResolution bundler (#2095)
This commit is contained in:
parent
c59dc3aa1a
commit
ee732d64b6
3 changed files with 668 additions and 863 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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>;
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue