Skip to content

Commit 7026e73

Browse files
chore: prettier formatting (streamDriver, taskManager)
1 parent 0f2a7f3 commit 7026e73

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

packages/core/src/shared/streamDriver.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ export class StreamDriver implements Outbound {
7373
* matched-handler dispatch / unknown-id error). Return `preserveProgress: true` to keep
7474
* the progress handler registered after the matched handler runs. Set by the owner.
7575
*/
76-
onresponse?: (
77-
response: JSONRPCResponse | JSONRPCErrorResponse,
78-
messageId: number
79-
) => { consumed: boolean; preserveProgress?: boolean };
76+
onresponse?: (response: JSONRPCResponse | JSONRPCErrorResponse, messageId: number) => { consumed: boolean; preserveProgress?: boolean };
8077

8178
constructor(
8279
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- driver is context-agnostic; subclass owns ContextT

packages/core/src/shared/taskManager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,7 @@ export class TaskManager {
823823
}
824824
return outbound.request(request, resultSchema, {
825825
...options,
826-
intercept: (wire, messageId, settle, onError) =>
827-
this.processOutboundRequest(wire, options, messageId, settle, onError).queued
826+
intercept: (wire, messageId, settle, onError) => this.processOutboundRequest(wire, options, messageId, settle, onError).queued
828827
});
829828
}
830829

packages/server/src/server/mcpServer.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import type {
2020
JSONRPCErrorResponse,
2121
JSONRPCMessage,
2222
JSONRPCNotification,
23-
JSONRPCResultResponse,
2423
JSONRPCRequest,
2524
JSONRPCResponse,
25+
JSONRPCResultResponse,
2626
JsonSchemaType,
2727
jsonSchemaValidator,
2828
ListRootsRequest,
@@ -326,8 +326,7 @@ export class McpServer extends Dispatcher<ServerContext> implements RegistriesHo
326326
resolve(parsed.data as SchemaOutput<typeof schema>);
327327
};
328328
if (opts?.intercept?.(wire, id, finish, reject)) return;
329-
transport
330-
.request!(wire)
329+
transport.request!(wire)
331330
.then(resp =>
332331
'error' in resp
333332
? reject(ProtocolError.fromError(resp.error.code, resp.error.message, resp.error.data))

0 commit comments

Comments
 (0)