- Explore MCP Servers
- xemantic-ai-tool-schema-mdc
Xemantic Ai Tool Schema Mdc
What is Xemantic Ai Tool Schema Mdc
xemantic-ai-tool-schema-mdc is a tool designed to adapt the xemantic-ai-tool-schema for use with the Model Context Protocol kotlin-sdk, enabling seamless integration and functionality within Kotlin-based applications.
Use cases
Use cases for xemantic-ai-tool-schema-mdc include developing AI-driven applications, integrating AI tools into existing Kotlin projects, and creating structured data inputs for machine learning models.
How to use
To use xemantic-ai-tool-schema-mdc, developers can integrate it into their Kotlin projects by including the necessary dependencies from Maven Central and following the documentation provided in the repository for setup and usage instructions.
Key features
Key features of xemantic-ai-tool-schema-mdc include compatibility with Model Context Protocol, easy integration with Kotlin applications, and a structured schema for AI tool input, enhancing the development process.
Where to use
xemantic-ai-tool-schema-mdc can be used in various fields such as artificial intelligence, software development, and application integration, particularly where Kotlin is the primary programming language.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Xemantic Ai Tool Schema Mdc
xemantic-ai-tool-schema-mdc is a tool designed to adapt the xemantic-ai-tool-schema for use with the Model Context Protocol kotlin-sdk, enabling seamless integration and functionality within Kotlin-based applications.
Use cases
Use cases for xemantic-ai-tool-schema-mdc include developing AI-driven applications, integrating AI tools into existing Kotlin projects, and creating structured data inputs for machine learning models.
How to use
To use xemantic-ai-tool-schema-mdc, developers can integrate it into their Kotlin projects by including the necessary dependencies from Maven Central and following the documentation provided in the repository for setup and usage instructions.
Key features
Key features of xemantic-ai-tool-schema-mdc include compatibility with Model Context Protocol, easy integration with Kotlin applications, and a structured schema for AI tool input, enhancing the development process.
Where to use
xemantic-ai-tool-schema-mdc can be used in various fields such as artificial intelligence, software development, and application integration, particularly where Kotlin is the primary programming language.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
xemantic-ai-tool-schema-mdc
Adapting xemantic-ai-tool-schema to Model Context Protocol kotlin-sdk Tool input.
Why?
The kotlin-sdk variant of the Model Context Protocol is expressing JSON Schema as Tool.Input class, which offers limited flexibility comparing
to JsonSchema delivered by the xemantic-ai-tool-schema project.
In particular definitions of types cannot be expressed.
I hope kotlin-sdk will embrace something more versatile soon. Meanwhile, this adapter library can be used for automatic MDC-compatible JSON Schema generation out of serializable Kotlin classes.
Usage
Setting up Gradle
In your build.gradle.kts:
dependencies {
implementation("com.xemantic.ai:xemantic-ai-tool-schema-mdc:0.1.1")
}
Getting Tool.Input instance
@Serializable
data class Foo(
val bar: String
)
// ...
val inputSchema: Tool.Input = mdcToolInput<Foo>()
See ObjectSchemaToMdcToolInputTest for details.
Development
Clone this project, and then run:
./gradlew build
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










