Combine types into one file
This commit is contained in:
parent
698d6c5b52
commit
3786c88960
4 changed files with 35 additions and 39 deletions
|
|
@ -11,7 +11,7 @@ import {
|
|||
ServerNotification,
|
||||
ServerRequest,
|
||||
ServerResult,
|
||||
} from "../types/index.js";
|
||||
} from "../types.js";
|
||||
|
||||
/**
|
||||
* An MCP server on top of a pluggable transport.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { randomUUID } from "node:crypto";
|
|||
import { IncomingMessage, ServerResponse } from "node:http";
|
||||
import { validateMessage } from "../shared/message.js";
|
||||
import { Transport } from "../shared/transport.js";
|
||||
import { JSONRPCMessage } from "../types/index.js";
|
||||
import { JSONRPCMessage } from "../types.js";
|
||||
import getRawBody from "raw-body";
|
||||
import contentType from "content-type";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Readable, Writable } from "node:stream";
|
||||
import { ReadBuffer, serializeMessage } from "../shared/stdio.js";
|
||||
import { JSONRPCMessage } from "../types/index.js";
|
||||
import { JSONRPCMessage } from "../types.js";
|
||||
import { StdioServerTransport } from "./stdio.js";
|
||||
|
||||
let input: Readable;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import process from "node:process";
|
||||
import { Readable, Writable } from "node:stream";
|
||||
import { ReadBuffer, serializeMessage } from "../shared/stdio.js";
|
||||
import { JSONRPCMessage } from "../types/index.js";
|
||||
import { JSONRPCMessage } from "../types.js";
|
||||
import { Transport } from "../shared/transport.js";
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue