Combine types into one file

This commit is contained in:
Justin Spahr-Summers 2024-10-02 14:17:31 +01:00
commit 3786c88960
No known key found for this signature in database
GPG key ID: E78498BF3C053CA7
4 changed files with 35 additions and 39 deletions

View file

@ -11,7 +11,7 @@ import {
ServerNotification,
ServerRequest,
ServerResult,
} from "../types/index.js";
} from "../types.js";
/**
* An MCP server on top of a pluggable transport.

View file

@ -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";

View file

@ -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;

View file

@ -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";
/**