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 {
11
11
ServerNotification ,
12
12
ServerRequest ,
13
13
ServerResult ,
14
- } from "../types/index .js" ;
14
+ } from "../types.js" ;
15
15
16
16
/**
17
17
* An MCP client on top of a pluggable transport.
Original file line number Diff line number Diff line change 1
1
import { validateMessage } from "../shared/message.js" ;
2
2
import { Transport } from "../shared/transport.js" ;
3
- import { JSONRPCMessage } from "../types/index .js" ;
3
+ import { JSONRPCMessage } from "../types.js" ;
4
4
5
5
/**
6
6
* 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" ;
2
2
import { StdioClientTransport , StdioServerParameters } from "./stdio.js" ;
3
3
4
4
const serverParameters : StdioServerParameters = {
Original file line number Diff line number Diff line change 1
1
import { ChildProcess , spawn } from "node:child_process" ;
2
2
import { ReadBuffer , serializeMessage } from "../shared/stdio.js" ;
3
- import { JSONRPCMessage } from "../types/index .js" ;
3
+ import { JSONRPCMessage } from "../types.js" ;
4
4
import { Transport } from "../shared/transport.js" ;
5
5
6
6
export type StdioServerParameters = {
Original file line number Diff line number Diff line change 1
1
import { validateMessage } from "../shared/message.js" ;
2
2
import { Transport } from "../shared/transport.js" ;
3
- import { JSONRPCMessage } from "../types/index .js" ;
3
+ import { JSONRPCMessage } from "../types.js" ;
4
4
5
5
const SUBPROTOCOL = "mcp" ;
6
6
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
ServerNotification ,
12
12
ServerRequest ,
13
13
ServerResult ,
14
- } from "../types/index .js" ;
14
+ } from "../types.js" ;
15
15
16
16
/**
17
17
* 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";
2
2
import { IncomingMessage , ServerResponse } from "node:http" ;
3
3
import { validateMessage } from "../shared/message.js" ;
4
4
import { Transport } from "../shared/transport.js" ;
5
- import { JSONRPCMessage } from "../types/index .js" ;
5
+ import { JSONRPCMessage } from "../types.js" ;
6
6
import getRawBody from "raw-body" ;
7
7
import contentType from "content-type" ;
8
8
Original file line number Diff line number Diff line change 1
1
import { Readable , Writable } from "node:stream" ;
2
2
import { ReadBuffer , serializeMessage } from "../shared/stdio.js" ;
3
- import { JSONRPCMessage } from "../types/index .js" ;
3
+ import { JSONRPCMessage } from "../types.js" ;
4
4
import { StdioServerTransport } from "./stdio.js" ;
5
5
6
6
let input : Readable ;
Original file line number Diff line number Diff line change 1
1
import process from "node:process" ;
2
2
import { Readable , Writable } from "node:stream" ;
3
3
import { ReadBuffer , serializeMessage } from "../shared/stdio.js" ;
4
- import { JSONRPCMessage } from "../types/index .js" ;
4
+ import { JSONRPCMessage } from "../types.js" ;
5
5
import { Transport } from "../shared/transport.js" ;
6
6
7
7
/**
Original file line number Diff line number Diff line change 1
- import { JSONRPCMessage } from "../types/index .js" ;
1
+ import { JSONRPCMessage } from "../types.js" ;
2
2
3
3
// Throws an exception if the message is invalid or unsupported.
4
4
export function validateMessage ( message : JSONRPCMessage ) : void {
You can’t perform that action at this time.
0 commit comments