Skip to content

Commit

Permalink
support mcp proxying for #51
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Jan 14, 2025
1 parent ecdff17 commit ded7a83
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ object McpSupport {
}
}

private def schemaToJson(el: JsonSchemaElement): JsObject = {
def schemaToJson(el: JsonSchemaElement): JsObject = {
el match {
case s: JsonBooleanSchema => Json.obj("description" -> s.description(), "type" -> "boolean")
case s: JsonEnumSchema => Json.obj("description" -> s.description(), "type" -> "string", "enum" -> (s.enumValues().asScala.toSeq))
Expand Down
Loading

0 comments on commit ded7a83

Please sign in to comment.