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
5 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 client on top of a pluggable transport.

View file

@ -1,6 +1,6 @@
import { validateMessage } from "../shared/message.js";
import { Transport } from "../shared/transport.js";
import { JSONRPCMessage } from "../types/index.js";
import { JSONRPCMessage } from "../types.js";
/**
* Client transport for SSE: this will connect to a server using Server-Sent Events for receiving

View file

@ -1,4 +1,4 @@
import { JSONRPCMessage } from "../types/index.js";
import { JSONRPCMessage } from "../types.js";
import { StdioClientTransport, StdioServerParameters } from "./stdio.js";
const serverParameters: StdioServerParameters = {

View file

@ -1,6 +1,6 @@
import { ChildProcess, spawn } from "node:child_process";
import { ReadBuffer, serializeMessage } from "../shared/stdio.js";
import { JSONRPCMessage } from "../types/index.js";
import { JSONRPCMessage } from "../types.js";
import { Transport } from "../shared/transport.js";
export type StdioServerParameters = {

View file

@ -1,6 +1,6 @@
import { validateMessage } from "../shared/message.js";
import { Transport } from "../shared/transport.js";
import { JSONRPCMessage } from "../types/index.js";
import { JSONRPCMessage } from "../types.js";
const SUBPROTOCOL = "mcp";