Skip to content

kotlin-mcp-server example project fails by not being able to find the wasm target. #114

Open
@Bwvolleyball

Description

@Bwvolleyball

Describe the bug
I'm trying to build the example kotlin-mcp-server project because I want to use the wasm target, but it fails because it can't find a wasm target of the kotlin mcp sdk.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the kotlin-mcp-server example project on the main branch, and run ./gradlew build

Expected behavior
A build completes, giving me a wasm binary and a jvm binary of the example MCP server.

Logs

      > No matching variant of io.modelcontextprotocol:kotlin-sdk:0.5.0 was found. The consumer was configured to find a library for use during 'kotlin-api', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.klib.packaging' with value 'non-packed', attribute 'org.jetbrains.kotlin.platform.type' with value 'wasm', attribute 'org.jetbrains.kotlin.wasm.target' with value 'wasi' but:
          - Variant 'jvmApiElements-published' declares a library for use during compile-time, preferably optimized for standard JVMs:
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'wasm'

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions