Skip to content

[mcp] Tool calls return empty results when invoked from external MCP client #1758

@naturzukunft

Description

@naturzukunft

Environment

  • Spring Tools Version: 5.0.1.RELEASE (Build Id: 202512192126, Revision: ac8ca43)
  • IDE: Spring Tool Suite for Eclipse
  • OS: TUXEDO OS 24.04 (Ubuntu-based)
  • MCP Client: Claude Code CLI (Anthropic)

Problem

MCP tools execute without errors but return empty/no data when called from an external MCP client.

Steps to Reproduce

  1. Enable embedded MCP server in STS preferences (AI section)
  2. Restart STS with a Spring Boot project open (multi-module Maven project)
  3. Configure Claude Code to connect:
    "spring-tools-mcp": { 
      "url": "http://127.0.0.1:50627/sse", 
      "type": "sse" 
    }
  4. Call any MCP tool, e.g.:
    • getProjectList() (no parameters)
    • getSpringBootVersion(projectName: "my-project")
    • getRequestMappings(projectName: "my-project")

Expected Behavior

Tools should return data, e.g. getProjectList() returns:

[{"name": "my-spring-project", ...}]

Actual Behavior

  • Tools are discovered correctly by the MCP client
  • Tool execution completes without error
  • Response is empty/null (no data returned)

Additional Context

  • MCP connection works (tools are listed and callable)
  • Project visible in Package Explorer and Boot Dashboard
  • Spring indexing completed
  • Tested with different project name variations

Questions

  • Is there debug logging available for MCP tool execution?
  • Are there specific prerequisites for projects to be recognized by the MCP server?
  • Does the MCP server require a specific project structure or import method?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions