Skip to content

Commit 21cf288

Browse files
committed
Fixed issues found in pipeline
1 parent 49ebb27 commit 21cf288

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/Capability/Logger/McpLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(
3333
) {
3434
}
3535

36-
public function log($level, \Stringable|string $message, array $context = []): void
36+
public function log($level, string|\Stringable $message, array $context = []): void
3737
{
3838
// Always log to fallback logger if provided (for local debugging)
3939
$this->fallbackLogger?->log($level, $message, $context);

tests/Inspector/snapshots/StdioCalculatorExampleTest-tools_list.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
"type": "number",
1515
"description": "the second operand"
1616
},
17+
"logger": {
18+
"type": "object",
19+
"description": "Auto-injected MCP logger"
20+
},
1721
"operation": {
1822
"type": "string",
1923
"description": "the operation ('add', 'subtract', 'multiply', 'divide')"
@@ -22,7 +26,8 @@
2226
"required": [
2327
"a",
2428
"b",
25-
"operation"
29+
"operation",
30+
"logger"
2631
]
2732
}
2833
},
@@ -32,6 +37,10 @@
3237
"inputSchema": {
3338
"type": "object",
3439
"properties": {
40+
"logger": {
41+
"type": "object",
42+
"description": "Auto-injected MCP logger"
43+
},
3544
"setting": {
3645
"type": "string",
3746
"description": "the setting key ('precision' or 'allow_negative')"
@@ -42,7 +51,8 @@
4251
},
4352
"required": [
4453
"setting",
45-
"value"
54+
"value",
55+
"logger"
4656
]
4757
}
4858
}

0 commit comments

Comments
 (0)