Combine types into one file
This commit is contained in:
parent
698d6c5b52
commit
3786c88960
5 changed files with 35 additions and 39 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { JSONRPCMessage } from "../types/index.js";
|
||||
import { JSONRPCMessage } from "../types.js";
|
||||
|
||||
// Throws an exception if the message is invalid or unsupported.
|
||||
export function validateMessage(message: JSONRPCMessage): void {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import {
|
|||
ProgressNotification,
|
||||
Request,
|
||||
Result,
|
||||
} from "../types/index.js";
|
||||
} from "../types.js";
|
||||
import { Transport } from "./transport.js";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { JSONRPCMessage } from "../types/index.js";
|
||||
import { JSONRPCMessage } from "../types.js";
|
||||
import { ReadBuffer } from "./stdio.js";
|
||||
|
||||
const testMessage: JSONRPCMessage = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { JSONRPCMessage } from "../types/index.js";
|
||||
import { JSONRPCMessage } from "../types.js";
|
||||
import { validateMessage } from "./message.js";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { JSONRPCMessage } from "../types/index.js";
|
||||
import { JSONRPCMessage } from "../types.js";
|
||||
|
||||
/**
|
||||
* Describes the minimal contract for a MCP transport that a client or server can communicate over.
|
||||
|
|
|
|||
Loading…
Reference in a new issue