Combine types into one file
This commit is contained in:
parent
698d6c5b52
commit
3786c88960
5 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 client on top of a pluggable transport.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { JSONRPCMessage } from "../types/index.js";
|
||||
import { JSONRPCMessage } from "../types.js";
|
||||
import { StdioClientTransport, StdioServerParameters } from "./stdio.js";
|
||||
|
||||
const serverParameters: StdioServerParameters = {
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue