Skip to content

Mcp Tool would like to add the returnDirect property pass! #222

Description

@noear

At present, returnDirect attribute is supported by mcp tool of spring-ai and solon-ai, and it is very useful in practical application

The adjusted McpSchema.Tool structure can be:

public static class Tool {
	@JsonProperty("name") String name;
	@JsonProperty("description") String description;
	@JsonProperty("returnDirect") Boolean returnDirect;
	@JsonProperty("inputSchema") JsonSchema inputSchema;

	public Tool(String name, String description,boolean returnDirect, String schema) {
		this(name, description, returnDirect, parseSchema(schema));
	}

} 

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions