0

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
}

enter image description 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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.