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 57b2976Copy full SHA for 57b2976
cli/src/client/connection.ts
@@ -18,6 +18,13 @@ export async function connect(
18
): Promise<void> {
19
try {
20
await client.connect(transport);
21
+
22
+ console.log(client.getServerCapabilities())
23
+ if (client.getServerCapabilities()?.logging) {
24
+ // default logging level is undefined in the spec, but the user of the
25
+ // inspector most likely wants debug.
26
+ await client.setLoggingLevel("debug");
27
+ }
28
} catch (error) {
29
throw new Error(
30
`Failed to connect to MCP server: ${error instanceof Error ? error.message : String(error)}`,
0 commit comments