Skip to content

[BUG] McpClient info is not correct when only using io.modelcontextprotocol.sdk:mcp #638

@moarychan

Description

@moarychan

Bug description
I am ongly using io.modelcontextprotocol.sdk:mcp, and it's not a Spring related project, but the created async McpCleint contains the 'Spring AI' words.

client info for a sync cleint:

private Implementation clientInfo = new Implementation("Java SDK MCP Client", "1.0.0");

client info for an async cleint:

private Implementation clientInfo = new Implementation("Spring AI MCP Client", "0.3.1");

Environment
The mcp dependency is used in an Intellij plugin tool project, it's not a Spring project.

Steps to reproduce
Use the io.modelcontextprotocol.sdk:mcp, then create McpAsyncClient, you can find the name fron mcpAsyncClient.getClientInfo().name().

Expected behavior
It's a Java SDK MCP Client not a Spring AI MCP Client.

Minimal Complete Reproducible example
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions