We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 925d11a commit f4d9bf6Copy full SHA for f4d9bf6
cli/src/client/connection.ts
@@ -18,6 +18,12 @@ export async function connect(
18
): Promise<void> {
19
try {
20
await client.connect(transport);
21
+
22
+ if (client.getServerCapabilities()?.logging) {
23
+ // default logging level is undefined in the spec, but the user of the
24
+ // inspector most likely wants debug.
25
+ await client.setLoggingLevel("debug");
26
+ }
27
} catch (error) {
28
throw new Error(
29
`Failed to connect to MCP server: ${error instanceof Error ? error.message : String(error)}`,
0 commit comments