I am using RAGFlow connected to a Spring Boot MCP server.
My agent flow is simple:
Begin node → collects inputs (auth_token, tenant_id, x_request_status)
Agent (gpt-4o) → connected to
MCP Tool (server) → exposes Spring methods annotated with @Tool.
Example tool method on the server:
@Tool(name = "createAttribute", description = "Create Attributes for sylius")
public SyliusAttribute createAttributes(String syliusAttribute) throws JsonProcessingException {
log.info("syliusAttribute={}", syliusAttribute);
// I also need Authorization / Tenant / RequestStatus values here
}
Question:
👉 How can I send extra headers (like Authorization, x-tenant-id, x-request-status) from RAGFlow Agent into my Spring Boot MCP tool?
Is there a way to configure RAGFlow MCP connection to inject them as real HTTP headers (so they arrive in Spring filters/controllers)?
Any working example or best practice for this integration would be greatly appreciated.
