-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Bug description
@McpComplete(uri = "file://workspace/{project}/{projectRelativePath}")
public List<String> completeRelativePath(
@McpProgressToken String progressToken,
String project, String projectRelativePath) {
For an @McpComplete implementation like above, the two String params receive the same value. And there is no indication which argument the completion is for.
There is enough data higher in the stack at AbstractMcpCompleteMethodCallback.buildArgs()
to figure this out:

but in this condensed form of String args i'm not sure there is enough context to react:

IIRC what i've seen elsewhere is that arguments are assumed to get filled in serially, and that values in the request.context.arguments are considered 'complete' and that the parameter currently needing completion is in the request.argument.
Environment
Please provide as many details as possible: Spring MCP version, Java version, which vector store you use if any, etc
Steps to reproduce
Steps to reproduce the issue.
Expected behavior
A clear and concise description of what you expected to happen.
Minimal Complete Reproducible example
Please provide a failing test or a minimal complete verifiable example that reproduces the issue.
Bug reports that are reproducible will take priority in resolution over reports that are not reproducible.