File tree Expand file tree Collapse file tree 16 files changed +35
-39
lines changed
Expand file tree Collapse file tree 16 files changed +35
-39
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
1111 ServerNotification ,
1212 ServerRequest ,
1313 ServerResult ,
14- } from "../types/index .js" ;
14+ } from "../types.js" ;
1515
1616/**
1717 * An MCP client on top of a pluggable transport.
Original file line number Diff line number Diff line change 11import { validateMessage } from "../shared/message.js" ;
22import { Transport } from "../shared/transport.js" ;
3- import { JSONRPCMessage } from "../types/index .js" ;
3+ import { JSONRPCMessage } from "../types.js" ;
44
55/**
66 * Client transport for SSE: this will connect to a server using Server-Sent Events for receiving
Original file line number Diff line number Diff line change 1- import { JSONRPCMessage } from "../types/index .js" ;
1+ import { JSONRPCMessage } from "../types.js" ;
22import { StdioClientTransport , StdioServerParameters } from "./stdio.js" ;
33
44const serverParameters : StdioServerParameters = {
Original file line number Diff line number Diff line change 11import { ChildProcess , spawn } from "node:child_process" ;
22import { ReadBuffer , serializeMessage } from "../shared/stdio.js" ;
3- import { JSONRPCMessage } from "../types/index .js" ;
3+ import { JSONRPCMessage } from "../types.js" ;
44import { Transport } from "../shared/transport.js" ;
55
66export type StdioServerParameters = {
Original file line number Diff line number Diff line change 11import { validateMessage } from "../shared/message.js" ;
22import { Transport } from "../shared/transport.js" ;
3- import { JSONRPCMessage } from "../types/index .js" ;
3+ import { JSONRPCMessage } from "../types.js" ;
44
55const SUBPROTOCOL = "mcp" ;
66
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
1111 ServerNotification ,
1212 ServerRequest ,
1313 ServerResult ,
14- } from "../types/index .js" ;
14+ } from "../types.js" ;
1515
1616/**
1717 * An MCP server on top of a pluggable transport.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { randomUUID } from "node:crypto";
22import { IncomingMessage , ServerResponse } from "node:http" ;
33import { validateMessage } from "../shared/message.js" ;
44import { Transport } from "../shared/transport.js" ;
5- import { JSONRPCMessage } from "../types/index .js" ;
5+ import { JSONRPCMessage } from "../types.js" ;
66import getRawBody from "raw-body" ;
77import contentType from "content-type" ;
88
Original file line number Diff line number Diff line change 11import { Readable , Writable } from "node:stream" ;
22import { ReadBuffer , serializeMessage } from "../shared/stdio.js" ;
3- import { JSONRPCMessage } from "../types/index .js" ;
3+ import { JSONRPCMessage } from "../types.js" ;
44import { StdioServerTransport } from "./stdio.js" ;
55
66let input : Readable ;
Original file line number Diff line number Diff line change 11import process from "node:process" ;
22import { Readable , Writable } from "node:stream" ;
33import { ReadBuffer , serializeMessage } from "../shared/stdio.js" ;
4- import { JSONRPCMessage } from "../types/index .js" ;
4+ import { JSONRPCMessage } from "../types.js" ;
55import { Transport } from "../shared/transport.js" ;
66
77/**
Original file line number Diff line number Diff line change 1- import { JSONRPCMessage } from "../types/index .js" ;
1+ import { JSONRPCMessage } from "../types.js" ;
22
33// Throws an exception if the message is invalid or unsupported.
44export function validateMessage ( message : JSONRPCMessage ) : void {
You can’t perform that action at this time.
0 commit comments