Skip to content

MCP tool callback integration not working #2583

@thingersoft

Description

@thingersoft

Bug description
After setting spring.ai.mcp.client.toolcallback.enabled to true the MCP tool callback integration doesn't seem to be active.
The configured MCP server is detected at startup but simple requests made by the auto-configured ChatClient to OpenAI models contain no tool definitions.
Same MCP server with same configuration json is working fine in Claude Desktop client.

Environment
Spring AI 1.0.0-SNAPSHOT @ March 26, 2025, 7:00 PM PDT
Java 21

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