MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / append

Method append

src/shared/stdio.ts:9–11  ·  view source on GitHub ↗
(chunk: Buffer)

Source from the content-addressed store, hash-verified

7 private _buffer?: Buffer;
8
9 append(chunk: Buffer): void {
10 this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
11 }
12
13 readMessage(): JSONRPCMessage | null {
14 if (!this._buffer) {

Callers 6

stdio.test.tsFile · 0.80
writeFunction · 0.80
startMethod · 0.80
startAuthorizationFunction · 0.80

Calls

no outgoing calls

Tested by 1

writeFunction · 0.64