@modelcontextprotocol/sdk
Advanced tools
Comparing version 0.6.1 to 0.7.0
@@ -0,1 +1,2 @@ | ||
import { IOType } from "node:child_process"; | ||
import { JSONRPCMessage } from "../types.js"; | ||
@@ -24,3 +25,3 @@ import { Transport } from "../shared/transport.js"; | ||
*/ | ||
stderr?: "inherit" | "ignore" | Stream; | ||
stderr?: IOType | Stream | number; | ||
}; | ||
@@ -53,2 +54,8 @@ /** | ||
start(): Promise<void>; | ||
/** | ||
* The stderr stream of the child process, if `StdioServerParameters.stderr` was set to "pipe" or "overlapped". | ||
* | ||
* This is only available after the process has been started. | ||
*/ | ||
get stderr(): Stream | null; | ||
private processReadBuffer; | ||
@@ -55,0 +62,0 @@ close(): Promise<void>; |
@@ -108,2 +108,11 @@ import { spawn } from "node:child_process"; | ||
} | ||
/** | ||
* The stderr stream of the child process, if `StdioServerParameters.stderr` was set to "pipe" or "overlapped". | ||
* | ||
* This is only available after the process has been started. | ||
*/ | ||
get stderr() { | ||
var _a, _b; | ||
return (_b = (_a = this._process) === null || _a === void 0 ? void 0 : _a.stderr) !== null && _b !== void 0 ? _b : null; | ||
} | ||
processReadBuffer() { | ||
@@ -110,0 +119,0 @@ var _a, _b; |
{ | ||
"name": "@modelcontextprotocol/sdk", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"description": "Model Context Protocol implementation for TypeScript", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1661262
31816