Skip to content

When running the demo locally, it is found that MCP execution is not called #2184

Closed
@MentosL

Description

@MentosL

On my own Mac, after using npx to run the filesystem, I found that after executing mcp, there was only the following output

{"index":0,"finish_reason":"tool_calls","delta":{"role":"assistant","content":null,"audio":null,"tool_calls":[{"id":"call_20250623221958ac17c8c14e114fd1_0","index":0,"type":"function","function":{"name":"JavaSDKMCPClient_read_file","arguments":"{\"path\": \"target/spring-ai-mcp-overview.txt\"}","outputs":null},"code_interpreter":null,"retrieval":null,"drawing_tool":null," web_browser":null,"search_intent":null,"search_result":null}],"tool_call_id":null,"attachments":null,"metadata":null}}

Could you please tell me why this is happening? Is there any configuration I am missing?

Image

The command to run filesystem is as follows:
npx -y @modelcontextprotocol/server-filesystem /Users/mac/Documents/GitHub/spring-ai-examples/model-context-protocol/filesystem/target

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