Skip to content

Commit 0f3deff

Browse files
committed
add more details on startup message
1 parent d471cdd commit 0f3deff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
import assert from "assert";
2121
import type { ToolBase } from "./tools/tool.js";
2222
import { validateConnectionString } from "./helpers/connectionOptions.js";
23+
import { packageInfo } from "./common/packageInfo.js";
2324

2425
export interface ServerOptions {
2526
session: Session;
@@ -123,7 +124,7 @@ export class Server {
123124
this.session.logger.info({
124125
id: LogId.serverInitialized,
125126
context: "server",
126-
message: `Server started with transport ${transport.constructor.name} and agent runner ${this.session.mcpClient?.name}`,
127+
message: `Server with version ${packageInfo.version} started with transport ${transport.constructor.name} and agent runner ${JSON.stringify(this.session.mcpClient)}`,
127128
});
128129

129130
this.emitServerEvent("start", Date.now() - this.startTime);

0 commit comments

Comments
 (0)