Utilising file uploads with Python MCP server #6655
jackdorney1999
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I want to create a translator tool via a python MCP server that would be able to take the text from the uploaded file, and pass it to my MCP tool. I have set up an MCP server that correctly connects to the LibreChat container (as I have tested this with a simple stock price tool), but I cannot seem to be able to pass the context from the uploaded file to the MCP server. Whenever I upload a file, I get the message:
It seems like there is no file or text provided for translation. Please upload the document or paste the text you would like to have translated into Spanish, and I'll be happy to assist you.
Is there a way to pass the context from uploaded files to the MCP server? I have tested file uploads in a normal chat window (as opposed to using Agents with tools) and it can correctly pass the context of the file to the LLM. For reference, I am using Azure OpenAI GPT-4o for the model, and Azure credentials for the RAG API.
For reference, here is how my MCP server is configured:
With the connection created via librechat.yaml file:
Beta Was this translation helpful? Give feedback.
All reactions