Skip to content

Commit ba7c0f7

Browse files
committed
Keep defaults only in one place
1 parent d32b905 commit ba7c0f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/scala/chimp/McpHandler.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import sttp.tapir.docs.apispec.schema.TapirSchemaToJsonSchema
2525
*/
2626
class McpHandler[F[_]](
2727
tools: List[ServerTool[?, F]],
28-
name: String = "Chimp MCP server",
29-
version: String = "1.0.0",
30-
showJsonSchemaMetadata: Boolean = true
28+
name: String,
29+
version: String,
30+
showJsonSchemaMetadata: Boolean
3131
):
3232
private val logger = LoggerFactory.getLogger(classOf[McpHandler[_]])
3333
private val ProtocolVersion = "2025-03-26"

core/src/test/scala/chimp/McpHandlerSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class McpHandlerSpec extends AnyFlatSpec with Matchers:
5151
)
5252
}
5353

54-
val handler = McpHandler(List(echoTool, addTool, errorTool, headerEchoTool))
54+
val handler = McpHandler(List(echoTool, addTool, errorTool, headerEchoTool), "Chimp MCP server", "1.0.0", true)
5555

5656
def parseJson(str: String): Json = parse(str).getOrElse(throw new RuntimeException("Invalid JSON"))
5757

0 commit comments

Comments
 (0)